mullr / clj-linear

A nice clojure api for doing linear proramming
Eclipse Public License 1.0
10 stars 0 forks source link

Extended api for sums and more dsl stuff #1

Open joinr opened 1 year ago

joinr commented 1 year ago

Are you still interested in this library? If so, I have done some recent ad hoc extensions in response to a clojure zulip thread asking about LP's in clojure. I looked at your term writing system and after understanding it better, extended support for summation and indexed variables we commonly see in modeling environments like PuLP (or GAMs etc.).

Throw-away repo with example here. Is there any interest in a PR?

mullr commented 1 year ago

Hey, blast from the past! I'm happy that someone found it useful. I'll happily accept a PR.

joinr commented 1 year ago

Sounds good. I will clean up what I have and get a legitimate fork going. I am also looking at switching over to (or at least supporting) OjAlgo as a different backend (with MIP support) over ACM. https://www.ojalgo.org/2022/09/lp-qp-mip-on-the-jvm/

I think as a bonus you get MPS/LP file format import out of the box. Maybe having MPS/LP as a compile target as well (which libs like PuLP do) is in the cards for sharing with bigger solvers. There also appear to be bindings for CLP/CBC and I may be interested in wrapping HIGHs....

Anyway, more to come.