Gurobi: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 24: Line 24:
  [gra-login2:~] salloc --time=1:00:0 --cpus-per-task=8 --mem=1G --account=def-xyz
  [gra-login2:~] salloc --time=1:00:0 --cpus-per-task=8 --mem=1G --account=def-xyz
  [gra800:~] module load gurobi
  [gra800:~] module load gurobi
  [gra800:~] echo "Record 1" > gurobi.env
  [gra800:~] echo "Record 1" > gurobi.env   see *
  [gra800:~] gurobi.sh
  [gra800:~] gurobi.sh
  gurobi> m = read('/cvmfs/restricted.computecanada.ca/easybuild/software/2017/Core/gurobi/8.1.1/examples/data/p0033.mps')  
  gurobi> m = read('/cvmfs/restricted.computecanada.ca/easybuild/software/2017/Core/gurobi/8.1.1/examples/data/glass4.mps')  
  gurobi> m.Params.Threads = 8
  gurobi> m.Params.Threads = 8               see **
  gurobi> m.Params.Method = 2
  gurobi> m.Params.Method = 2
  gurobi> m.Params.ResultFile = "p0033.sol"
  gurobi> m.Params.ResultFile = "glass4.sol"
  gurobi> m.Params.LogFile = "p0033.log"
  gurobi> m.Params.LogFile = "glass4.log"
  gurobi> m.optimize()
  gurobi> m.optimize()
gurobi> m.write('glass4.lp')
gurobi> m.status                          see ***
gurobi> m.runtime                          see ****
  gurobi> help()
  gurobi> help()
where
    * https://www.gurobi.com/documentation/8.1/refman/recording_api_calls.html
  ** https://www.gurobi.com/documentation/8.1/refman/parameter_descriptions.html
  *** https://www.gurobi.com/documentation/8.1/refman/optimization_status_codes.html
**** https://www.gurobi.com/documentation/8.1/refman/attributes.html


==Replay API Call Recordings== <!--T:7-->
==Replay API Call Recordings== <!--T:7-->
   
   
  [gra800:~] gurobi_cl recording000.grbr
  [gra800:~] gurobi_cl recording000.grbr
cc_staff
1,857

edits