Optimization Solver — Get Engine Script (large models)
optimization_solver_get_engineFor models above ~3,000 variables or constraints, long runs (time limit over 60 s), MPS files, or any table already in your code sandbox. Returns a complete numpy-only Python script with the same engine as optimization_solver; it reads the tables (CSV / TSV / JSON) or MPS file named in the call, prints the decision cards and the plan summary, and writes the full result to optimization_result.json. No data reaches this server on this path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "optimization_solver_get_engine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Other inputs exactly as optimization_solver takes them (problem_type, budget, batch_size, time_limit_seconds up to 600 ...). | |
| mps_path | No | MPS model file in your sandbox. | |
| jobs_path | No | jobs file in your sandbox (CSV/TSV/JSON). | |
| costs_path | No | costs file in your sandbox (CSV/TSV/JSON). | |
| staff_path | No | staff file in your sandbox (CSV/TSV/JSON). | |
| usage_path | No | usage file in your sandbox (CSV/TSV/JSON). | |
| groups_path | No | groups file in your sandbox (CSV/TSV/JSON). | |
| shifts_path | No | shifts file in your sandbox (CSV/TSV/JSON). | |
| budgets_path | No | budgets file in your sandbox (CSV/TSV/JSON). | |
| periods_path | No | periods file in your sandbox (CSV/TSV/JSON). | |
| sources_path | No | sources file in your sandbox (CSV/TSV/JSON). | |
| machines_path | No | machines file in your sandbox (CSV/TSV/JSON). | |
| products_path | No | products file in your sandbox (CSV/TSV/JSON). | |
| projects_path | No | projects file in your sandbox (CSV/TSV/JSON). | |
| resources_path | No | resources file in your sandbox (CSV/TSV/JSON). | |
| variables_path | No | variables file in your sandbox (CSV/TSV/JSON). | |
| constraints_path | No | constraints file in your sandbox (CSV/TSV/JSON). | |
| ingredients_path | No | ingredients file in your sandbox (CSV/TSV/JSON). | |
| current_plan_path | No | current_plan file in your sandbox (CSV/TSV/JSON). | |
| destinations_path | No | destinations file in your sandbox (CSV/TSV/JSON). | |
| requirements_path | No | requirements file in your sandbox (CSV/TSV/JSON). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| paths | No | ||
| script | Yes | ||
| language | No | ||
| requires | No | ||
| writes_file | No | ||
| instructions | Yes | ||
| engine_version | Yes | ||
| scipy_required | No | ||
| data_requirements | No | ||
| network_access_required | No |