alpaqa 0.0.1
Nonconvex constrained optimization
Variables
codegen-rosenbrock Namespace Reference

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")
 

Variable Documentation

◆ x

x = SX.sym("x")

◆ y

y = SX.sym("y")

◆ z

z = SX.sym("z")

Definition at line 10 of file codegen-rosenbrock.py.

◆ unknwns

unknwns = vertcat(x, y, z)

Definition at line 11 of file codegen-rosenbrock.py.

◆ w

w = SX.sym("w")

Definition at line 13 of file codegen-rosenbrock.py.

◆ f

int f = x**2 + 100*z**2

Definition at line 16 of file codegen-rosenbrock.py.

◆ g

int g = z + (1-x)**2 - y

◆ cg

cg = CodeGenerator(f"{argv[1]}.c")

Definition at line 19 of file codegen-rosenbrock.py.