switch from knitro to yalmip

13 views
Skip to first unread message

vr7

unread,
Oct 18, 2018, 9:26:15 AM10/18/18
to YALMIP
Hi, 

I would like to use yalmip instead of knitro to minimize a function, because I've noticed that sometimes complementary slackness is not fulfilled.
Before trying with knitro I also tried with fmincon with the same issue.

The knitro sintax is:

x1 = knitromatlab( func, x2, [], [], [], [], lb, ub );

with 

lb = zeros(n, 1);
ub = Inf*ones(n, 1);

Thank you in advance



Johan Löfberg

unread,
Oct 18, 2018, 9:30:30 AM10/18/18
to YALMIP
knitro/fmincon is a solver, yalmip is a modelling language (which can interface knitro/fmincon, among many solvers)

Start learning
Reply all
Reply to author
Forward
0 new messages