JWally / jsLPSolver

Simple OOP javaScript library to solve linear programs, and mixed integer linear programs
The Unlicense
420 stars 69 forks source link

Example in README #50

Closed hotpeperoncino closed 7 years ago

hotpeperoncino commented 7 years ago

Very low priority issue... Example should be changed to

var fs = require("fs"), solver = require("./src/solver"), model = {};

// Read Data from File fs.readFile("./your/model/file", "utf8", function(e,d){ // Convert the File Data to a JSON Model model = solver.ReformatLP(d); // Solve the LP console.log(solver.Solve(model)); // this line is changed });

JWally commented 7 years ago

good catch. Thanks!