cc_staff
1,857
edits
No edit summary |
mNo edit summary |
||
Line 76: | Line 76: | ||
This is an example job script for an optimization model written in the [https://www.gurobi.com/documentation/8.1/refman/lp_format.html LP format]. | This is an example job script for an optimization model written in the [https://www.gurobi.com/documentation/8.1/refman/lp_format.html LP format]. | ||
{{File | {{File | ||
|name= | |name=script_coins.sh | ||
|lang="sh" | |lang="sh" | ||
|contents= | |contents= | ||
#!/bin/bash | #!/bin/bash | ||
#SBATCH --account=def-group # some account | #SBATCH --account=def-group # some account | ||
#SBATCH --time= | #SBATCH --time=1:00 # specify time limit (D-HH:MM) | ||
#SBATCH --mem-per- | #SBATCH --mem=4G # specify total memory | ||
#SBATCH --cpus-per-task=4 # specify number threads | |||
<!--T:75--> | <!--T:75--> | ||
# | #module load StdEnv/2016 # for versions < 9.0.3 | ||
module load StdEnv/2020 | module load StdEnv/2020 # for versions > 9.0.2 | ||
module load gurobi/9.5.0 | |||
<!--T:79--> | <!--T:79--> | ||
gurobi_cl ${GUROBI_HOME}/examples/data/coins.lp | gurobi_cl Threads=$SLURM_CPUS_ON_NODE LogFile=coins.log ResultFile=coins.sol ${GUROBI_HOME}/examples/data/coins.lp | ||
}} | }} | ||