Skip to content

Ampl

We have an ampl module available that can be used but you'll have to create an account with your university email address on the ampl website: https://ampl.com/academia/

Then you'll have to get your licence.

amplkey activate --uuid <license-uuid>

You can also use python and not use our module. You can create your virtual environment one time and then use it with the solver you want. For example:

module load python/3.14
python3 -m venv ampl-venv
source ampl-venv/bin/activate
pip install pip --upgrade
pip install amplpy --upgrade

Activate your license

python3 -m amplpy.modules activate <license-uuid>

Install the solver you need:

python3 -m amplpy.modules install gurobi --upgrade

You can get a list of the available solver names with this command:

python3 -m amplpy.modules available

Note that some of the modules listed are not available in the free academic program (conopt, baron, knitro).