From ScientificComputing
Jump to: navigation, search

Depending on the interface that is used, job submission is slightly different. You can submit a job in batch mode with the following command:

Gurobi command line interface

bsub [LSF options] "gurobi_cl my_model_file.lp"

Python interface

bsub [LSF options] "python"

Matlab interface

bsub [LSF options] "matlab -nodisplay -nojvm -singleCompThread -r my_gurobi_script"

R interface

bsub [LSF options] "R --vanilla --slave < my_gurobi_script.R > outputfile"

Here you need to replace [LSF options] with LSF parameters for the resource requirements of the job. Please find a documentation about the parameters of bsub on the wiki page about the batch system.