How to quick solve LP by LPSOLVE from JAVA

31 Views Asked by At

I have a LP problem witch is constructing from JAVA code. For my conveniences I create LP directly in LP file format in my code. To create LP file, I do not use a LP solve matrix equations, but directly write linear equations into a text variable, which then save to LP file (this is more convenient for me of later checking the spelling).

But when using this method, I have to first write the LP to a file via FileWriter writer, and then comb it through lpSolve solver = lpSolve.readLp(.... and actually solve via solver.solve(); Or maybe there is a way to solve this system of equations without writing and then reading from a file (to make the process a little faster)?

0

There are 0 best solutions below