A coding agent writes an optimisation model in minutes and the solver reports an optimal solution. That message does not tell you whether a constraint is missing, an index has slipped or an oversized big-M has made the relaxation useless. This masterclass is for teams who build optimisation models with coding agents and want to keep ownership of the mathematics. You have models generated from a mathematical specification, write independent checkers for every solution, narrow down causes of infeasibility and compare weak with tight formulations. Examples range from portfolio constraints to staff scheduling.
Who the optimisation masterclass is for
Experienced practitioners from operations research, quant teams, treasury, planning and data science who build or maintain optimisation models in Python.
What you'll walk away with
- Write a mathematical model specification from which an agent generates Pyomo or OR-Tools code, and check one against the other
- Build independent solution checkers that recompute every constraint and the objective value
- Narrow down the causes of infeasible or unbounded models through targeted relaxation and logging
- Assess big-M constants, symmetry and alternative formulations and measure their effect on run time
- Store small instances with known solutions as regression tests in the repository
Typical scenarios
- A treasury team has a liquidity planning model with minimum balances generated; the independent checker finds a solution that slightly breaches a maturity limit because an inequality was reversed.
- In staff scheduling the solver suddenly reports infeasibility; by relaxing the rules step by step the team identifies a contradictory rest-period constraint.
- A quant team compares two formulations of portfolio constraints with minimum position sizes and documents why the tighter one solves faster despite having more variables.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the optimisation masterclass covers
- Specification before codeSets, parameters, variables, constraints and objective in mathematical notation, as a binding brief for the agent.
- From model to code and backThe agent generates Pyomo or OR-Tools code, then translates that code back into formulas for you to compare.
- Checking solutions independentlyA separate checking script recomputes constraints and objective without reusing any code from the model.
- Infeasibility and unboundednessStrategies for isolating contradictory rules, slack variables with penalty costs and informative logs.
- Tightening formulationsBig-M, symmetry breaking, valid inequalities and comparing run times and bounds across several instances.
- Regression tests and operationSmall instances with known solutions, limits for run time and optimality gap, and rules for changing the model.
Before the optimisation masterclass: prerequisites
- Experience with linear and mixed-integer optimisation
- Confident use of Python and a modelling library such as Pyomo, PuLP or OR-Tools
- A laptop with Python, a free solver such as HiGHS and an approved coding agent
Materials you keep
- A template for mathematical model specifications as agent briefs
- A generic solution checker as a starting point for your models
- A checklist for formulation quality and regression tests