Agentic Coding · Masterclass · Actuarial, finance & OR

Optimisation Models with Coding Agents: A Masterclass on Linear and Mixed-Integer Models

Turn business rules into linear and mixed-integer models faster, and stay in control of whether the solver is really solving the problem you mean.

  • Workshops & trainings since 2014
  • jocapps GmbH · Freiburg, Germany
  • The team behind Mathe-VollLogo
Format
Masterclass
Duration
1 day (7.5 hours)
Delivery
Live online · On-site (in-house) · Hybrid
Group size
4–10 participants
Level
Advanced
Language
German or English

Tools: Claude Code · Python · Pyomo · OR-Tools · HiGHS

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

  1. 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.
  2. In staff scheduling the solver suddenly reports infeasibility; by relaxing the rules step by step the team identifies a contradictory rest-period constraint.
  3. 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.

Request dates

What the optimisation masterclass covers

  1. Specification before codeSets, parameters, variables, constraints and objective in mathematical notation, as a binding brief for the agent.
  2. From model to code and backThe agent generates Pyomo or OR-Tools code, then translates that code back into formulas for you to compare.
  3. Checking solutions independentlyA separate checking script recomputes constraints and objective without reusing any code from the model.
  4. Infeasibility and unboundednessStrategies for isolating contradictory rules, slack variables with penalty costs and informative logs.
  5. Tightening formulationsBig-M, symmetry breaking, valid inequalities and comparing run times and bounds across several instances.
  6. 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

How it works

  1. Request with preferred datesTick the date proposals that suit you or name a period of your own.
  2. Short callWe talk about your goals, prior knowledge and the tools your team already uses.
  3. Agenda for your teamYou receive a plan tailored to your group, with exercises that match your subject and material.
  4. Course and materialsThe course runs online, on-site or hybrid, and you keep the materials afterwards.

Why train with us

  • jocapps GmbH has offered workshops and trainings since 2014. The topics have moved with the technology; today the focus is on agentic coding and prompt engineering.
  • Hands-on rather than slides: you practise on realistic examples from maths and STEM, or on your own tasks, code or prompts if you wish.
  • Online, on-site or hybrid, held in German or English.
  • jocapps GmbH is certified to ISO 27001 (information security) and ISO 9001 (quality management).

Questions about the optimisation masterclass

Does this work with commercial solvers?

Yes. We use free solvers so that everyone can start straight away. The approach does not depend on the solver; on request we include features of the commercial solvers you use in-house, such as tools for analysing infeasible models, in the examples.

How does the masterclass differ from the operations research course?

The six-week course works systematically through typical problem classes, from transport to simulation. The masterclass assumes that knowledge and spends one day on model quality, independent verification and debugging of existing models, ideally including one of yours.

Can we bring a model of our own?

Gladly, ideally with a small, non-critical instance. We replace confidential data with synthetic values of the same structure, so that working with the agent raises no concerns and the model's behaviour can still be studied realistically.

Is the masterclass held online or on-site, and in which language?

Both are possible: live online, at your premises (in-house) or hybrid. The course is held in German or English; you choose when you send the request.

Can the content be tailored to our team?

Yes. The agenda, examples and emphasis are agreed in the call beforehand, based on your team's prior knowledge, subjects and tools. On request we work with your own exercises, data or code.