AI-powered optimization model tuning
Project description
Optimaze
AI-powered Gurobi optimization tuning — automatically speed up your models.
Installation
pip install optimaze
Usage
optimaze optimize model.py --repo https://github.com/you/repo --key YOUR_KEY
Options:
| Flag | Description |
|---|---|
model.py |
Your Python script that builds and solves a Gurobi model |
--repo |
GitHub repo where improvements are committed |
--key |
Your Optimaze license key (or set OPTIMAZE_KEY) |
--max-iterations |
Max improvement iterations (default: 10) |
How It Works
┌──────────────────────┐ ┌──────────────────────┐
│ Your Machine │ │ Optimaze Cloud │
│ │ │ │
│ 1. Runs your model │ ──── │ 2. Analyzes logs │
│ (your Gurobi │ logs │ & source code │
│ license) │ │ │
│ │ ◄─── │ 3. Generates code │
│ 4. Re-runs model │ code │ improvements │
│ with changes │ │ │
└──────────────────────┘ └──────────────────────┘
EULA-compliant architecture: Gurobi runs locally on your machine with your own license. The cloud service only analyzes solver logs and generates code — it never runs the solver.
Example
============================================================
OPTIMAZE
AI-powered optimization tuning
============================================================
Script: /path/to/model.py
Repo: https://github.com/you/repo
[Iteration 0] Running model...
Runtime: 18.25s
(baseline)
[Iteration 1] Running model...
Runtime: 13.10s
Improvement: 28.2% faster
RESULTS
----------------------------------------
Baseline: 18.25s
Best: 13.10s
Speedup: +28.2%
To apply:
git merge agent/optimize-sess_xxxxx
What It Tries
The agent analyzes your model's solver logs and applies targeted improvements:
- Solver Parameters — MIPFocus, Cuts, Presolve, Method, Heuristics, Threads, Symmetry
- Big-M Tightening — tighten large coefficients that cause numerical issues
- Symmetry Breaking — add constraints to eliminate symmetric solutions
- Valid Inequalities — strengthen the LP relaxation
- Branching Priorities — guide the branch-and-bound search
- Warm Starting — provide initial feasible solutions
- Lazy Constraints — defer rarely-binding constraints
Typical speedup: 20–50%
Requirements
- Python 3.10+
- Gurobi installed with a valid license (free academic license)
- Git configured for your repo
Environment Variables
| Variable | Description |
|---|---|
OPTIMAZE_KEY |
Your license key |
OPTIMAZE_SERVER |
Custom server URL (optional) |
License
MIT — see LICENSE
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file optimaze-0.3.2.tar.gz.
File metadata
- Download URL: optimaze-0.3.2.tar.gz
- Upload date:
- Size: 104.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0cb7f9f9bdb86207128b26160e605c342c20542c470bb5109157eb2c3d453a1d
|
|
| MD5 |
36ab541966b7cd293b0cbece5eca0fd8
|
|
| BLAKE2b-256 |
955abf64be879e365679fdf11471a46ca58893e84908292b6b5412bad1ab774d
|
File details
Details for the file optimaze-0.3.2-py3-none-any.whl.
File metadata
- Download URL: optimaze-0.3.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c92e3a5b8370f2b947a5deead06d26a754778e54cc380470ecff92b12acae6a
|
|
| MD5 |
ce7002bf5ccc86285e8e4984b9ec5d04
|
|
| BLAKE2b-256 |
d2772572711c9a6d1f2d97eb87acae24bed9cc40acce0ded62d006762da886bd
|