Skip to content

Instantly share code, notes, and snippets.

@gkobeaga
Created July 27, 2020 12:34
Show Gist options
  • Select an option

  • Save gkobeaga/12adbb9f93cf615239f2636252a474de to your computer and use it in GitHub Desktop.

Select an option

Save gkobeaga/12adbb9f93cf615239f2636252a474de to your computer and use it in GitHub Desktop.
Build Concorde with GLPK
#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