cc_staff
653
edits
(add translate tags) |
|||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
[[Category:Software]] | [[Category:Software]] | ||
<translate> | |||
<!--T:1--> | <!--T:1--> | ||
Line 57: | Line 58: | ||
=== Model in LP-format === | === Model in LP-format === | ||
This is an example | 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=gurobi_example.sh | |name=gurobi_example.sh | ||
Line 101: | Line 102: | ||
Before we start, we need to decide which combination of versions for Gurobi and Python to use. | Before we start, we need to decide which combination of versions for Gurobi and Python to use. | ||
</translate> | |||
{{Commands|prompt=[name@server ~] $ | {{Commands|prompt=[name@server ~] $ | ||
|module load gurobi/8.1.1 | |module load gurobi/8.1.1 | ||
Line 107: | Line 109: | ||
python2.7/ python2.7_utf32/ python3.6_utf32/ | python2.7/ python2.7_utf32/ python3.6_utf32/ | ||
python2.7_utf16/ python3.5_utf32/ python3.7_utf32/ | python2.7_utf16/ python3.5_utf32/ python3.7_utf32/ | ||
|module load gurobi/9.0.1 | |module load gurobi/9.0.1 | ||
|cd $EBROOTGUROBI/lib | |cd $EBROOTGUROBI/lib | ||
Line 113: | Line 115: | ||
python2.7_utf16/ python3.5_utf32/ python3.7/ python3.8_utf32/ | python2.7_utf16/ python3.5_utf32/ python3.7/ python3.8_utf32/ | ||
python2.7_utf32/ python3.6_utf32/ python3.7_utf32/ | python2.7_utf32/ python3.6_utf32/ python3.7_utf32/ | ||
|cd | |cd | ||
}} | }} | ||
<translate> | |||
We see that <code>gurobi/8.1.1</code> brings it's own installation of <code>python2.7/</code> and Python packages for Python 2.7, 3.5, 3.6 and 3.7 (<code>pythonX.Y_utf32/</code>), | We see that <code>gurobi/8.1.1</code> brings it's own installation of <code>python2.7/</code> and Python packages for Python 2.7, 3.5, 3.6 and 3.7 (<code>pythonX.Y_utf32/</code>), | ||
Line 193: | Line 196: | ||
And this is an example job script that we can use: | And this is an example job script that we can use: | ||
</translate> | |||
{{File | {{File | ||
|name=gurobi-py_example.sh | |name=gurobi-py_example.sh | ||
Line 210: | Line 214: | ||
python my_gurobi_script.py | python my_gurobi_script.py | ||
}} | }} | ||
<translate> | |||
== Cite Gurobi == | == Cite Gurobi == | ||
Please see [https://support.gurobi.com/hc/en-us/articles/360013195592-How-do-I-cite-Gurobi-software-for-an-academic-publication- How do I cite Gurobi software for an academic publication?] | Please see [https://support.gurobi.com/hc/en-us/articles/360013195592-How-do-I-cite-Gurobi-software-for-an-academic-publication- How do I cite Gurobi software for an academic publication?] | ||
</translate> |