Gurobi: Difference between revisions

Jump to navigation Jump to search
62 bytes removed ,  2 years ago
m
no edit summary
mNo edit summary
mNo edit summary
Line 248: Line 248:
#!/bin/bash
#!/bin/bash
#SBATCH --time=0-00:30        # time limit (D-HH:MM)
#SBATCH --time=0-00:30        # time limit (D-HH:MM)
#SBATCH --cpus-per-task=1    # number of CPUs (threads) to use
#SBATCH --cpus-per-task=1    # number of CPUs to use
#SBATCH --mem-per-cpu=1000M  # memory per CPU (in MB)
#SBATCH --mem-per-cpu=1000M  # memory per CPU (in MB)


Line 259: Line 259:


<!--T:207-->
<!--T:207-->
# Create environment file in current directory setting the number of threads:
echo "Threads ${SLURM_CPUS_ON_NODE:-1}" > gurobi.env   # set number of threads
echo "Threads ${SLURM_CPUS_ON_NODE:-1}" > gurobi.env


<!--T:208-->
<!--T:208-->
cc_staff
1,857

edits

Navigation menu