solve_constraints
Solve linear, mixed-integer, or quadratic programs to find provably optimal variable assignments and objective value using the HiGHS solver.
Instructions
[Premium] Solve linear / mixed-integer / quadratic programs (HiGHS solver). Use when the objective and constraints are linear (or quadratic) and you need a provably optimal solution: budget allocation across line items, supply chain optimization, capacity planning with integer counts, portfolio construction with hard caps. For continuous black-box objectives, use optimize_cmaes. For task→slot scheduling, use solve_schedule. Returns variable assignments + objective value. Requires ORACLAW_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | ||
| objective | Yes | Map of variable name → coefficient in the objective function. | |
| variables | Yes | ||
| constraints | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | e.g. 'optimal', 'infeasible', 'unbounded'. | |
| objectiveValue | No | Objective at the optimum (when status='optimal'). | |
| variables | No | Map of variable name → solved value. |