cc_staff
1,857
edits
mNo edit summary |
mNo edit summary |
||
Line 77: | Line 77: | ||
<!--T:73--> | <!--T:73--> | ||
This is an example slurm script for solving [https://www.gurobi.com/documentation/9.5/quickstart_linux/solving_a_simple_model_the.html simple coin production model] written in the [https://www.gurobi.com/documentation/9.5/refman/lp_format.html LP format]. It shows how-to set the Threads and ResultFile [https://www.gurobi.com/documentation/9.0/refman/parameters.html parameters] when using the [https://www.gurobi.com/documentation/9.5/quickstart_linux/solving_the_model_using_th.html Gurobi command-line interface]. | This is an example slurm script for solving [https://www.gurobi.com/documentation/9.5/quickstart_linux/solving_a_simple_model_the.html simple coin production model] written in the [https://www.gurobi.com/documentation/9.5/refman/lp_format.html LP format]. It shows how-to set the Threads, Method and ResultFile [https://www.gurobi.com/documentation/9.0/refman/parameters.html parameters] on the command line when using the [https://www.gurobi.com/documentation/9.5/quickstart_linux/solving_the_model_using_th.html Gurobi command-line interface]. | ||
{{File | {{File | ||
|name=script-lp_coins.sh | |name=script-lp_coins.sh | ||
Line 98: | Line 98: | ||
<!--T:76--> | <!--T:76--> | ||
rm -f coins.sol | rm -f coins.sol | ||
gurobi_cl Threads=$SLURM_CPUS_ON_NODE ResultFile=coins.sol ${GUROBI_HOME}/examples/data/coins.lp | gurobi_cl Threads=$SLURM_CPUS_ON_NODE Method=2 ResultFile=coins.sol ${GUROBI_HOME}/examples/data/coins.lp | ||
}} | }} | ||
Line 104: | Line 104: | ||
<!--T:83--> | <!--T:83--> | ||
This is an example slurm script for solving a [https://www.gurobi.com/documentation/9.5/examples/a_list_of_the_grb_examples.html simple facility location model] using [https://www.gurobi.com/documentation/9.5/examples/facility_py.html Gurobi Python]. The example shows how-to | This is an example slurm script for solving a [https://www.gurobi.com/documentation/9.5/examples/a_list_of_the_grb_examples.html simple facility location model] using [https://www.gurobi.com/documentation/9.5/examples/facility_py.html Gurobi Python]. The example shows how-to set the [https://www.gurobi.com/documentation/9.5/refman/parameters.html#sec:Parameters Threads] parameter with a dynamically created [https://www.gurobi.com/documentation/9.5/quickstart_linux/using_a_grb_env_file.html gurobi.env] file when using the [https://www.gurobi.com/documentation/9.5/refman/python_parameter_examples.html Gurobi python interface]. | ||
{{File | {{File | ||
|name=script-py_facility.sh | |name=script-py_facility.sh |