Ernesto

Results 5 comments of Ernesto

You are not using p in the problem so it is sort of not registered in Opti. Ex: ``` opti.minimize(v + p) opti.solver("ipopt") opti.to_function("test",[v,p], [v,p],) ``` or ``` opti.minimize(v) opti.solver("ipopt")...

Tbh I think that isn't possible with Opti to_function, but I'm not sure. ``` import casadi as cs opti = cs.Opti() v = opti.variable(1) p = opti.parameter(1) opti.minimize(v**2+p) opti.solver("ipopt") f...

Yo. I think that's the same thing as in here: Case 1: using ad_weight_sp = -1 ``` import casadi as ca x_sym = ca.MX.sym('x', 1,1) y_sym = ca.MX.sym('y', 1,1) #...

Even simpler example: ``` import casadi as ca x = ca.MX.sym("x",1) p = ca.MX.sym("p",1) g = -x print(ca.detect_simple_bounds(x,p,g,ca.MX([-2]),ca.MX([-2]))) g = x print(ca.detect_simple_bounds(x,p,g,ca.MX([-2]),ca.MX([-2]))) ``` Half assed hacky fix? ``` x =...

Does simply removing the ... solve the problem? Or does it create other problems somewhere? (Julia noob here) ``` using StaticArrays using Symbolics using BenchmarkTools @inline function create_array2(::Type{