Gurobi: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
Line 257: Line 257:
}}
}}


== Using Gurobi with Java ==
To use Gurobi with Java, you will also need to load a Java module and add an option to your Java command in order to allow the Java virtual environment to find the Gurobi libraries. A sample job script is below:
{{File
  |name=gurobi-java.sh
  |lang="sh"
  |contents=
#!/bin/bash
#SBATCH --time=0-00:30        # time limit (D-HH:MM)
#SBATCH --cpus-per-task=1    # number of CPUs (threads) to use
#SBATCH --mem=4096M  # memory per CPU (in MB)
module load java/14.0.2
module load gurobi/9.1.2
java -Djava.library.path=$EBROOTGUROBI/lib -Xmx4g -jar my_java_file.jar
}}
== Using Gurobi with Jupyter notebooks == <!--T:200-->
== Using Gurobi with Jupyter notebooks == <!--T:200-->


Bureaucrats, cc_docs_admin, cc_staff
2,306

edits

Navigation menu