2

I would like to know if there is any library, which I can use in Pyodide and which has a function, similar to "quadprog" in Matlab or multiple external libraries in Python (McGibbon's quadprog, CVXOPT etc.) doing quadratic optimization over convex polytopes. I found some optimization packages among the packages directory of Pyodide, however they do not implement quadratic programming specifically. Also there is a javascript qp library, but I am not sure that it will be possible to make it work with Pyodide.

I would appreciate any help on this matter.

DIgg
  • 51
  • 2
  • 1
    Yes, currently there is no such package, but feel free to add for instance quadprog to Pyodide packages via a PR on Github. It looks significantly easier to build than CVXOPT. About the qp library, it's likely possible to use it to some extent via type translations in Pyodide, but it would be easier (and probably faster) to have a corresponding Python package. – rth Jun 08 '21 at 14:49
  • Dear rth, thanks for the answer! I am not sure if it is possible to add quadprog to Pyodide , since quadprog is based on c code, which is used via cython: https://github.com/quadprog/quadprog/tree/master/quadprog If someone can confirm whether this is a problem or not, please let me know. – DIgg Jun 30 '21 at 20:16
  • 1
    It should be fine. We have other packages with C & Cython in Pyodide. – rth Jun 30 '21 at 20:41

0 Answers0