Using SNOPT with Evolutionary Mission Trajectory Generator (EMTG)

149 views
Skip to first unread message

Pierce J

unread,
May 5, 2022, 3:50:48 AM5/5/22
to SNOPT
Hi,

I hate to have to ask this because I am sure it has already been addressed and I am probably just not well-versed enough to understand the solution - but I have been searching for hours and cannot find a straightforward answer.

I would like to use EMTG and it requires SNOPT. I requested a student-free-trial version of SNOPT and it was granted. In the email informing me I could use SNOPT, I was provided a license (snopt7.lic) and a link to download the software. I downloaded the "Windows Libraries" options which  gave me a `libsnopt7.zip' file. Unzipping this gives me 3 more files: snopt7.lib, snopt7.exp, and snopt7.dll.

As far as I understand from reading instructions on the website, I must 'link' to the SNOPT library? Though, the examples on the website make it seems like that is to be done whenever one needs to compile a program explicitly running SNOPT? I have installed visual studio for my Windows 10 and it seems like I need to compile it there using fortran or C++? I don't know.

To cut to the chase, I really have no idea of what to do with the unzipped files. The EMTG instructions made it seem like I should have a folder with subdirectories in it rather than the three .lib, .exp, and .dll files. For reference to how EMTG implements SNOPT, search google for EMTG github and look over the repository's readme.opensource file. If you dig deeper to /emtg/docs/build_system, there is another explanation for how to prepare SNOPT for EMTG, but it is still very sparse.

Any guidance on how to implement the SNOPT files I currently have into EMTG as it was intended would be much appreciated.

Thanks.
- Pierce

SNOPT

unread,
May 6, 2022, 11:54:43 AM5/6/22
to SNOPT
Hi Pierce,

You can try this

I gave these instructions to another person once and I never heard back from them.  I don't know if it works or not, but it should change how EMTG links to the SNOPT library.

--Elizabeth

Blake Thomas Grantham

unread,
Jul 1, 2025, 2:05:03 PMJul 1
to SNOPT
Hello Pierce,

I am going through the same struggle of implementing those specific SNOPT files into EMTG. Did you ever find a solution to this? 

Best,
Blake

Reply all
Reply to author
Forward
0 new messages