JWally / jsLPSolver

Simple OOP javaScript library to solve linear programs, and mixed integer linear programs
The Unlicense
420 stars 69 forks source link

How to formulate quadratic optimization in the json model? #110

Open AncientSwordRage opened 4 years ago

AncientSwordRage commented 4 years ago

JWs comment on this issue #21 implies that this is not possible, but I can't figure out how.

This is my use of this library, https://github.com/AncientSwordRage/ponder

I want to extend my code to allow the model to essentially say: If you have Card X that works with Cards with Attribute Y, it's more valuable the more Cards with attribute Y we have.

I asked here and it looks like this is a linearisable quadratic problem.

But I'm stumped on how to create the right model for this.

Any advice?