KNITRO Support under YALMIP?

206 views
Skip to first unread message

Mark L. Stone

unread,
Dec 22, 2013, 4:52:28 PM12/22/13
to yal...@googlegroups.com
I don't see KNITRO listed under solvers in yalmiptest.  Does KNITRO show up under another name?

Thanks.

Johan Löfberg

unread,
Dec 23, 2013, 3:26:37 AM12/23/13
to yal...@googlegroups.com
KNITRO is currently not supported. I don't remember why, but there were some issues a couple of years ago (license or weird interfaces). I'll might take another look at it again

Mark L. Stone

unread,
Dec 23, 2013, 12:21:46 PM12/23/13
to yal...@googlegroups.com
Thanks Yohan,

It is not reflected everywhere on the website, but KNITRO 9.0 has just been released, and it contains an upgraded MATLAB interface, which now, unlike previously, supports binary variables and complementarity constraints, to include support for MPECs (Mathematical Programs with Equilibrium Constraints) http://www.ziena.com/matlabknitro.html .

Johan Löfberg

unread,
Dec 23, 2013, 12:24:09 PM12/23/13
to yal...@googlegroups.com
Yes, I was just checking it out. Will download a trial-version and see if it is easily interfaced (should be since it says it is a drop-in replacement of fmincon)

Mark L. Stone

unread,
Feb 13, 2014, 5:34:36 PM2/13/14
to yal...@googlegroups.com
I see that knitro is now listed as a solver on the YALMIP Wiki.  Does that require a forthcoming version of YALMIP or some patch in order to use it?

Thanks.,

Mark L. Stone

unread,
Feb 13, 2014, 6:22:42 PM2/13/14
to yal...@googlegroups.com
Also, if all of knitro's options are to be taken advantage of to the fullest, knitro is not a drop-in replacement for fmincon.  knitro can accept options in fmincon format (optimset), but it can also accept extended features, for example to specify and specially treat complementarity constraints, and can also accept a knitro options file, which if specified, overrides settings in the fmincon (optimset) options, and provides many options not available under the fmincon options.  It would seem that the knitro options (file options) could be implemented in one of two ways in YALMIP: either allow each individual option to be specified, or allow specification of the name of a knitro options file to be used.

Johan Löfberg

unread,
Feb 14, 2014, 1:49:37 AM2/14/14
to yal...@googlegroups.com
New release on its way

Johan Löfberg

unread,
Feb 14, 2014, 1:53:20 AM2/14/14
to yal...@googlegroups.com
Complementarity constraints are supported.

The way knitro handles options is weak, and I've told the developers about this. Hopefully they will improve this in the future and allow communication of options through structs and bypass any communication by files.

Until then, since I don't want to mess with automatic generation of files with all the problems that might lead to, advanced knitro users will have to explicitly use an extra option to tell YALMIP if an options file is available, information which then is sent to knitro.
Reply all
Reply to author
Forward
0 new messages