Created
July 27, 2020 12:34
-
-
Save gkobeaga/12adbb9f93cf615239f2636252a474de to your computer and use it in GitHub Desktop.
Build Concorde with GLPK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Download and install GLPK | |
| wget ftp://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz | |
| tar xvzf glpk-4.65.tar.gz | |
| cd glpk-4.65 | |
| ./configure | |
| make | |
| sudo make install | |
| sudo ldconfig | |
| cd .. | |
| # Download and Build Concorde | |
| wget http://www.math.uwaterloo.ca/tsp/concorde/downloads/codes/src/co031219.tgz | |
| tar xvzf co031219.tgz | |
| cp glpk-4.65/examples/cplex/cplex.* concorde/LP | |
| echo '#include "cplex.c"' > concorde/LP/lpglpk.c | |
| echo '#include "lpcplex8.c"' >> concorde/LP/lpglpk.c | |
| cd concorde | |
| ./configure | |
| make CPPFLAGS=-I. LPSOLVER_INTERFACE=lpglpk.c LPSOLVER_LIB=-lglpk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment