feat: ajout du glpk install script
This commit is contained in:
parent
35c0adfcfc
commit
a52719c0c4
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
solveurGLPK/
|
22
install_glpk.sh
Executable file
22
install_glpk.sh
Executable 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue