Observed since 21 Oct, 11:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python bindings for the AIMMS optimization platform, built with pybind11 for seamless C++ integration. Enables efficient data exchange and interaction with AIMMS projects using pandas, polars, and pyarrow. Ideal for advanced optimization workflows requiring high-performance native code.
With this library it is possible to interact with AIMMS models from Python, enabling high-performance, headless interaction with AIMMS models from within Python scripts.
aimmspy is a Python module built on pybind11 for tight C++ integration, enabling efficient interaction with AIMMS models. With aimmspy, you can:
aimmspy is a key component of the AIMMS Python Bridge, designed for "Python-in-the-lead" scenarios, where Python scripts drive AIMMS model runs. It complements the pyaimms library (accessible from within an AIMMS project), which supports the reverse ("AIMMS-in-the-lead") workflow.
| Feature | Description |
|---|---|
| High-performance integration | aimmspy uses pybind11 for efficient C++ access to AIMMS runtime |
| Flexible data exchange | Leverage Python-native data structures-dictionaries, Pandas, Polars, PyArrow, for data handling between Python and AIMMS |
| Programmatic control | Trigger AIMMS procedures (e.g. solve) directly from Python and retrieve results |
| Python-first workflow | Ideal for batch runs, automated pipelines, and embedding optimization in external applications |
| Bulk data handling | The multi_assign() and multi_data() methods allows sending and fetching multiple AIMMS identifiers in a single call |
More information on how to get started can be found in the python bridge documentation.
Note: AIMMS offers a free Academic License for students, educators, and researchers. This makes it easy for academic users to experiment with AIMMS and aimmspy without cost.
Install via pip:
pip install aimmspy
Here is a minimal example showing how to connect to an AIMMS project, assign data, run a solve procedure, and retrieve results:
from aimmspy.project.project import Project, Model
from aimmspy.utils import find_aimms_path
# Initialize connection to AIMMS project
project = Project(
# path to the AIMMS bin folder (or Lib on Linux)
aimms_path=find_aimms_path("25.5.4.3"),
# path to AIMMS project
aimms_project_file="path/to/your/project.aimms",
# license url
license_url="wss://licensing.aimms.cloud/your-license-url"
)
# Get a handle to the AIMMS model
model: Model = project.get_model(__file__)
# Assign supply and demand data to the identifiers in the AIMMS model
model.Supply.assign({"Factory1": 35, "Factory2": 50})
model.Demand.assign({"Market1": 45, "Market2": 40})
# Assign transportation costs
model.TransportCost.assign({
("Factory1", "Market1"): 10,
("Factory1", "Market2"): 15,
("Factory2", "Market1"): 20,
("Factory2", "Market2"): 5,
})
# Run the optimization procedure defined in AIMMS
model.TransportSolve()
# Retrieve results: optimal shipment quantities
shipments = model.Shipments.data()
print("Optimal shipments:")
print(shipments)
This example assumes you have an AIMMS project with identifiers Supply, Demand, TransportCost, Shipments, and a procedure TransportSolve set up. Replace with identifiers from your own AIMMS project.
This project is licensed under the MIT License.
For questions, bug reports, or feature requests, please contact AIMMS B.V. via support. Or post an question on the AIMMS Community. We are happy to help you with any issues or questions you may have.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 26.1.8.3 | 23 Sept 2026 | 3 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 11:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:afc2e733a9322ef8aa54e9d4239b1b52ea25e93ea1f795b1c91eeb8fdc0efaa1