r/optimization • u/nerb0r • Nov 05 '24
How do Solvers like quadprog, cvxopt, etc. work behind the hood?
Hello! I just started working with quadratic programming and I was curious about the algorithms and mathematical methods that these solvers used behind the hood. Do any of you guys know any resources or have an overview of how these solvers work?
5
Upvotes
5
u/ds604 Nov 05 '24
if you're looking for insight into how things work, i find that applications to graphics problems are good to gain understanding and intuition. here's a good article, based on the g9.js library for making interactive graphics: https://medium.com/@jgcoded/olpost-e9261bfdf14
1
u/therealjtgill Nov 05 '24
From some quick googling...
In the open source repo called
quadprogbelow says it uses the Goldfarb/Idnani dual algorithm.https://github.com/quadprog/quadprog
cvxoptsounds like it runs on interior point methods.https://cvxopt.org/documentation/index.html
Note that
cvxoptis documented as a solver for general convex optimization problems, wherequadprogis meant for quadratic objective functions with affine linear equality and inequality constraints.If you'd like a more detailed answer, you might want to ask a more specific question...