UNPKG

javascript-lp-solver

Version:

Easy to use, JSON oriented Linear Programming and Mixed Int. Programming Solver

16 lines (15 loc) 346 B
{ "name": "Infeasible 1", "constraints" : { "cst1": { "max": 2 }, "cst2": { "min": 1 }, "cst3": { "min": 1 } }, "variables" : { "x": { "cst1": 1, "cst2": 1, "cst3": -0.5 }, "y": { "cst1": 1, "cst2": -0.5, "cst3": 1 } }, "expects": { "feasible": false } }