I have put significant effort in installing cuOpt solver.
Overview what I have done:
I am running Ubuntu 24.04 with Rtx 5070 ti GPU.
Installed AMPL CE (activated it) and put it to Path (ampl command is found from terminal)
I’ve installed Nvidia PPA 575 drivers that come with CUDA 12.9 (nvidia-smi confirms successful installation)
Installed Docker app as instructed on Docker web page
Installed Nvidia Container Toolkit
Installed Nvidia CUDA Toolkit
Installed Conda environment with Python 3.12
Installed cuOpt with pip as instructed on cuOpt web page quickstart guide for C interface (cuopt_cli runs ok)
Run from ampl dir (this is basically suggested on AMPL’s cuOpt solver webpage)
sudo docker run -it --rm --gpus all -v $(pwd):/workspace -w /workspace nvidia/cuda:12.9.0-runtime-ubuntu24.04 /bin/bash
Docker successfully launches CUDA environment within AMPL dir (nvidia-smi shows correctly empty process list as it is docker, with 575 drivers; and ls command confirms it is AMPL dir)
run ./ampl
Pasted simple model to AMPL
var x >= 0;
var y >= 0;
maximize Objective: 3x + 5y;
subject to Constraint1: x + 2y <= 10;
subject to Constraint2: 2x + y <= 8;
option solver cuopt;
solve;
display x, y, Objective;
I am getting error that cuopt is not found. The same applies if I set cuoptmp or cuopt_cli as solver.
I am still probably missing something. Can you help me set it up?
put cuopt libraries to path so that pure AMPL can find it without Python
docker image was not needed in my case probably as I installed both toolkits independently
Currently cuopt link libraries are still not available on AMPL Portal, only throw amplpy. Will you and when put them on portal to make installation easier for native AMPL users?
cuOpt is now listed on the AMPL Portal and available for Download from Download cuOpt.
Regarding the message Solution obtained using an unauthorized or unknown solver. Please contact support@ampl.com, please upgrade your AMPL installation to the latest version by downloading the AMPL module from Download AMPL. AMPL versions prior to the release of cuOpt will not recognize it as one of the free solvers to use with AMPL CE.