(ERROR): Specs filename is too long

40 views
Skip to first unread message

wc1...@my.bristol.ac.uk

unread,
Feb 25, 2019, 1:23:37 PM2/25/19
to SNOPT
Dear SNOPT team,

I've recently acquired the evaluation version of SNOPT/SQOPT, and I'm intending to use it through MATLAB. After setting up my licenses, running the scripts 'runNPexamples' or 'runQPexamples' both return the following error:

Specs filename is too long
Error in snspec (line 10)
info = snoptmex(mexopt,specsfile);
Error in snopt (line 263)
info = snspec(specsfile);

Running the getenv commands for 'SNOPT_LICENSE' and 'SQOPT_LICENSE' returns './snopt7.lic' and './sqopt7.lic' respectively, and I've ensured that the relevant directories are added to the MATLAB path.

Any support on the matter would be greatly appreciated. Thank you!

Elizabeth Wong

unread,
Feb 25, 2019, 10:52:11 PM2/25/19
to SNOPT
This is actually not a problem with license setup.

In the examples, the specification (options) file is set with an absolute path via the "which" function.  Due to Fortran limitations, there is a fixed length to the string representing the file so if the path to the file exceeds the length, you will get this error about the specs filename being too long.

The examples in directory 'fmincon' and 'hs21' don't have options files so you can try to run those to check that everything works, e.g, in the 'matlab' directory,
>> setpath
>> hs21
>> toymin

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