alpaqa 0.0.1
Nonconvex constrained optimization
Namespaces | Variables
main.py File Reference

Go to the source code of this file.

Namespaces

namespace  main
 

Variables

 H
 
 A = np.array([[2, 1]])
 
 b = np.array([-1])
 
 x = cs.SX.sym("x", 2)
 
 f = cs.Function("f", [x], [0.5 * cs.dot(x, H @ x)])
 
 g = cs.Function("g", [x], [A @ x])
 
 problem = pa.generate_and_compile_casadi_problem(f, g, "example_name")
 
 lowerbound
 
 upperbound
 
 almparam
 
 panocparam
 
 lbfgsparam
 
 solver
 
 y = np.array([1])
 
 x_sol
 
 y_sol
 
 stats