Closed fva11111 closed 6 years ago
hmm.. this wasn't the issue
If I don't check the existence of ipopt_auxdata, I solve opf without any problems. If I do check, I get have_fcn = 0 and corresponding problems
I'm pretty sure this is due to a missing ipopt_auxdata.m
file. I didn't realize (or else forgot) that OPTI Toolbox does not install this file, which is part of the Ipopt Matlab interface and is required by MATPOWER.
Just to confirm, with an unmodified MATPOWER, when you type mpver
in a new Matlab session, does it give you the following warning?
Warning: Improper installation of IPOPT. Version 3.12.7 detected, but IPOPT_AUXDATA.M is missing.
You can find ipopt_auxdata.m
in the Ipopt source distribution. I have also submitted an issue (jonathancurrie/OPTI#6) requesting that it be included in OPTI Toolbox.
In any case, thanks for bringing this issue to my attention, including the fact that my current test for a working Ipopt results in an *** Error using Ipopt Matlab interface: ***
. While it doesn't prevent the check from working, it certainly is not the intended result.
Initially by typing mpver I get
Warning: Improper installation of IPOPT. Version 3.12.7
detected, but IPOPT_AUXDATA.M is missing.
> In have_fcn (line 310)
In mpver (line 127)
IPOPT -- not installed --
But If I comment checking for ipopt_auxdata.m I get
IPOPT Version 3.12.7
Thank you for ipopt_auxdata.m. It is the last piece of the ipopt puzzle that was missed in mailing lists.
So initially it said ...
IPOPT -- not installed --
... but did it also have the warning about the missing ipopt_auxdata.m
? It should have. If it didn't, I'd like to figure out why, if possible.
Yes, I added it.
👍
I use OPTI Toolbox for Windows
It seems in have_fcn it's better to use str = evalc('qps_ipopt([],[1; 1],[1 1],[2],[2],[1; 1],[1; 1],[1; 1],struct(''verbose'', 2))'); instead of str = evalc('qps_ipopt([],1,1,1,1,1,1,1,struct(''verbose'', 2))');
The first str is 'This is Ipopt version 3.12.7, running with linear solver ma57.
The second str is 'This is Ipopt version 3.12.7, running with linear solver ma57.