UNPKG

javascript-lp-solver

Version:

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

31 lines (30 loc) 582 B
{ "name": "Generic Business Problem 2", "optimize": "profit", "opType": "max", "constraints": { "size": { "max": 2400 }, "units": { "min": 40 } }, "variables": { "large": { "size": 60, "units": 1, "profit": 250 }, "small": { "size": 40, "units": 1, "profit": 150 } }, "expects": { "feasible": true, "large": 40, "result": 10000 } }