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") | |
x = SX.sym("x") |
Definition at line 8 of file codegen-rosenbrock.py.
y = SX.sym("y") |
Definition at line 9 of file codegen-rosenbrock.py.
z = SX.sym("z") |
Definition at line 10 of file codegen-rosenbrock.py.
Definition at line 11 of file codegen-rosenbrock.py.
w = SX.sym("w") |
Definition at line 13 of file codegen-rosenbrock.py.
Definition at line 16 of file codegen-rosenbrock.py.
Definition at line 17 of file codegen-rosenbrock.py.
cg = CodeGenerator(f"{argv[1]}.c") |
Definition at line 19 of file codegen-rosenbrock.py.