Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

cuopt-numerical-optimization-formulation

Turn a written optimization problem into a clear LP, MILP, or QP formulation with labeled parameters, constraints, decisions, and objective.

When to use it

You have a word problem or business scenario with costs, capacities, and choices, but no math model yet, and you need to know which variables are fixed versus decided.

For example

You say

Use cuopt-numerical-optimization-formulation to parse this: 'A bakery runs 2 ovens and plans to bake 800 loaves. It may add a night shift at extra cost. Minimize total cost.' Then give me the formulation.

You get
  • Labeled sentence breakdown
  • Parameter/constraint/decision summary
  • LP or MILP formulation

How it works

  • Flags committed phrasing like 'plans to' or 'operates' as fixed facts, not decisions.
  • States an implicit objective when the text only says 'determine the plan' but gives costs.
  • Notes that QP must be minimized and MILP solutions return no duals.