JWally / jsLPSolver

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

Parsing lp formatted files #33

Closed lvenerosy closed 8 years ago

lvenerosy commented 8 years ago

@JWally

I found this problem http://miplib.zib.de/miplib2010/ns1766074.php and I converted the mps file into an lp one with lp_solve (lp_solve -parse_only -fmps ns1766074.mps -wlp ns1766074.lp) since the comments in Reformat.js mention lp_solver (you will find the lp file of the instance and the js file I use to generate the model in the archive below).

The problem is that even though it goes through the parsing, the solution is not the expected one and the parser seems to consider everything as a variable (even the 'cXX:' in front of the constraints). Is it possible for you to adapt the parser ? Because mps files seem to be popular (and there is just a command to go from mps to lp).

Archive.zip

lvenerosy commented 8 years ago

It is fine now, so I close the issue (see PR "Parser improvement for lp files").

bchevalier commented 8 years ago

Actually, @lvenerosy , issues are usually closed when the PR has been merged (https://github.com/JWally/jsLPSolver/pull/35)