ipopi maxiter

138 views
Skip to first unread message

Asher Metzger

unread,
Sep 16, 2015, 5:19:41 AM9/16/15
to YALMIP
Hi Johan,

The run exceeds the default 1500 iterations for ipopt.
I try the ops.ipopt.MaxIter = 3000.

But it doesn't work.

I also tried: ops=sdpsettings('solver','ipopt','ipopt.maxiter',3000)

Is there something I'm doing wrong?

thanks in advance,
Asher
convert_for_B0.m
data_wolf.mat
wolf_classic.m

Johan Löfberg

unread,
Sep 16, 2015, 5:24:34 AM9/16/15
to YALMIP
No such option on my version (YALMIP should only support ipopt through opti toolbox)

>> x = sdpvar(10,1);
>> optimize(-1<=sum(x)<=1,(x.^2)'*(x.^2)+sum(sin(x).^3),sdpsettings('solver','ipopt','ipopt.maxiter',2))
Error using sdpsettings (line 281)
Unrecognized property name 'ipopt.maxiter'.
>> optimize(-1<=sum(x)<=1,(x.^2)'*(x.^2)+sum(sin(x).^3),sdpsettings('solver','ipopt','ipopt.max_iter',2))
EXIT: Maximum Number of Iterations Exceeded.

ans = 

    yalmiptime: 0.1183
    solvertime: 0.1057
          info: 'Maximum iterations or time limit exceeded (IPOPT)'
       problem: 3



Johan Löfberg

unread,
Sep 16, 2015, 6:48:16 AM9/16/15
to YALMIP
Note that the problem is trivially infeasible

>> Const=[C1;C3;C4;C5;C6;C7];
>> optimize(Const)
Optimize a model with 9262 rows, 4222 columns and 12343 nonzeros
Coefficient statistics:
  Matrix range    [1e+00, 1e+00]
  Objective range [0e+00, 0e+00]
  Bounds range    [0e+00, 0e+00]
  RHS range       [5e+00, 2e+02]
Presolve removed 7186 rows and 3939 columns
Presolve time: 0.01s

Solved in 0 iterations and 0.01 seconds
Infeasible model

ans = 

    yalmiptime: 0.4595
    solvertime: 0.0155
          info: 'Infeasible problem (GUROBI-GUROBI)'
       problem: 1



Asher Metzger

unread,
Sep 17, 2015, 11:23:45 AM9/17/15
to YALMIP
thanks. I found the mistake.
Reply all
Reply to author
Forward
0 new messages