I am using Matlab 2019a and trying to install SNOPT. I got the following errors when run the runNPexamples, could anyone help with this? Thanks.
>> setenv('SNOPT_LICENSE','Users\yutongli\Downloads\snopt7.lic');
>> getenv('SNOPT_LICENSE')
ans =
'Users\yutongli\Downloads\snopt7.lic'
>> runNPexamples
Warning: Name is nonexistent or not a directory: /Applications/util
> In path (line 109)
In addpath (line 84)
In setpath (line 3)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples
> In path (line 109)
In addpath (line 84)
In setpath (line 4)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/t1diet
> In path (line 109)
In addpath (line 84)
In setpath (line 5)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/sntoy
> In path (line 109)
In addpath (line 84)
In setpath (line 6)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/snmain
> In path (line 109)
In addpath (line 84)
In setpath (line 7)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/hsmain
> In path (line 109)
In addpath (line 84)
In setpath (line 8)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/hs76
> In path (line 109)
In addpath (line 84)
In setpath (line 9)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/fmincon
> In path (line 109)
In addpath (line 84)
In setpath (line 10)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/hs116
> In path (line 109)
In addpath (line 84)
In setpath (line 11)
In runNPexamples (line 4)
Warning: Name is nonexistent or not a directory: /Applications/examples/spring
> In path (line 109)
In addpath (line 84)
In setpath (line 12)
In runNPexamples (line 4)
=============================================================
t1diet: 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 solve_snopt (line 17)
xstate,Fstate,itn,mjritn] = snoptmex(mexopt, ...
Error in snopt (line 432)
xstate,Fstate,output] = solve_snopt(istart, stopFun, name, ...
Error in t1diet (line 10)
[x,F,INFO,xmul,Fmul,xstate,Fstate,output]= snopt( x, xlow, xupp, xmul, xstate, ...
Error in runNPexamples (line 8)
t1diet;