Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
CalculatorComparison
Frameworks
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryFinancial LiteracyInvestment Banking Analyst
Private Equity AnalystHedge Funds AnalystBreaking Into VCBreaking Into QuantsAI For Finance
Financial Analyst ProgramRisk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Internships
Equity Research InternMutual Fund Intern
Portfolio Management InternFinancial Literacy Intern
Explore Micro Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
Courses
Explore Career Roadmaps
Investment Banking AnalystEquity Research AnalystVC AnalystPrivate Equity AnalystHedge Funds Analyst
Quant AnalystAI For FinanceFinancial Analyst ProgramPrivate Wealth ManagementDebt Capital Markets
Risk Management ProgramDerivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
Quant Analyst · CoreTrack
1Quantitative Methods, Financial Data & Programming
iProbability
Probability in FinanceRandom VariableProbability DistributionsThe Normal DistributionNormal Distribution ProbabilityThe Lognormal DistributionRandomness vs Uncertainty
iiStatistics and Inference
Population and SampleMean, Median and ModePrecision and AccuracyVariable TypesVariance, Standard Deviation and…Dispersion MeasuresStatistical BiasEffect SizeHypothesis TestingThe Sampling DistributionSkewnessKurtosisCovarianceConfidence IntervalArithmetic Mean vs Geometric MeanStatistical Significance vs Economic…Confidence Interval vs Prediction IntervalHow to Summarise a…
iiiCorrelation and Regression
RegressionCorrelation and CausationOrdinary Least SquaresInteraction TermsRegression CoefficientsRegression vs ClassificationHow to Build a…Spurious CorrelationRegression, Correlation and FitResidualsMulticollinearityAutocorrelation and Partial Autocorrelation
ivTime Series
Time Series in FinanceSimple, Weighted and Exponential…Moving Average CalculatorPrice, Return and Level SeriesHow to Prepare Time-Series…LagFrequencySeasonalityTimestampsTrendStationarity and the Unit RootHeteroskedasticityLeadRolling WindowsDifferencing
vSimulation and Numerical Methods
SimulationMonte Carlo SimulationHow to Run a…Numerical MethodsIterationResampling and the BootstrapPseudorandom Numbers and the SeedConvergence and ToleranceNumerical Stability
viOptimisation
OptimisationLocal and Global OptimaConstraintsConvex OptimisationThe SolverLinear ProgrammingThe Objective FunctionConstraint ViolationThe Feasible SetLagrange MultipliersQuadratic Programming
viiModelling Practice
Linear, Logistic, Ridge and…Training, Validation and Test…The ModelModel ErrorDependent and Independent VariablesThe ROC Curve and AUCWhat a Model HoldsMSE, RMSE, MAE and MAPEPrecision and RecallCross Validation and RegularisationOverfitting and UnderfittingReturn Series MeasuresSimple, Compound and Log Return
viiiBacktesting and Research Integrity
BacktestingBacktest vs Live PerformanceHow to Document a…How to Prevent Backtest…Out-of-Sample TestingWalk-Forward AnalysisMultiple TestingP-HackingData Snooping
ixData Quality and Structure
Data QualityThe DatasetSelection and Survivorship BiasVersioned DatasetsData Structures in FinanceData CleaningMissing Data and Null ValuesStructured Data vs Unstructured DataMissing Data vs ZeroData Validation vs Data CleaningOutliersDuplicate Records
xProgramming for Finance
Data PipelinesAPIs for Financial DataAPI vs CSV FileDatabases in FinancePython for FinanceJoinsSQL for FinanceThe Analysis Workflow
xiQuantitative Research
Research DesignThe Data Generating ProcessReproducibilityPeer Review in Analytical WorkThe Research HypothesisRobustness and Sensitivity
2Stochastic Calculus & Derivative Pricing Theory
iProbability Foundations
The Probability SpaceRandom VectorsSigma-AlgebraExpectationSample Space and EventsDensity and Distribution FunctionsRisk-Neutral ProbabilityState Price Density vs…
iiStochastic Processes and Jumps
Properties of a Stochastic ProcessMartingaleBrownian Motion and Its PropertiesBrownian Motion vs Geometric…Stopping TimeThe Markov PropertyState VariablesTransition ProbabilityQuadratic VariationQuadratic Variation vs Ordinary…Submartingale and SupermartingaleMartingale RepresentationMarkov Process vs MartingaleOptional StoppingFiltrationJump ProcessesThe Poisson ProcessLevy ProcessesJump Diffusion
iiiIto Calculus
The Ito IntegralThe Ito Integral vs the Riemann IntegralInfinitesimals in Stochastic CalculusQuadratic CovariationIto's LemmaHow to Apply Ito's…The Infinitesimal GeneratorIto Calculus vs Ordinary Calculus
ivStochastic Differential Equations
Stochastic Differential EquationsStochastic Differential Equation vs…Drift and DiffusionStrong and Weak Solutions ComparedDiscretisationGeometric Brownian Motion
vPricing Theory and No-Arbitrage
No-ArbitrageGirsanov, Radon-Nikodym and Change…Physical and Risk-Neutral Measures…The Fundamental Theorems of…The Law of One PriceThe Pricing KernelDiscount Factors and Zero-Coupon PricesReplication vs HedgingComplete Market vs Incomplete MarketClearing Margin Architecture
viOption Pricing Theory
European and American OptionsMonte Carlo European OptionThe Black-Scholes PDEBlack Scholes and the GreeksThe Payoff FunctionThe Binomial ModelBinomial Option PricingDelta Hedging in TheoryBoundary, Initial and Terminal ConditionsThe Exercise BoundaryHow to Check Put-Call…
viiVolatility Models
Constant, Local and Stochastic…Vasicek Model vs CIR ModelThe Heston ModelThe SABR ModelThe Volatility ProcessImplied VolatilityVolatility Smile vs Skew vs Surface
viiiInterest Rate Models
Interest-Rate DerivativesMean ReversionThe Zero-Coupon BondThe Ornstein-Uhlenbeck ProcessThe Discount CurveZero RatesShort-Rate Model vs Market Model
ixNumerical Pricing
Closed Form and Numerical…Monte Carlo PricingEuler and Milstein Schemes ComparedTree MethodsFinite Difference MethodsNumerical Error and StabilityVariance Reduction
xCalibration and Model Risk
Model OverrideMarket Price and Model PriceCalibrationHow to Document a Pricing ModelThe Educational Illustration LabelMarket ConventionsModel Uncertainty and LimitationsBacktesting a Pricing ModelIdentifiabilityCalibrated ParametersThe Calibration Loss Function

