Solve convex quadratic programs (QP) in clojure.
This library is a wrapper around the Java API of the FICO Xpress Solver.
Lastest release is 0.5, available at Clojars.
CLI/deps.edn dependency information:
org.clojars.philipperolet/clj-qp {:mvn/version "0.5"}
Leiningen:
[org.clojars.philipperolet/clj-qp "0.5"]
FICO Xpress Optimization must be installed for the lib to work, since the library wraps its API. There is a free community version available.
Two main functions are available:
(solve-qp ...)
solves a quadratic program;(solve-lcls ...)
solves a linearly constrained least squares problem.Details can be found on the API Documentation
The library wraps specific parts of the FICO Xpress Optimization API dedicated to particular forms of quadratic programs.
For a clojure developer, it should be straightforward to extend it to wrap other API calls (e.g. solving linear programs or quadratically constrained programs) by using solve-qp
in xprs.clj
as a template. The FICO API & documentation is available here.
Please note that the FICO optimization software wrapped by clj-qp
has limitations depending on the license chosen at the time of installation. The community version is free but has quotas for quadratic program sizes and other usage limitations. Please checks if your intended usage fits the license limitations.
Can you improve this documentation? These fine people already did:
Filou & Philippe RoletEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close