Gurobi: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 16: Line 16:
==Using Gurobi Within an Interactive Shell == <!--T:6-->
==Using Gurobi Within an Interactive Shell == <!--T:6-->


[gra-login2:~] salloc --time=1:00:0 --cpus-per-task=4 --mem=4000 --account=def-xyz
[gra-login2:~] salloc --time=1:00:0 --cpus-per-task=8 --mem=4000 --account=def-xyz
 
[gra800:~] module load gurobi  
[gra800:~] module load gurobi
[gra800:~] gurobi.sh
 
gurobi> m = read('/cvmfs/restricted.computecanada.ca/easybuild/software/2017/Core/gurobi/8.1.1/examples/data/glass4')
[gra800:~] gurobi.sh
gurobi> m.setParam('Threads', 8)
 
gurobi> m.optimize()
gurobi>
gurobi> m.reset()
gurobi> m.optimize()
gurobi> m.tune()
gurobi> help()
cc_staff
1,857

edits