Variables | |
| x1 | |
| x2 | |
| p = cs.SX.sym("p") | |
| tuple | f_expr = (1 - x1) ** 2 + p * (x2 - x1 ** 2) ** 2 |
| g_expr | |
| x = cs.vertcat(x1, x2) | |
| f = cs.Function("f", [x, p], [f_expr]) | |
| g = cs.Function("g", [x, p], [g_expr]) | |
| prob = pa.generate_and_compile_casadi_problem(f, g) | |
| lowerbound | |
| upperbound | |
| param | |
| innersolver = pa.StructuredPANOCLBFGSSolver() | |
| solver = pa.ALMSolver(innersolver) | |
| inner_solver | |
| x0 = np.array([0.1, 1.8]) | |
| y0 = np.zeros((prob.m,)) | |
| x_sol | |
| y_sol | |
| stats | |
| x1 |
Definition at line 9 of file getting-started.py.
| x2 |
Definition at line 9 of file getting-started.py.
| p = cs.SX.sym("p") |
Definition at line 11 of file getting-started.py.
Definition at line 14 of file getting-started.py.
| g_expr |
Definition at line 15 of file getting-started.py.
Definition at line 21 of file getting-started.py.
Definition at line 23 of file getting-started.py.
Definition at line 24 of file getting-started.py.
Definition at line 30 of file getting-started.py.
| lowerbound |
Definition at line 34 of file getting-started.py.
| upperbound |
Definition at line 35 of file getting-started.py.
| param |
Definition at line 40 of file getting-started.py.
| innersolver = pa.StructuredPANOCLBFGSSolver() |
Definition at line 43 of file getting-started.py.
| solver = pa.ALMSolver(innersolver) |
Definition at line 44 of file getting-started.py.
| inner_solver |
Definition at line 47 of file getting-started.py.
| x0 = np.array([0.1, 1.8]) |
Definition at line 71 of file getting-started.py.
| y0 = np.zeros((prob.m,)) |
Definition at line 72 of file getting-started.py.
| x_sol |
Definition at line 75 of file getting-started.py.
| y_sol |
Definition at line 75 of file getting-started.py.
| stats |
Definition at line 75 of file getting-started.py.