sIPOPT options in MATLAB

347 views
Skip to first unread message

Eka Suwartadi

unread,
Mar 30, 2016, 2:01:37 PM3/30/16
to CasADi
Dear all,

I am trying to call IPOPT with sensitivity options in MATLAB like Python example at https://github.com/casadi/casadi/blob/release-3.0.0-rc3/docs/examples/python/parametric_sensitivities.py .

However, I got an error :

No matching function for overload function 'nlpsol'.  Possible Matlab usages are:
    nlpsol(char,char,struct:SX,Dict)
    nlpsol(char,char,struct:MX,Dict)
    nlpsol(char,char,Function,Dict)
    nlpsol(char,char,char,Dict)
    nlpsol(char,char,Compiler,Dict)
You have: char, char, struct, struct

I set the options as follows :

% NLP solver options
opts = struct;

% Mark the parameters amongst the constraints (see sIPOPT documentation)
con_integer_md = struct;
con_integer_md.sens_init_constr = [0,0,1,2];
opts.con_integer_md                  = con_integer_md;

% Enable sensitivities
opts.run_sens     = 'yes';
opts.n_sens_steps = 1;


Can you help me to fix this ?


Many thanks in advance.

Best regards,
Eka


Joel Andersson

unread,
Mar 30, 2016, 2:27:37 PM3/30/16
to CasADi
Dear Eka,

We do not actively support sIPOPT in the interface and I believe the prebuilt binaries do not contain support for them. I could be wrong about that.

About your error, it looks like you either got one of the argument wrong or a missing typemap. Try adding them one at a time to see what causes the missing overload.

Joel

Eka Suwartadi

unread,
Mar 30, 2016, 3:30:50 PM3/30/16
to CasADi

On Wednesday, March 30, 2016 at 8:27:37 PM UTC+2, Joel Andersson wrote:

About your error, it looks like you either got one of the argument wrong or a missing typemap. Try adding them one at a time to see what causes the missing overload.

Thank you, Joel !

I will try to do that. 
Reply all
Reply to author
Forward
0 new messages