Install lp_solver on Mac 32/64-bit (Run it with Java ILP from Eclipse)
1) Build the lp_solve library.
a)
Download source file:
http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_source.tar.gz/download
b)
Decompress it.
c)
$ cd lp_solve_5.5/lpsolve55
$ sh ccc.osx
This creates two new files in the lpsolve55 subdirectory:
$ ls liblp*
liblpsolve55.a liblpsolve55.dylib
2) Install the lp_solve library.
If not already in directory lpsolve55, cd to it. Copy liblpsolve55.a
and
liblpsolve55.dylib to /usr/local/lib (you may need to create
/usr/local/lib first: sudo mkdir -p /usr/local/lib):
$ sudo cp liblpsolve55.a liblpsolve55.dylib /usr/local/lib
3) Create a folder named "libs" under the project
4) Copy "javailp-1.2a.jar" into the "libs" folder (http://sourceforge.net/projects/javailp/files/javailp/javailp%201.2a/javailp-1.2a.jar/download)
5) Copy "lpsolve55j.jar" into the "libs" folder ("lpsolve55j.jar" is in "lp_solve_5.5.2.0_java/lib/", which could be downloaded from http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_java.zip/download)
6) Goto "Project Properties" in Eclipse, and add "javailp-1.2a.jar" and "lpsolve55j.jar" into build path
7) Run the demo code from http://javailp.sourceforge.net/
8) Done.
References:
1) https://diegoresearch.wordpress.com/2008/07/10/using-lp_solve-in-java-with-mac-os-x/
2) http://lpsolve.sourceforge.net/5.5/distribution.htm
3) http://javailp.sourceforge.net/
4) http://lpsolve.sourceforge.net/5.5/Java/README.html
1) Build the lp_solve library.
a)
Download source file:
http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_source.tar.gz/download
b)
Decompress it.
c)
$ cd lp_solve_5.5/lpsolve55
$ sh ccc.osx
This creates two new files in the lpsolve55 subdirectory:
$ ls liblp*
liblpsolve55.a liblpsolve55.dylib
2) Install the lp_solve library.
If not already in directory lpsolve55, cd to it. Copy liblpsolve55.a
and
liblpsolve55.dylib to /usr/local/lib (you may need to create
/usr/local/lib first: sudo mkdir -p /usr/local/lib):
$ sudo cp liblpsolve55.a liblpsolve55.dylib /usr/local/lib
3) Create a folder named "libs" under the project
4) Copy "javailp-1.2a.jar" into the "libs" folder (http://sourceforge.net/projects/javailp/files/javailp/javailp%201.2a/javailp-1.2a.jar/download)
5) Copy "lpsolve55j.jar" into the "libs" folder ("lpsolve55j.jar" is in "lp_solve_5.5.2.0_java/lib/", which could be downloaded from http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.0/lp_solve_5.5.2.0_java.zip/download)
6) Goto "Project Properties" in Eclipse, and add "javailp-1.2a.jar" and "lpsolve55j.jar" into build path
7) Run the demo code from http://javailp.sourceforge.net/
8) Done.
References:
1) https://diegoresearch.wordpress.com/2008/07/10/using-lp_solve-in-java-with-mac-os-x/
2) http://lpsolve.sourceforge.net/5.5/distribution.htm
3) http://javailp.sourceforge.net/
4) http://lpsolve.sourceforge.net/5.5/Java/README.html