m-files for the SNOPT matlab interface