Hey, when I try to use the ipopt module in colab, it tells me it’s not there. the gurobi works fine, but for some reason ipopt solver is:
Exception: AMPL module ‘ipopt’ is not available.
Here is the code I put in in colab (wihtout my license number obvi), PLEASE HELP:
!pip install -q amplpy
MODULES, LICENSE_UUID = [“gurobi”,“ipopt”], ‘Lic Numb’
ampl = tools.ampl_notebook(modules=MODULES, license_uuid=LICENSE_UUID, g=globals()) # instantiate AMPL object and register magics
2 Likes
Hi @Colin_Mad,
Ipopt is included in the module "coin"
together with other COIN-OR solvers.
1 Like
So what code do i need to put in there to use them?
I need to IPOPT and Couenne, and neither of them seem to be executable, or whatever it is.
You should use:
!pip install -q amplpy
MODULES, LICENSE_UUID = ["gurobi", "coin"], "Lic Numb"
ampl = tools.ampl_notebook(modules=MODULES, license_uuid=LICENSE_UUID, g=globals()) # instantiate AMPL object and register magics
The module “coin” already includes CBC, Couenne, Ipopt, and Bonmin (the 4 COIN-OR solvers we support).