Hi everybody.
I wanted to to use the integrator structure in the example vdp_multiple_shooting but I got an error. This is what I have:
x = SX.sym('x',2)
u = SX.sym('u',2)
y = SX.sym('y',2)
F1 = vertcat(x[0]+x[1]+u, x[1])
F2 = x
F_obj = u*(2 - y[1])
function_opt = (F1, F2, F_obj, ..)
def function_opt ( F1, F2, F_obj , .. )
X = MX.sym('X', 2)
Y = MX.sym('Y', 2)
U = MX.sym('U', 2)
d = MX.sym('d', 2)
dae = {'x':vertcat(X,Y), 'p':vertcat(U,d), 'ode':vertcat(F1,F2), 'quad':F_obj}
tf = 10.0 # End time
opts = {'tf':tf/N} # final time
F = integrator('F', 'cvodes', dae, opts)
.....
return
When I lunch the line where integrator is called I have this error:
NotImplementedError: Wrong number or type of arguments for overloaded function 'integrator'.
Possible Python usages are:
integrator(str,str,str:SX,Dict)
integrator(str,str,str:MX,Dict)
integrator(str,str,Function,Dict)
integrator(str,str,(Function,Function) ,Dict)
You have: integrator(str, str, str:SX|MX, str:float)
What am I doing wrong?
Best,
Marco