Skip to main content

Dear,

I am trying to use aimms.py in order to run a AIMMS model from python and parse and receive output. 

I created the following python script based on the package: aimmspy · PyPI.
 

import os

from aimmspy.project.project import Project, Model

from aimmspy.utils import find_aimms_path

 

aimms_bin_path = r"C:\Users…..."

project_file = r"C:\Users…..aimms"

# input_file = r"C:\Users....txt"

results_file = r"C:\Users....csv"

 

project = Project(

    # path to the AIMMS Bin folder (on linux the Lib folder)

    aimms_path=aimms_bin_path,

 

    aimms_project_file=project_file,

    license_url=R"wss://licensing…….."

)

 

my_aimms : Model = project.get_model(__file__)

 

my_aimms.GuiReadData()

 

After running the script (with proper paths and license), I get Unable to load IBM CPLEX library. Exiting.

I tried to change the solver within AIMMS but still the same error occurs. 
 

Is there anyone that encountered the same issue? 


I look forward to a reply.

Kind regards,

Jesper 

Hi ​@Jesper. The error is harmless but to get rid of it you should remove the solver ODH-CPLEX from the solver configuration.


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator