javascript-lp-solver
Version:
Easy to use, JSON oriented Linear Programming and Mixed Int. Programming Solver
31 lines • 632 B
JSON
{
"name": "Coffee Problem",
"optimize": "profit",
"opType": "max",
"constraints": {
"Costa Rican": {
"max": 200
},
"Etheopian": {
"max": 330
}
},
"variables": {
"Yusip": {
"Costa Rican": 0.5,
"Etheopian": 0.5,
"profit": 3.5
},
"Exotic": {
"Costa Rican": 0.25,
"Etheopian": 0.75,
"profit": 4
}
},
"expects": {
"feasible": true,
"Yusip": 270,
"Exotic": 260,
"result": 1985
}
}