Fixed bug in LP solver call.

This commit is contained in:
Daan Vanden Bosch 2019-06-04 17:04:20 +02:00
parent 72ecdac71d
commit 63a703e708

View File

@ -1,4 +1,4 @@
import { Solve } from 'javascript-lp-solver'; import solver from 'javascript-lp-solver';
import { observable } from "mobx"; import { observable } from "mobx";
import { Difficulties, Item, NpcType, SectionIds } from "../domain"; import { Difficulties, Item, NpcType, SectionIds } from "../domain";
import { huntMethodStore } from "./HuntMethodStore"; import { huntMethodStore } from "./HuntMethodStore";
@ -61,7 +61,7 @@ class HuntOptimizerStore {
} }
} }
const result = Solve({ const result = solver.Solve({
optimize: 'time', optimize: 'time',
opType: 'min', opType: 'min',
constraints, constraints,