ccorcos github issue

node v11.15.0
version: master
endpointsharetweet
var solver = require("javascript-lp-solver"); var model = { "optimize": "count", "opType": "min", "variables": { "version0": { "cut11": 8, "cut21": 0, "cut84": 0, "cut3.5": 0, "cut79.5": 0, "count": 1 }, "version1": { "cut11": 6, "cut21": 1, "cut84": 0, "cut3.5": 0, "cut79.5": 0, "count": 1 }, "version2": { "cut11": 0, "cut21": 4, "cut84": 0, "cut3.5": 1, "cut79.5": 0, "count": 1 }, "version3": { "cut11": 1, "cut21": 0, "cut84": 1, "cut3.5": 0, "cut79.5": 0, "count": 1 }, "version4": { "cut11": 0, "cut21": 0, "cut84": 1, "cut3.5": 1, "cut79.5": 0, "count": 1 }, "version5": { "cut11": 8, "cut21": 0, "cut84": 0, "cut3.5": 1, "cut79.5": 0, "count": 1 }, "version6": { "cut11": 0, "cut21": 0, "cut84": 1, "cut3.5": 1, "cut79.5": 0, "count": 1 }, "version7": { "cut11": 0, "cut21": 1, "cut84": 0, "cut3.5": 19, "cut79.5": 0, "count": 1 }, "version8": { "cut11": 0, "cut21": 0, "cut84": 0, "cut3.5": 4, "cut79.5": 1, "count": 1 }, "version9": { "cut11": 1, "cut21": 0, "cut84": 0, "cut3.5": 0, "cut79.5": 1, "count": 1 } }, "ints": { "version0": 1, "version1": 1, "version2": 1, "version3": 1, "version4": 1, "version5": 1, "version6": 1, "version7": 1, "version8": 1, "version9": 1 }, "constraints": { "cut11": { "min": 28 }, "cut21": { "min": 14 }, "cut84": { "min": 8 }, "cut3.5": { "min": 42 }, "cut79.5": { "min": 4 } } } var results = solver.Solve(model);
Loading…

no comments

    sign in to comment