alpaqa 0.0.1
Nonconvex constrained optimization
Namespaces | Variables
codegen-rosenbrock.py File Reference

Go to the source code of this file.

Namespaces

namespace  codegen-rosenbrock
 

Variables

 x = SX.sym("x")
 
 y = SX.sym("y")
 
 z = SX.sym("z")
 
 unknwns = vertcat(x, y, z)
 
 w = SX.sym("w")
 
int f = x**2 + 100*z**2
 
int g = z + (1-x)**2 - y
 
 cg = CodeGenerator(f"{argv[1]}.c")