
When you need to control an AIMMS model from an external environment, the Python-Bridge provides a robust interface. Specifically, the aimmspy module allows Python scripts to connect to a running AIMMS session to exchange data and trigger logic.
Key Capabilities of aimmspy
The aimmspy module enables your Python environment to interact with the AIMMS model through the following actions:
-
Data Exchange: Read and write values for AIMMS sets, parameters, and variables directly from Python data structures.
-
Procedure Execution: Call AIMMS procedures from your script to run optimizations or data processing tasks.
-
Session Management: Establish and manage the connection between the Python interpreter and the AIMMS project.
What the Guide Covers
The article walks through a foundational "Hello World" scenario to establish the connection. Key steps include:
-
Installing the Module: Setting up
aimmspywithin your Python environment. -
Connecting to AIMMS: Identifying the correct project and establishing a communication channel.
-
Modifying Model State: Passing data from Python into AIMMS identifiers.
-
Running Logic: Triggering an AIMMS procedure and retrieving the resulting output back into Python.
Get Started
If you are building Python-based wrappers, automated test suites, or custom UI integrations for your AIMMS models, this guide provides a starting point.
👉 Read the How-To: Hello to the World of Python-Bridge
We look forward to hearing how you plan to use aimmspy in your development workflow. Please share your questions or feedback in the comments.