Constraint Violation: When the Solution Breaks a Rule

A constraint violation is a plan that sits outside the allowed set on at least one rule. The kind a solver hands back beats every allowed plan on the objective, and it beats them for one reason: it is spending something the workshop has not got. At the Amaltas workshop a plan two boards over reports Rs 5,400/- a day and delivers Rs 4,800/-.

Underneath that answer sits one uncomfortable fact about arithmetic. A rule removes plans from consideration, and every plan it removes is a plan that scored something. Push one rule slightly out of the way and candidates get added while none are taken away, so the score that can be reached goes up, never down. So a plan that breaks a limit is not an odd exception that happens to look good. A rule breaking plan looks good by construction, and the better it looks, the more of the limit it has quietly borrowed. The Amaltas workshop is an invented joinery shop that makes two things, the plain crate and the lined crate, and its best allowed plan is eight plain crates and six lined crates a day, worth Rs 5,100/- of contributionWhat one unit adds to the day once the spending that rises with it is taken off. Contribution is not profit. The spending that stays flat is still waiting to be paid.. Everything below is measured against that figure.

What is a constraint violation, and what is it not?

First, what it is. A violation is a measurement of distance: the plan on one side, the rule on the other, and the gap between them worked out. At the Amaltas workshop, a plan calling for twenty two boardsA flat length of sawn timber. A board is the raw material a crate side gets cut from, and the workshop counts boards one by one as they arrive at the door. against the twenty that arrive is over by two boards. The violation is two boards. A constraint violation is a number, not a verdict, and the number comes first.

