Volur (2021-2025)
Senior Data Scientist / AI Researcher
Volur helps meat plants plan how animals get cut, sorted, and scheduled so the plant makes more money and still fills orders. Almost every project I touched there was the same question in a different building:
Given today’s animals (or carcasses), a book of customer orders, and the plant’s cutting rules - which decision maximizes value without breaking the floor?
I spent four years learning how to turn that sentence into math, then into code that runs on real warehouse data. The methods changed. The question did not.
My role
I was on the R&D side and in the room with clients - six or more engagements across beef, pork, and poultry. Day to day I would:
- Listen to a planner’s constraint (“we cannot cut that label the day we kill it”) and write it as a model.
- Pick a representation (assignment, network flow, BOM graph, Petri net) and notice when the natural split is wrong (primal-by-primal beef cutting, line-by-line quartering).
- Ship solvers and heuristics, build yield and weight models when the optimizer needs a number, and wire things to Snowflake, dbt, and the company’s planning product.
- Explain results in dollars so a plant manager can defend the decision on Monday morning.
I also taught RL basics to teammates and ran plenty of “wrong tree” experiments myself. That is part of the job :)
How my toolbox grew
Reinforcement learning - from Atari to cutting graphs
I joined knowing RL as Gym homework: Q-learning, DQN, actor-critic, LunarLander. Volur pushed me to treat RL as choosing a legal path through a cutting graph - but only after you get the action mask right. Illegal cuts are not “low Q-value”; they are not allowed. Mask first, policy second.
I built custom environments for TSP-style paths, shortest-path Q-learning with order-filling rewards, job-shop scheduling gyms, and Petri-net assignment problems with PPO. Model-based RL (MuZero-style ideas) made sense where we could roll a plant forward in a simulator.
Honest conclusion: for a known order book and a known carcass, MIP, CP, or min-cost flow beat my policy nets on the sizes we had. RL stayed useful for adaptive or uncertain settings and for prototyping inside simulators. I am not going to pretend the neural net shipped when the solver did.
Classical optimization - what actually ran in plants
Once the problem is variables and constraints, exact solvers and smart heuristics won on speed and trust.
I used linear and mixed-integer programming (OR-Tools SCIP, PuLP, CVXPY), constraint programming (CPMpy, CP-SAT) for breaks and sequences, network flow for cutting graphs, and metaheuristics (genetic algorithms, simulated annealing, CMA-ES) when combinations exploded. Greedy rules that match how the floor already thinks stayed the baseline every smart method had to beat.
My rough selection rule:
- MIP when the objective and constraints are linear and the model fits in memory.
- CP when the pain is logical (calendars, batches, “these two categories cannot follow each other”).
- Heuristics or hybrids when combination count goes crazy or the answer is needed now.
- ML on the input when yield or weight itself is uncertain (hot scale vs cold scale, cluster identity).
On one US beef engagement, cutting combinations blew past 262,144+ in the notes - that is a heuristic job, not a bragging-rights MIP.
Statistics - because the solver eats a number
Optimizers want a yield. Plants give you a distribution.
I spent a lot of time on EDA and yield matrices, Bayesian models from hot scale to cold weight and yield class (brand and grade matter - one prior does not fit all cattle), Gaussian mixtures for sorting carcasses by value (then simplifying splits for the floor: lines, staircases of weight cutoffs), NGBoost for probabilistic yield on cube-roll work, and Monte Carlo napkin math to ask “what is sorting worth?” or “what is a better forecast worth?”
A point forecast that is wrong in a consistent direction mis-assigns a whole week. Coverage and RMSE matter more than a leaderboard score.
Software around the math
Models only help if someone runs them Monday morning. I worked with Snowflake as the warehouse (snapshot discipline, dbt pipelines), the planning product (React, rules engine, simulation runner, in-product assistant), a Slack assistant on Azure OpenAI, and read-only MCP access to Snowflake for safe SQL from agent tools. Same mental model as the agent SDK docs I keep: loop until the tool call is done.
Client work (anonymized)
Each plant taught a constraint the previous plant did not have.
A large US beef processor - cutting, sorting, live weight
A side leaves the line with brand, grade, weight, and yield class. Orders want products in a tight weight window. You cannot upgrade a grade. Unused “realization” codes must land on damage products so the carcass is fully used.
I built a greedy baseline that matched plant thinking, a two-stage genetic algorithm, and a PPO agent with dynamic masking. The important finding was that optimizing one primal at a time is infeasible - some realization codes span many primals, so the decision belongs at carcass level.
Sorting was a separate thread: cluster carcasses so high-value animals are cut together. A 2-component GMM, then tuning so clusters differ in value (price × yield × weight), then floor-friendly splits. Sorting by weight beat sorting by yield grade for separating value in our window.
Live model: hot scale right after slaughter is not cold scale after the cooler. I worked on Bayes and moving averages for that conversion, plus supervised regressors on the same prediction problem.
An Australian beef plant - cube roll and allocation strategies
About four weeks of production data: sides with grading traits, orders, batches, eligibility rules, downgrade paths with real dollar-per-kg gaps (a heavy downgrade can be ~43% on $/kg).
I ran a chain from yield modeling (NGBoost, cross-validated RMSE on the order of 0.22 percentage points on yield with usable intervals) through day simulation, sub-batching by weight and hump-height signals, and comparing greedy, priority, revenue-optimized, and corporate-priority policies.
What the numbers said (that window): revenue optimization without corporate priorities was highest (about $2.11M over four weeks). Priorities helped weak allocators a lot (greedy about +$252k, +14%) and slightly hurt the smart one (about −$24k, −1%). A priority rule is a patch for a weak allocator; a good optimizer often already sends meat to the right order.
Napkin math on batch sorting: matching sides to orders by weight beat random assignment by about $79k over four weeks (~11.5%), with weekly lift from ~7% to ~25%. Part of the money is not “cut better” but plan closer to what will sell - surplus production showed up in the story too.
A French pork processor - lines and shared cutting order
Kill count, opening stock, per-line demand, downgrade rules, clock constraints (“this piece must leave before 08:00”), and every line must follow the same category order in pieces, not boxes.
I used an operations graph, simulated annealing, min-cost flow, CVXPY, CMA-ES; a loin-specific heuristic beat generic search in a hybrid we kept. The plant replanned five times a day - the model had to be fast enough to run again at lunch.
A beef quartering plant - lines and the shared collector
Quarters across many lines with different speeds, category switches that cost minutes, forbidden switches, and downstream one collector capped at about 20 pieces per minute for the shift.
CPMpy in stages, an OR-Tools MIP, then a two-stage split when the full model got slow. SimPy discrete-event simulation showed what paper schedules hid: optimizing each line alone looks feasible and is wrong. The binding constraint was the shared output cap.
A European beef leg (Keule) - one MIP per sub-primal
Pick counts of cutting alternatives to maximize sales minus purchase cost; every primal used, every order filled, many reference scenarios.
OR-Tools SCIP with yields multiplied along a hierarchy. Engineering win: each sub-primal group is its own MIP instead of one monster model. One scenario stayed infeasible until filling constraints were rewritten - classic “change the constraint, not the objective into nonsense.”
Several Nordic and Spanish meat and poultry plants - data into one planner
Different languages, tables, and yield coverage (in one extract, yield rows covered a small fraction of orders; duration fields off by 100×). Workcenters, eligibility many-to-many, shift horizons, overlap rules.
NetworkX DAGs, set logic for “which workcenters does this week need?”, translation layers instead of hoping column names match, synthetic data when extracts were thin. Reformatting a poultry cut list into tables we already knew how to optimize is its own skill - new customer, old model if the shape is right.
A North American pork processor - BOM as a Petri net
Cold carcass in, demand products out, many legal paths, side products that consume the carcass whether or not anyone ordered them.
BOM as a DAG, then a Petri-net view: materials as places, operations as transitions, yields on arcs. Pre-cuts that need several primals were the recurring pain.
Representations I kept seeing
| Idea | What it is | When I reached for it |
|---|---|---|
| Assignment / transportation | Each half-carcass picks one product; orders are minimums | Small teaching models; brisket-style primals |
| Network flow | Cuts as a graph; flow is meat; cost is lost revenue | Pork line scheduling; brisket flow nets |
| BOM graph | Parent → child with yields on edges | Multi-plant pork and beef chains |
| Petri net | Places hold material; transitions fire cuts | Assignment-style RL; BOM visualization |
I also learned to rename problems in my head: a sketch on paper can feel like routing (TSP), but the math you actually have is often flow.
What I actually learned
Formulation is the skill. Read the planner sentence, write the constraint, notice wrong decomposition, notice when continuous posteriors must become discrete bins for a MIP.
Representation changes are where models silently lie: boxes to pieces, hot scale to cold scale, gross price to net of downgrade, European decimals and Latin-1 files, durations wrong by two orders of magnitude, yield tables that cover a fraction of orders. I now assume the extract is wrong until a check says otherwise.
Solver literacy: pick the tool and say why; read infeasibility and fix the right constraint.
Uncertainty is not a footnote - Bayes, NGBoost, KDE, Monte Carlo for “how much is sorting or forecasting worth?”
Domain: grades, yield classes, downgrade ladders, makesheets, shift clocks, chiller sort, FOB prices, corporate priority vs pure revenue.
Deliverable: the number is not the outcome. The decision is. Compare random, greedy, priority, and optimized in dollars on the plant’s own weeks, and write it so someone on the floor can use it.
I hope this gives a fair picture of what I did and what stuck. If something is missing or you think I mis-stated a lesson, please let me know.