feat: ajout du glpk install script

This commit is contained in:
Laurent Fainsin 2021-12-09 15:48:12 +01:00
parent 35c0adfcfc
commit a52719c0c4
3 changed files with 26 additions and 2 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
solveurGLPK/

22
install_glpk.sh Executable file
View file

@ -0,0 +1,22 @@
mkdir solveurGLPK
cd solveurGLPK
mkdir sources
cd sources
wget ftp://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz
tar -xzvf glpk-5.0.tar.gz
cd glpk-5.0
./configure --disable-shared
make
#make --jobs=4
make check
cd ../..
mkdir executables
cp sources/glpk-5.0/examples/glpsol executables/.
cp sources/glpk-5.0/doc/glpk.pdf executables/.
cp sources/glpk-5.0/doc/gmpl.pdf executables/.
cd executables
./glpsol --help

View file

@ -110,11 +110,12 @@
"metadata": {},
"outputs": [],
"source": [
"# on teste de lire tous les fichiers .opb\n",
"# on convert tous les .opb et .lp\n",
"for (root, dirs, files) in walkdir(\"data\")\n",
" for file in files\n",
" if endswith(file, \".opb\")\n",
" readKnapInstance(root * \"/\" * file)\n",
" price, weight, capacity = readKnapInstance(root * \"/\" * file)\n",
" \n",
" end\n",
" end\n",
"end"