Now what it is not. A violation is not the sentence "this plan is unacceptable", and it is not the sentence "it is only two boards, the workshop will manage". Both of those are decisions, and both of them arrive far too early. Consider what happens when somebody skips straight to one. Call the plan unacceptable and nobody bothers working out how far over it went. The answer no longer changes anything. The moment it is called fine, nobody works it out either, for exactly the same reason. Either judgement, arrived at first, destroys the measurement that should have come before it. So many teams cannot say how far over their last accepted plan actually was. The figure was never needed, so it was never taken.

Here is the everyday version. A lift carries eight people and nine get in. Somebody who says at once that nine is dangerous and somebody who says at once that nine is obviously fine have both stopped thinking about the same thing. The lift is over by one person, or 12.50 per cent over its stated load. Any sensible conversation runs on that one figure, and both of them threw it away before the doors closed.

Try it out

A planner reports that the day's plan is two boards over. Is that a number or a judgement?

Breaking Into Quants Bootcamp — Fin Maverick

How is the distance over a limit measured?

Two figures, and both are wanted every time. The first is the breach in the rule's own units: two boards. The second is the breach as a share of the limit: two divided by twenty, or 10.00 per cent. The two figures answer different questions, so neither replaces the other. A planner needs both answers. The units figure shows whether the breach can be fixed, and the share figure shows whether it is a real breach or a nudge from roundingCutting a number back to fewer figures. Rounding nudges the value slightly, so a very small difference between two numbers can be nothing more than the nudge..

The units figure comes first. Boards are objects that either exist in the yard or do not, so two boards is something a person can act on. Somebody can go and look. A breach reported only as a percentage does not travel that way: 10.00 per cent over says nothing about whether the shortfall is two boards, two hundred boards or two lorries, and nobody can walk into the yard and look for 10.00 per cent of anything.

Then the share. Its job is to catch the breaches that are not really breaches. A plan reading twenty point zero zero zero zero zero one boards is over by one millionth of a board. As a share of the limit the breach is 0.000005 per cent. Nobody is short of timber. One millionth of a board is a number that fell out of the arithmetic. The share figure makes the arithmetic obvious at a glance, where the units figure alone would still read as a breach. The same test on the Amaltas case returns 10.00 per cent. No arithmetic slip produces a gap that size. So the two figures together sort the artefacts from the real ones, and either one on its own leaves the question open.

Try it out

A plan uses 22 boards against a limit of 20. Which pair of figures actually describes the breach?

Portfolio Management Bootcamp — Fin Maverick

What does the Amaltas workshop's rule breaking plan look like?

The plan is six plain crates and eight lined crates. Score it against the three daily rules one at a time, and do not stop at the first one that fails. Which rules hold is as much of the story as which one breaks. Boards: one board goes into a plain crate and two into a lined one, so six plus sixteen is twenty two, against the twenty that arrive. Over by two. Bench hoursOne hour of one work bench with somebody standing at it. Three benches at eight hours apiece come to twenty four before anything is held back for setting up.: two hours go into a plain crate and one into a lined one, so twelve plus eight is twenty, against twenty two available. Inside, with two hours of slackThe part of a limit nobody used. Two rolls of cloth still sitting on the shelf at closing time is two rolls of slack.. ClothA single roll of lining fabric. Only the lined crate uses any, and it uses exactly one, so eight lined crates need eight rolls.: only the lined crate uses any, one roll each, so eight rolls against the eight that arrive. Exactly at the line.

Exactly one rule breaks and two hold, and that is the only reason the harm here can be traced to a single thing. A rule breaking plan of this kind is unusual rather than typical, and the reason is worth knowing. At the best allowed plan both the boards and the bench hours are used to the last unit, so almost any move that raises the day's contribution pushes on both at once. Sweep every plan made of whole cratesA crate is either built or it is not. Half a crate cannot be sold, so the counts here never carry a fraction. that beats Rs 5,100/- while going over by no more than two units in total and precisely two of them appear: seven plain with seven lined, over by one board and worth Rs 5,250/-, and six plain with eight lined, over by two boards and worth Rs 5,400/-. Widen the allowance to five units in total and ten plans qualify, six of which break two rules at once. A plan breaking two rules cannot show where the damage came from, so the case worked through here is the best of the clean pair.

