- OptimEngine - Operations Scheduling Solver
OptimEngine - Operations Scheduling Solver
โก OptimEngine
Operations Intelligence for AI Agents โ L1 โ L3 in one conversation.
11 MCP tools that optimize, quantify risk, forecast, and prescribe. From production scheduling to Monte Carlo simulation. From delivery routing to Pareto frontiers. Ask in natural language, get optimal decisions.
๐ค Use with Claude (60 seconds)
No installation. No code. Works on claude.ai (Free, Pro, Max, Team, Enterprise).
- Open claude.ai
- Click + โ Integrations
- Add custom integration
- Paste this URL:
https://optim-engine-production.up.railway.app/mcp/sse
Claude discovers all 11 tools automatically. Try asking:
"Schedule 5 production orders on 4 machines, minimize delays"
"Optimize delivery routes for 6 clients with 2 trucks"
"What happens if dosing time increases 30%? Run sensitivity analysis"
"I have historical data for the last 8 weeks. Forecast next month and recommend actions"
๐ง What Is OptimEngine?
An Operations Intelligence Engine โ not a wrapper, not a chatbot. A computational decision brain that solves NP-hard optimization problems and quantifies risk. Powered by Google OR-Tools CP-SAT and Routing solvers.
4 Intelligence Levels
| Level | Capability | Question It Answers |
|---|---|---|
| L1 Deterministic | Scheduling, Routing, Packing, Validation | What's the optimal plan? |
| L2 Uncertainty | Sensitivity, Robust, Stochastic | How fragile is this plan? |
| L2.5 Multi-Objective | Pareto Frontier | What's the best trade-off? |
| L3 Prescriptive | Forecast โ Optimize โ Risk โ Advise | What should I do and why? |
11 MCP Tools
L1 โ Deterministic Optimization
optimize_scheduleโ Flexible Job Shop (FJSP) with precedence, setup times, priorities, 4 objectivesoptimize_routingโ CVRPTW with capacity, time windows, distance matrix, drop visitsoptimize_packingโ Multi-dimensional bin packing with weight, volume, groupsvalidate_scheduleโ Find overlaps, precedence violations, eligibility errors
L2 โ Optimization under Uncertainty
analyze_sensitivityโ Parametric perturbation, elasticity, risk rankingoptimize_robustโ Worst-case / percentile protection, price of robustnessoptimize_stochasticโ Monte Carlo + CVaR with 4 distributions
L2.5 โ Multi-Objective
optimize_paretoโ 2-4 competing objectives, trade-off analysis, correlation
L3 โ Prescriptive Intelligence
prescriptive_adviseโ 4 forecast methods, 3 risk appetites, confidence intervals, action items
Infrastructure
health_checkโ System statusrootโ Server info, capabilities, tool listing
๐ Live Demo Results
Every number below comes from a real call to OptimEngine. Zero mock data.
Digital Twin Decisionale โ NovaCosm (Cosmetics Manufacturer)
Full production-to-delivery chain: 6 lines, 8 orders, 5 brand clients.
| Phase | Tool | Result |
|---|---|---|
| Plant diagnosis | optimize_schedule | 575 min makespan, 2 late, Line 2 bottleneck (82.6%) |
| Cycle time forecast | prescriptive_advise | 3 rising trends (+1.1-1.65%/week), +5.6% makespan in 4 weeks |
| What-if: cross-line | optimize_schedule | Move 1 product to Line 1 โ tardiness -65%, lines balanced |
| Risk profile | optimize_stochastic | 50 Monte Carlo, CV 4.5%, 100% feasible |
| Client doubles orders | optimize_schedule | Without investment: 530 min tardiness, 50% late |
| + New line investment | optimize_schedule | With Line 2B: 0 tardiness, 478 min, 8/8 on-time |
| Manual schedule check | validate_schedule | 4 violations found (overlaps + precedence) |
| Risk ranking | analyze_sensitivity | Serum dosing most critical (score 11.3, elasticity 0.227) |
| Delivery routing | optimize_routing | 6 clients, 2 trucks, 70 km, all time windows met |
| Truck loading | optimize_packing | 8/8 pallets, 0 excluded, route-constrained |
Strategic decisions generated: cross-line authorization (saves 125 min/day), maintenance alert (Line 2 degrading), investment quantification (Line 2B enables client growth).
BevDistri (F&B HoReCa Distribution)
| Tool | Result |
|---|---|
optimize_routing | 18 clients, 2/3 vehicles used, 132 km, all windows met |
prescriptive_advise | +21% Modena demand in 4 weeks, decision deadline identified |
optimize_packing | 13 items, 2 bins, 0 drops, 97% utilization alert |
analyze_sensitivity | Hotel demand can double without route split |
๐ง For Developers
MCP Configuration (Claude Desktop, Cursor)
{
"mcpServers": {
"optim-engine": {
"command": "npx",
"args": [
"supergateway",
"--sse",
"https://optim-engine-production.up.railway.app/mcp/sse"
]
}
}
}
Direct API
curl -X POST https://optim-engine-production.up.railway.app/optimize_schedule \
-H "Content-Type: application/json" \
-d '{
"jobs": [
{
"job_id": "ORD-001",
"priority": 8,
"due_date": 480,
"tasks": [
{"task_id": "dosing", "duration": 90, "eligible_machines": ["line_A", "line_B"], "setup_time": 15},
{"task_id": "filling", "duration": 60, "eligible_machines": ["line_A", "line_D"], "setup_time": 10}
]
}
],
"machines": [{"machine_id": "line_A"}, {"machine_id": "line_B"}, {"machine_id": "line_D"}],
"objective": "minimize_makespan"
}'
Orchestration Pattern: Routing โ Packing
When combining routing and packing (e.g., delivery logistics), use this pattern:
- Call
optimize_routingโ get routes with vehicle-to-client assignments - Partition items by route โ each vehicle's items based on routing output
- Call
optimize_packingper vehicle โ separate packing per truck/van
This ensures pallet assignments match delivery routes. See the NovaCosm demo for a complete example.
๐ Available On
| Platform | Link |
|---|---|
| Claude.ai | Add as custom integration (instructions above) |
| MCPize | mcpize.com/mcp/optim-engine |
| Apify Store | apify.com/hearty_indentation/optim-engine |
| LobeHub | lobehub.com/mcp/michelecampi-optim-engine |
| mcp.so | mcp.so/server/optim-engine |
| Railway | optim-engine-production.up.railway.app |
| ERC-8004 | Agent #22518 on Base L2 |
| Landing Page | optim-engine-landing.vercel.app |
๐ Numbers
| Metric | Value |
|---|---|
| Solver modules | 9 |
| MCP tools | 11 |
| Tests passing | 121 |
| Intelligence levels | 4 (L1, L2, L2.5, L3) |
| Forecast methods | 4 |
| Stochastic distributions | 4 |
| Scheduling objectives | 4 |
| Routing objectives | 4 |
| Risk appetites | 3 |
| ERC-8004 Agent | #22518 (Base L2) |
| Capital invested | โฌ0 |
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude / AI Agent โ
โ (natural language interface) โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโ
โ MCP Protocol
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
โ OptimEngine v8.0.0 โ
โ FastAPI + MCP Server โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ L1 Deterministic โ
โ โโ Scheduling (CP-SAT FJSP) โ
โ โโ Routing (OR-Tools CVRPTW) โ
โ โโ Packing (CP-SAT) โ
โ โโ Validator โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ L2 Uncertainty โ
โ โโ Sensitivity Analysis โ
โ โโ Robust Optimization โ
โ โโ Stochastic (Monte Carlo) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ L2.5 Multi-Objective โ
โ โโ Pareto Frontier โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ L3 Prescriptive Intelligence โ
โ โโ Forecast โ Optimize โ Advise โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Google OR-Tools ยท Python
Railway ยท ERC-8004 Base L2
๐ค Consulting & Custom Integration
Need OptimEngine configured for your specific operations? Production scheduling, logistics optimization, risk analysis for your plant?
I build Digital Twin Decisional systems โ from scheduling diagnosis to strategic what-if analysis. The solver runs in seconds; the domain expertise makes it useful.
Michele Campi โ Operations Intelligence Engineer
- GitHub: @MicheleCampi
- 7+ years operations controlling in cosmetics contract manufacturing
- Built OptimEngine solo: 11 tools, 4 intelligence levels, 121 tests, zero capital
License
MIT โ use it freely. The code is open; the intelligence design is the moat.