Error reading license file

108 views
Skip to first unread message

Stephen Wright

unread,
Feb 27, 2019, 5:59:51 PM2/27/19
to SNOPT
Hi, trying to install but currently getting this error after running 'runNPexamples' :


=============================================================
sntoy: Solving diet LP problem using SNOPT ...

Begin t1diet problem

SNSPEC EXIT 100 -- finished successfully
SNSPEC INFO 101 -- SPECS file read

Trial version of SNOPT -- for evaluation or academic purposes only

Error using snoptmex
Error reading license file
Error in snopt (line 294)
xstate,Fstate,itn,mjritn] = snoptmex(solveopt,
...
Error in t1diet (line 12)
[x,F,INFO,xmul,Fmul,xstate,Fstate,output]=
snopt( x, xlow, xupp, xmul, xstate, ...
Error in runNPexamples (line 10)
[x,xmul,F,Fmul,info] = t1diet;


Testing, the 'getenv' command returns this:

>> getenv('SNOPT_LICENSE')
ans =
'Users/Stephen/Licenses/snopt7.lic'

I'm using Matlab 2018b, Win10. Any idea on how can I solve this problem? Thanks

SNOPT

unread,
Feb 27, 2019, 6:04:08 PM2/27/19
to SNOPT
The website is just giving you an example of how to set SNOPT_LICENSE under different environments.

If you're in Windows, it's should be something like

setenv('SNOPT_LICENSE','C:\Users\ .... \snopt7.lic')

where the path is absolute and pointing at the license file.  Note the backslashes, not forward slashes in a windows environment.

--Elizabeth
Reply all
Reply to author
Forward
0 new messages