Notice the cloth line especially. Eight rolls used against eight rolls delivered is not a breach. At the limit is inside the limit, and a rule that says at most eight is satisfied by exactly eight. A plan sitting flush against three limits at once feels like it must be cheating somewhere, and feeling is not measurement.

The plan sits outside the region on one rule, and by two boards. 0 2 4 6 8 10 12 0 2 4 6 8 plain crates a day lined crates a day every plan the three rules allow 8 plain, 6 lined the best allowed plan, Rs 5,100/- 6 plain, 8 lined the plan that breaks a rule two boards over the board rule, 20 boards what the plan needs, 22 WHAT THE PICTURE IS SHOWING The plan is not far outside the region and it is not outside on two rules at once. It clears the bench hours with two to spare and sits flush on the cloth. The board rule alone is the one it crosses.
The plan of six plain crates and eight lined crates sits outside the allowed region on the board rule alone, by a strip exactly two boards wide, while the rule on bench hours and the rule on cloth both still hold.
One plan, three rules: one crossed, one comfortable, one flush. the limit BOARDS over 22 wanted against 20 that arrive. Over by two boards, which is 10.00 per cent over. BENCH HOURS 20 used against 22 available. Two hours never touched, so this rule holds easily. CLOTH 8 rolls against 8 that arrive. Exactly on the line, and on the line is inside it. READ ALL THREE, NOT THE FIRST ONE THAT FAILS Which rules held is half the measurement. Two held here, so every rupee of damage further down this guide can be traced back to boards and to nothing else.
The plan uses 22 boards against 20, 20 bench hours against 22 and 8 rolls of cloth against 8, so exactly one of the three daily rules is crossed and the other two hold.
Try it out

The plan uses 8 rolls of cloth against a limit of 8 rolls. Is the cloth rule broken?

Why does the rule breaking plan look better?

Because it is worth more, on paper, than anything the workshop is allowed to do. Six plain crates at Rs 300/- is Rs 1,800/-, eight lined crates at Rs 450/- is Rs 3,600/-, and the plan reports Rs 5,400/- for the day against the Rs 5,100/- of the best allowed plan. The gap is Rs 300/-, or 5.88 per cent better. Anybody comparing the two lines in a report picks the bigger one, and they are not being careless. Rs 5,400/- really is the bigger number.

So where did the Rs 300/- come from? Trace it as a swap. A swap is exactly what it is. Start at eight plain and six lined and walk to six plain and eight lined: two plain crates are given up and two lined crates are taken on. Giving up two plain crates costs Rs 600/- of contribution. Taking on two lined crates brings in Rs 900/-. The difference is the Rs 300/-. Now look at the swap's effect on the day's materials. Two plain crates released two boards and four bench hours; two lined crates want four boards and two bench hours. Net, the swap hands back two bench hours the workshop had and asks for two boards the workshop has not got. The improvement is the value of the thing the plan is pretending to have.

The borrowing is the whole engine, and it works the same way everywhere. A household budget that balances only because next month's salary was counted twice balances beautifully. A delivery schedule that fits only because the van is assumed to be in two places at four in the afternoon fits. Nothing has been invented in the arithmetic; a resource has simply been counted that was never delivered, and every rupee of the improvement traces back to it. Where a plan looks better than the best allowed one and the borrowing is not yet visible, something was borrowed all the same. The search is not finished.

Where the extra Rs 300/- actually comes from: a swap, not a windfall. 5,100 5,400 4,500 Rs 5,100/- less Rs 600/- plus Rs 900/- Rs 5,400/- the best allowed plan, 8 plain and 6 lined two plain crates given up two lined crates taken on what the plan reports for the day AND WHAT THE SWAP QUIETLY ASKED FOR The two crates handed back two bench hours the workshop had, and asked for two boards it did not. Every rupee of the Rs 300/- gain rests on those two boards arriving, and they never arrive.
The plan looks Rs 300/- better because it gives up Rs 600/- of plain crates to take on Rs 900/- of lined crates, a swap that needs two boards the workshop has not got.
Try it out

