pyoptsparse icon indicating copy to clipboard operation
pyoptsparse copied to clipboard

SNOPT Installation Documentation

Open ben1296 opened this issue 4 months ago • 1 comments

I am trying to install SNOPT for use in OpenMDAO. The documentation is a bit unclear of how to complete this installation given the precompiled libraries. So far I have:

  1. Set the environment variable SNOPT_LICENSE to the file path of the .lic set SNOPT_LICENSE "C:\Filepath\snopt7.lic"
  2. Download the modified setup.py file, added the location of my .dll and .lib files to the snopt7 path variable, and placed it in pyoptsparse\pyoptsparse\pySNOPT
  3. Set the environment variable PYOPTSPARSE_IMPORT_FROM to pyoptsparse\pyoptsparse\pySNOPT\source\f2py
  4. Run the command conda install -c conda-forge pyoptsparse

I have also tried following the installation script and documentation and documentation given by the OpenMDAO team, but could not get the -s option to work.

Are there more detailed instructions on how to complete this process? Perhaps more info on how to build the binding file would be helpful to ensure I'm completing this process correctly.

ben1296 avatar Jul 31 '25 18:07 ben1296

Hi @ben1296 , we don't have additional documentation on our side but maybe this comment and the related discussion might be helpful?

marcomangano avatar Jul 31 '25 19:07 marcomangano