14f = cs.Function(
"f", [x], [0.5 * cs.dot(x, H @ x)])
15g = cs.Function(
"g", [x], [A @ x])
16problem = pa.generate_and_compile_casadi_problem(f, g,
"example_name")
19problem.C.lowerbound = np.full((problem.n,), -np.inf)
20problem.C.upperbound = np.full((problem.n,), np.inf)
21problem.D.lowerbound = np.full((problem.m,), -np.inf)
22problem.D.upperbound = b
25almparam = pa.ALMParams(
33panocparam = pa.PANOCParams(
38lbfgsparam = pa.LBFGSParams(
45 pa.PANOCSolver(panocparam, lbfgsparam),
53x_sol, y_sol, stats =
solver(problem, x, y)
57status: {stats['status']}
58inner iterations: {stats['inner']['iterations']}
59outer iterations: {stats['outer_iterations']}
60elapsed time: {stats['elapsed_time']}