The rule breaking plan is worth Rs 300/- more on paper than the best allowed plan. Where does the Rs 300/- come from?

AI For Finance Bootcamp — Fin Maverick

What does that plan actually deliver at the end of the day?

Now the day itself. The report never shows the day itself. Twenty boards arrive, not twenty two. A lined crate is worth Rs 450/- against a plain crate's Rs 300/-, so the lined crates get made first. No sensible workshop starts with the cheaper item. Eight lined crates take sixteen boards. Four boards are left. Four boards make four plain crates, not the six the plan asked for. The day closes at four plain crates and eight lined: Rs 1,200/- plus Rs 3,600/-, or Rs 4,800/-.

Now set the three figures beside each other. The plan reported Rs 5,400/-. The best allowed plan was worth Rs 5,100/-. The day delivered Rs 4,800/-. Promised 5.88 per cent better and delivered 5.88 per cent worse, a swing of Rs 600/- a day between the report and the day. And the workshop did not merely fail to gain the Rs 300/-. The workshop spent its cloth and its boards in the wrong order for a plan that could not be completed. The day ended Rs 300/- below where the allowed plan would have left it.

The matching 5.88 per cent on both sides is arithmetic and nothing more, and it is worth naming so that no pattern gets read into it. Both gaps happen to be Rs 300/-, and both are measured against the same Rs 5,100/-. Rs 5,100/- divided by seventeen is exactly Rs 300/-, so any Rs 300/- gap against that base comes out at one seventeenth, or 5.88 per cent. One fraction appears twice, and no law makes a loss mirror the gain that caused it. Under a different plan the two shares stop matching immediately.

Run the day with twenty boards and watch where it stops. TWENTY BOARDS ARRIVE sixteen boards go to the eight lined crates, made first four boards left THE PLAN ASKED FOR SIX PLAIN CRATES FOUR BOARDS MAKE FOUR these two are never started six planned, and the boards for two of them do not exist WHAT THE DAY IS WORTH WHEN IT CLOSES Four plain crates at Rs 300/- and eight lined at Rs 450/- come to Rs 4,800/-, against a plan that reported Rs 5,400/- and a best allowed plan worth Rs 5,100/-. The report was out by Rs 600/-.
The eight lined crates take sixteen of the twenty boards, four boards are left, and the day ends at four plain crates instead of the six the plan asked for.
The same Rs 300/- either side of the plan the workshop was allowed to run. Rs 5,400/- Rs 5,100/- Rs 4,800/- REPORTED what the plan claims BEST ALLOWED 8 plain and 6 lined DELIVERED what the day gives Rs 300/- above 5.88 per cent better Rs 300/- below 5.88 per cent worse THE TWO SHARES MATCH BY ARITHMETIC, NOT BY LAW Both gaps are Rs 300/- and both are measured against Rs 5,100/-. Rs 5,100/- divided by seventeen is exactly Rs 300/-, so one seventeenth is showing up twice. Change the plan and the match disappears.
The plan reports Rs 5,400/-, the best allowed plan is worth Rs 5,100/-, and the day delivers Rs 4,800/-, so the promise and the outcome sit the same Rs 300/- either side of it.
Try it out

The plan promised 5.88 per cent better and delivered 5.88 per cent worse. Does the matching figure mean anything?

What does one broken rule look like written out in full?

The whole case sits in one table below. The top half scores the plan against the three daily rules. The bottom half sets the three money figures against each other. The bottom half only makes sense once a single rule can be seen carrying all of it, so the top half comes first.

The daily ruleWhat the plan wantsWhat arrivesWhere that leaves it
Boards2220Over by 2 boards, which is 10.00 per cent over
Bench hours2022Inside, with 2 hours never used
Cloth rolls88Exactly at the line, which is inside it
The three figuresAmountAgainst the best allowed plan
What the plan reports for the dayRs 5,400/-Rs 300/- above it, which is 5.88 per cent better
The best allowed plan, 8 plain and 6 linedRs 5,100/-The line everything is measured against
What the day delivers, 4 plain and 8 linedRs 4,800/-Rs 300/- below it, which is 5.88 per cent worse
Swing between the report and the dayRs 600/-The whole cost of not checking

And the trace between the two halves, in one line: the eight lined crates take sixteen boards, four boards are left, and four plain crates get made instead of six. One broken rule, and the whole story comes off it.

Try it out

The plan is about to be allowed further over the board limit while the workshop still receives twenty boards. Do the reported figure and the delivered figure move together?

Play with it

Let the plan go further over, and watch the two figures separate.

One control. The control sets how many boards over the limit the plan is allowed to go, from none to four. Everything else is held still: twenty boards really do arrive whatever the setting, the bench hours stay at 22, the cloth stays at 8 rolls, and both contribution rates never move. The region redraws as the board boundary slides outward, the plan marker jumps to the new best plan, and the two bars show what that plan reports against what the day gives. The control opens at two boards over: the plan of six plain and eight lined, reporting Rs 5,400/- and delivering Rs 4,800/-, the two figures printed above.

no allowance2 boards overfour boards of allowance
Let the boundary slide and the two readings pull apart. 0 4 8 12 0 4 8 plain crates a day lined crates 20 boards 6 plain, 8 lined Rs 5,100/- best allowed Rs 5,400/- Rs 4,800/- REPORTED DELIVERED what the plan claims what the day gives
The plan
6 and 8
Boards it wants
22 of 20
Over by
10.00 per cent
Reported
Rs 5,400/-
Delivered
Rs 4,800/-
Swing
Rs 600/-

Allow the plan two boards over and the best plan under that allowance is 6 plain crates and 8 lined, wanting 22 boards against the 20 that arrive. It reports Rs 5,400/- for the day. Run it against the real twenty boards and the day delivers Rs 4,800/-, which is Rs 300/- below the best allowed plan, so the report is out by Rs 600/-.

Educational illustration. Only the allowance moves: the workshop still receives twenty boards at every setting, the bench hours stay at 22 and the cloth stays at 8 rolls. Lined crates are made first because a lined crate is worth more, and every count is a whole crate. At no allowance at all there is no breach and the two readings sit on top of each other. At four boards of allowance the plan still wants only 23. The cloth rule takes over before a fourth extra board can be used.

Try it out

A solver returns a plan using 20.000001 boards against a limit of 20 boards. Has the solver malfunctioned?

Why does a solver hand back a plan that breaks a rule?

Two ordinary reasons, and it is worth being clear that neither of them is the software going wrong. The first is tolerance. A solver works in decimals and its arithmetic carries tiny errors, so it is built to accept a plan that misses a rule by a hair rather than throw away a perfectly good answer over the last decimal place. A plan reading twenty point zero zero zero zero zero one boards is over by one millionth of a board, or 0.000005 per cent of the limit. No solver worth using rejects a miss that small. The answer comes back marked as allowed, and strictly speaking it is not.

The second is a rule that was typed wrong. Somebody enters at most twenty two boards where the yard delivers twenty, or enters the limit in the wrong units, or writes the rule the wrong way round. From the solver's side there is no violation at all: the plan fits the rule it was given, perfectly, and the software has nothing to complain about. The breach exists only between the typed rule and the world, a place no solver can see. Neither reason is a fault in the software, and both put the same artefact on the planner's desk: a confident answer whose plan the workshop cannot run.

The practical consequence is worth holding on to. Because neither cause produces an error message, the check cannot live inside the solver. The check has to live with whoever reads the answer. Somebody has to score the returned plan against the limits as they actually are, by hand, at least once. Scoring three rules by hand is a two minute job, and it is the only thing standing between the report and the day.

Two ordinary reasons, and neither one is the software going wrong. ONE: A TOLERANCE 20.000001 boards comes back marked allowed 20 boards the rule The shaded strip is the tolerance, drawn far wider than life. The real miss is 0.000005 per cent. TWO: A RULE TYPED WRONG boards used at most 22 typed by a person, once, months ago The yard delivers twenty. The solver was told twenty two, so the plan it returns fits its rule perfectly and it reports nothing at all. The breach sits between the typed rule and the yard, where nothing looks. WHY THE CHECK CANNOT LIVE INSIDE THE SOLVER Neither case produces an error message, so nothing gives warning. Somebody has to score the returned plan against the limits as they actually are, by hand, at least once.
A solver accepts a plan that misses a rule by a whisker, so 20.000001 boards comes back marked allowed, and a limit typed as 22 produces no complaint at all because the plan fits the rule it was given.

Does it matter which kind of rule was broken?

The kind of rule broken decides what may be done next, and nothing else matters more. A list of constraints almost never says which kind each rule is. Three kinds turn up, and they look identical written down.

The first is a physical fact. Twenty boards arrive and there is no twenty first. A plan needing twenty two does not get argued with; it simply stops partway through the afternoon, exactly as it did above. The second is a promise. The workshop agreed to hand a customer four crates by Friday, and the boundary lineThe line a rule draws across the plan. Plans on one side of it are allowed and plans on the other side are not, so the line is where a rule becomes a picture. that draws is every bit as real, but breaking it costs a relationship and possibly a penalty rather than stopping the saw. The third is a preference somebody wrote down as a rule: never more than eight lined crates a day. The person who set it up disliked how the cloth cutter behaved on long runs. The preference sits in the list looking exactly like the other two.

Only the third kind is worth arguing with, and a constraint list almost never says which kind each rule is. That is the whole practical content of this block. When a violation lands on the planner's desk, the first question is not how big it is but which kind of limit it crossed, and answering it usually means asking the person who wrote the rule rather than reading the model. A breach of the first kind means change the plan. A breach of the second means someone has to make a call about a relationship, and it belongs to them, not to the solver. A breach of the third means the rule itself is a candidate for revision, and revising it is a legitimate answer rather than cheating.

Three kinds of rule, identical on paper, and only one of them is negotiable. A rule just broke. Which kind is it? A PHYSICAL FACT twenty boards arrive A PROMISE four crates by Friday A PREFERENCE somebody wrote it down Breaking it does not cost money. It stops the day partway through. Change the plan. Breaking it costs a relationship, and maybe a penalty. A person decides. Nothing outside the list is holding it up. It can be revisited. Negotiable. THE PART THAT MAKES THIS HARD Written into a model, all three look the same: a number, a direction and a limit. Nothing in the list records which kind it is, so working that out usually means asking the person who wrote the rule rather than reading the model.
A broken physical fact stops the day, a broken promise costs a relationship, and only a preference written as a rule is negotiable, yet all three look identical inside the model.
Try it out

Which of the three kinds of rule is actually worth arguing about?

Risk Management Program Bootcamp — Fin Maverick Bond Pricing and Yield Mechanics — free micro-course from Fin Maverick

What is to be done when somebody hands one over?

How this gets used at a desk, in the four minutes actually available

A lender reading a borrower's production plan, an analyst checking a model somebody else built, an operations manager handed an optimised roster, and a household deciding whether next month's budget really balances are all doing the same four things with a violation, in the same order.

One. Measure it twice: in the rule's own units and as a share of the limit. Two boards, and 10.00 per cent. Write both down. The conversation that follows runs on them.

Two. Ask which of the three kinds of rule broke, and ask the person who wrote it rather than the model. Everybody skips this step, and it is the one that decides the answer.

Three. Recompute the objective with the rule enforced, and compare that figure against the alternatives rather than the reported one. Rs 4,800/-, not Rs 5,400/-. If the plan is still the best thing available once it has been scored honestly, it wins on its merits. The Amaltas plan does not: Rs 4,800/- loses to the Rs 5,100/- that was available all along.

Four. If the answer is genuinely that the rule should move, move the rule and solve the problem again. Ordering three more boards is a real option with a real cost, and it deserves to be considered as an order rather than smuggled in as a rounding.

A violation accepted quietly is a rule changed without anybody deciding to change it. That is the sentence worth carrying away. Accepting the Rs 5,400/- plan without ordering more boards is a decision to run on twenty two boards, made by nobody, recorded nowhere, and discovered at four in the afternoon.

Read the report the way the four steps say to read it. SOLVER REPORT status optimal plain crates 6 lined crates 8 objective Rs 5,400/- Rs 4,800/- recomputed with the board rule enforced no warning printed anywhere 1 Which rule broke, and by how much? Boards, by two, which is 10.00 per cent. 2 Which kind of rule is it? A physical fact. Twenty arrive. 3 What is it worth with the rule enforced? Rs 4,800/-, which loses to Rs 5,100/-. 4 Should the rule itself move? Then order the boards and solve again. THE ONE LINE THAT CHANGES ON THE REPORT The plan stays as printed. Six plain and eight lined is what the solver found and it found it correctly for the problem it was handed. What changes is the figure beside it, from Rs 5,400/- to Rs 4,800/-, and once that figure is honest the plan loses to the Rs 5,100/- that was on the table the whole time. Compare the recomputed figure, never the one the report leads with.
Recompute the objective with the rule enforced and compare Rs 4,800/- against the alternatives, rather than the Rs 5,400/- the report leads with.
Try it out

The two boards over plan is accepted and nothing else about the day changes. What has actually been done?

The error that turns Rs 5,100/- into Rs 4,800/-

A planner at the Amaltas workshop looks at the Rs 5,400/- plan and accepts it on the reasoning that two boards over is small and two boards can surely be found. They cannot. Twenty arrive, there is no twenty first on the day, and nothing about accepting the plan makes another one appear. The lined crates go first, the boards give out in the afternoon, and the day closes at Rs 4,800/-. The report said 5.88 per cent better and the day came in 5.88 per cent worse. Nothing between those two numbers was ever written down, so the planner cannot say why.

The cost is not the Rs 300/- of imaginary gain that never arrived. The cost is the Rs 300/- of real gain that was available and was not taken. The workshop could have run eight plain and six lined for Rs 5,100/-, and instead ran a plan worth Rs 4,800/-. Once the Rs 4,300/- a day of costs that do not moveSpending that stays the same whatever the day's plan turns out to be, such as rent and wages already committed. is paid, that is Rs 500/- left instead of Rs 800/-, so 37.50 per cent of everything the day had left to give has gone.

And there is a second cost with no rupee figure on it. A planner who accepts two boards over this month accepts four next month. The precedent is now that the limit is soft. Make it a rule of the desk instead: recompute the objective with the rule enforced before accepting anything that breaks one, and compare that figure rather than the reported one. Enforcing three rules by hand takes two minutes.

Where this guide stops. What a rule is, how it is written as arithmetic, and what it means for a rule to be binding or to have slack are all settled elsewhere and used here without being taken apart again. Solvers, and how one can present a wrong answer with complete confidence, form a subject in its own right and are covered separately; only the two reasons a violation reaches a planner's desk are used here. The value of one more board in money, and the range over which that value holds, is covered separately as well, and that is why the Rs 300/- above is traced through a swap of crates rather than priced per board. The shape of the allowed region itself, and how it can turn out to hold nothing at all or to stretch away with no ceiling, is covered separately. Deciding how much of each thing to hold in a set of holdings, weighing risk against return, is a different subject entirely and is covered separately under portfolio construction and investment management.

A plan breaking one limit reports a better number. See what the violation costs.

What sits behind each figure printed here?

Figure used hereWhere it was settledOutside document
The three daily rules: 20 boards, 22 bench hours, 8 rolls of clothChosen by hand when the workshop was first described, and unchanged sinceNone
The best allowed plan, 8 plain and 6 lined, Rs 5,100/- a daySettled by crossing the boundary lines two at a time and testing every crossingNone
The rule breaking plan, 6 plain and 8 lined, reporting Rs 5,400/-Worked out here from the two contribution ratesNone
What the day delivers, Rs 4,800/-Worked out here by running the plan against the twenty boards that arriveNone

The Amaltas workshop, the plain crate and the lined crate are invented.
Educational material. Not advice on any investment, tax, budget or market position.

← PreviousNext →
Fin Maverick Micro CoursesExplore Micro Courses
Fin Maverick BootcampsExplore Bootcamps
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsCareersShowdown
RESOURCES
All CoursesMicro CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.