Quadratic Programming with Python and CVXOPT
sol = solvers.qp(P,q,G,h) That’s it! If you had A;b as well, you would call: sol = solvers.qp(P,q,G,h,A,b) You can even specify more options, such as the solver used and initial values to try. See the CVXOPT QP documentation in the references on the nal page. Many properties about the solution can be extracted from the sol variable (dictionary).
DA: 63 PA: 81 MOZ Rank: 78 Up or Down: Up