Linear Program Parser
A Library to parse a Linear Program text.
This library is built upon Pegjs and is able to transform the Linear Programming text representation in a JavaScript object. The object is an instance of a class that can be able to evaluate some of the math present in the representation and return the FPI (portuguese initials for Standard Form of Equality).
To use this library first install it by running npm install linear-program-parser
import the parse
function and you're ready to go.
Example:
; const linearProgram = ; const fpi = linearProgram; const a b c vars = fpi;
Go to Simplex Web and see this library being used to prepare input for the Simplex program to compute its optimal value.