Gurobi/fr: Difference between revisions
Jump to navigation
Jump to search
598 bytes removed
, 3 years ago
|
|
Line 46: |
Line 46: |
| **** https://www.gurobi.com/documentation/8.1/refman/attributes.html | | **** https://www.gurobi.com/documentation/8.1/refman/attributes.html |
|
| |
|
| <div class="mw-translate-fuzzy">
| | ===Répéter des appels API=== |
| === Interpréteur interactif ===
| | Il est possible d'enregistrer des appels API et de rejouer l'enregistrement avec la commande |
|
| |
| [gra-login2:~] salloc --time=1:00:0 --cpus-per-task=8 --mem=1G --account=def-xyz
| |
| [gra800:~] module load gurobi
| |
| [gra800:~] echo "Record 1" > gurobi.env see *
| |
| [gra800:~] gurobi.sh
| |
| gurobi> m = read('/cvmfs/restricted.computecanada.ca/easybuild/software/2017/Core/gurobi/8.1.1/examples/data/glass4.mps')
| |
| gurobi> m.Params.Threads = 8 see **
| |
| gurobi> m.Params.Method = 2
| |
| gurobi> m.Params.ResultFile = "glass4.sol"
| |
| gurobi> m.Params.LogFile = "glass4.log"
| |
| gurobi> m.optimize()
| |
| gurobi> m.write('glass4.lp')
| |
| gurobi> m.status see ***
| |
| gurobi> m.runtime see ****
| |
| gurobi> help()
| |
| </div>
| |
|
| |
|
| <div class="mw-translate-fuzzy"> | | <div class="mw-translate-fuzzy"> |