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

Linear Programming: Optimising Under Linear Constraints

Linear programming is optimisation where every rule is a straight line and doubling the plan doubles both what it uses and what it brings in. The straight line shape pays off once: on a closed region like this one, a best answer can always be found at a corner, so infinitely many allowed plans collapse into a short list that can be checked by hand. The Amaltas workshop's list runs to five entries.

Three things settled elsewhere are taken as given. The Amaltas workshop is an invented workshop that makes two things and nothing else, the plain crate and the lined crate, and its three daily limits are already written down. ContributionWhat one crate leaves behind after the materials that grow with it are paid for, counted before any of the day's standing costs. is already defined as the money one crate leaves behind. And which rules a best plan is pressed against, rather than merely obeying, is already settled. Enumeration does the rest: every corner is found by hand, every rejected crossing is named with the rule it breaks, and the winner is picked by comparing all of them rather than by pointing at a picture.

What makes a problem linear?

Linear is not a description of how simple the rules look; it is a test run on the arithmetic. Take any plan, double it, and ask three questions. Does it use twice the material? Does it take twice the time? Does it bring in twice the money? If the answer is yes to all three, and yes again for tripling and for halving, the problem is linear. If any answer is no, it is not, however tidy the rules read on paper.

Run the test on the Amaltas workshop. Take a modest day: three plain crates and two lined crates. The day uses three boards for the plain crates and four for the lined, seven boards in all. The day takes six bench hoursOne hour on one work bench. Three benches at eight hours apiece would come to twenty four, but two go every day on getting set up, leaving twenty two. for the plain crates and two for the lined, eight hours in all. The day brings in Rs 900/- from the plain crates and Rs 900/- from the lined, Rs 1,800/- in all. Doubling the day to six plain and four lined gives fourteen boards, sixteen bench hours, Rs 3,600/-. Every one of the three has exactly doubled, and none of them doubled because anybody arranged it. Each of the three doubled because a board per plain crate is a board per plain crate whether one crate is made or a hundred.

Proportional scaling is familiar from ordinary life. A tea stall that uses one measure of leaves and one of milk per cup uses ten measures of each for ten cups and a hundred for a hundred. Nothing about the tenth cup is cheaper than the first. Two things break that, and both are ordinary enough to catch a careful person out. The first is a rate that changes with size: a price breakA lower rate a supplier gives once an order goes above some quantity. Below that quantity the higher rate applies to every unit. from a supplier, a bulk sack of rice that costs less per kilo than a small one, a caterer whose per plate charge falls once a wedding passes two hundred guests. Doubling the order does not double the bill. The second is a rule where two decisions multiply each other rather than adding: a drying rack whose capacity depends on the plain count times the lined count, say. Neither is present at the Amaltas workshop, and that absence is the whole reason a corner can be promised here.

One honest caveat matters later. The doubling test applies to what a plan uses and what it brings in, not to what is left at the end of the day. The Amaltas workshop pays Rs 4,300/- a day in costs that do not moveThe money the day costs whatever gets made: the rent, the wages and the standing board order, none of which changes with the plan., and Rs 4,300/- stays Rs 4,300/- when the plan doubles. Fixed costs are exactly why the quantity being made as large as possible is contribution rather than what survives to the end of the day. Which quantity belongs in that role is covered separately.

THE DOUBLING TEST, run on one day at the Amaltas workshop Upper bar: 3 plain crates and 2 lined crates. Lower bar: the same day doubled, 6 plain and 4 lined. BOARDS 7 boards 14 boards BENCH HOURS 8 hours 16 hours CONTRIBUTION Rs 1,800/- Rs 3,600/- Three measures, three exact doublings, and nothing was arranged to make it come out that way. The Rs 4,300/- a day that does not move with the plan is not in this picture, because it does not double.
Double the day and three separate measures double with it, which is the whole content of the word linear: a statement about how the arithmetic scales, not about how tidy the rules are to read.
Try it out

The board supplier offers a lower rate on every board once the Amaltas workshop orders thirty or more a day. Is the problem still linear?

Breaking Into Quants Bootcamp — Fin Maverick

What does the whole problem look like written out?

Written out in full, the Amaltas workshop's problem comes to one goal and four limits, and that is the entire document. The goal: push Rs 300/- for each plain crate plus Rs 450/- for each lined crate as high as it will go. The first limit: one board per plain crate and two per lined, never past twenty in a day. The second: two hours per plain crate and one per lined, never past twenty two. The third: one roll of clothA roll of lining cloth. A lined crate takes exactly one and a plain crate takes none at all. per lined crate and none for a plain one, never past eight. The fourth: neither count may go below zero.

The goal and the four limits are the entire problem. There is nothing else. A reader who has only ever met optimisation as something a computer does may find the smallness of it surprising, and the smallness is the point: everything a solver will ever know about the Amaltas workshop is in those four lines, and anything left out of them is invisible to the answer.

Every number in those lines was written down by a person, and each one came from a source that can be checked. The twenty boards is a standing orderA fixed quantity a supplier sends every day without being asked again each morning. with a supplier. The twenty two bench hours is what three benches leave once setting up is paid for: eight hours apiece makes twenty four, and two hours of every day go on getting ready. The eight rolls is what the cloth supplier sends. The Rs 300/- and the Rs 450/- are what each kind of crate leaves behind. None of these is a fact about the world; all of them are choices, and each one is a place where the answer can be quietly wrong because the input was quietly wrong. Reading the four lines and asking who wrote each number is the single most useful thing to do with somebody else's linear programme before looking at its answer.

THE WHOLE PROBLEM, AND WHO WROTE EACH NUMBER x is plain crates a day, y is lined crates a day. THE RULE THE ARITHMETIC WHERE THE NUMBER CAME FROM MAKE LARGEST 300 times x plus 450 times y the day's contribution, in rupees what one crate of each kind leaves behind, worked out beforehand AT MOST 20 x plus 2 times y boards used a day the standing daily order placed with the board supplier AT MOST 22 2 times x plus y bench hours used a day three benches at eight hours, less two hours held back for setting up AT MOST 8 y on its own rolls of cloth used a day what the cloth supplier sends, and a plain crate uses none AT LEAST 0 x and y separately neither count below zero nobody wrote this one down; it has to be typed in anyway Four lines of rules and one line of objective. Everything a solver knows about this workshop is above.
One goal and four limits hold the whole of what a solver will ever know here, and each figure inside them was decided by somebody rather than discovered, which is where a wrong answer usually begins.
Try it out

Somebody at the Amaltas workshop mentions that lined crates take longer to dry and only six can dry overnight. It is true, and it is not in the four lines. What does the answer do about it?

AI For Finance Bootcamp — Fin Maverick

Why can the best answer always be found at a corner?

Here is the result that makes linear programming worth its own name, and it can be understood without a line of algebra. Because the objective is a straight line relationship, its value slides steadily in one direction across the region of allowed plans, and it never turns back on itself. Walk in any straight line across the region and the contribution changes at a constant rate along the way. Contribution cannot rise, level off and rise again. The climb cannot have a bump in the middle.

Now picture the objective as a whole set of parallel lines laid across the region, each line joining every plan worth the same amount. One line joins everything worth Rs 1,500/-, another everything worth Rs 3,000/-, another Rs 4,500/-. The lines are parallel. Their tilt depends only on the two contribution figures, and those two figures are not changing. Push the set of lines steadily in the improving direction. Each one crosses less of the region than the last. Eventually one of them is the last to touch the region at all, and everything beyond it is out of bounds. The last line of contact is the answer, and unless it happens to lie flat along an edge, it touches at exactly one point: a corner.

The practical payoff is enormous and easy to underrate. The region holds infinitely many allowed plans once fractions of a crate are permitted, and eighty four once every count must be a whole crateA crate is either finished or it is not, so a plan calling for half a crate cannot be delivered at the end of the day.. Either way that is far too many to check one by one. The corner result says none of that is necessary. Testing the corners, all of them, settles it. At the Amaltas workshop that means testing five plans instead of eighty four, and being certain rather than hopeful at the end of it.

Two honest qualifications belong here. The first is that this argument assumes the region is closed and has corners at all. Closed with corners holds at the Amaltas workshop and does not hold everywhere; regions that hold nothing, or that run away without limit, are covered separately. The second is that the best corner at the Amaltas workshop happens to call for eight whole plain crates and six whole lined crates. Whole crates are convenient and are not something the method arranges. A corner can easily land on three and a half crates, and then whole crates become a separate problem.

SLIDE THE OBJECTIVE UNTIL THE LAST LINE TOUCHES worth Rs 1,500/- worth Rs 3,000/- worth Rs 4,500/- the last line that touches at all, Rs 5,100/- it touches at one point only 8 plain crates, 6 lined crates every plan in here is allowed plain crates a day, 0 at the left through to 12 at the right lined crates a day, 0 to 11
Push the objective as far as it will go and the final line of contact rests on one point of the region, which is the whole reason a short list of corners is enough on a shape like this one.
Try it out

The best plan is never found somewhere in the middle of the region, away from every edge. What rules the middle out?

How are the corners actually found?

Finding the corners is the step most explanations skip, and skipping it is what leaves a reader able to nod at the corner result but unable to use it. A corner is not something spotted on a drawing; it is something computed, and a drawing is how the computation is checked afterwards.

Five straight lines bound the region of allowed plans at the Amaltas workshop. The board line, where boards used come to exactly twenty. The bench hours line, where hours used come to exactly twenty two. The cloth line, where lined crates come to exactly eight. And the two zero lines, one where plain crates are zero and one where lined crates are zero. A corner is nothing more than a place where two of those five lines meet, so the procedure writes itself. Pick two lines. Work out the single point they share. Then put that point back through the whole list of rules and see whether it survives.

Five lines make ten pairs, and the ten can be counted off directly: the board line against each of the other four, the bench hours line against each of the remaining three, the cloth line against the remaining two, and the last two against each other. Four plus three plus two plus one is ten. Each pair is two equations in two unknowns, a minute's work on paper. Two lines can meet somewhere the workshop is not permitted to go, so finding the meeting point is only half the job. The second half is three additions per point, one each for the boards, the hours and the cloth. Ten pairs worked, ten points tested, and there is nothing left over to guess at.

One pair, worked all the way through

Descriptions of a method are easy to nod along to, so here is one pair done longhand, with nothing skipped. Take the board line and the bench hours line. The board line collects every plan whose board count lands on exactly twenty, one board going to each plain crate and two to each lined one. The bench hours line does the same thing at exactly twenty two hours, two hours to a plain crate and one to a lined one. Two equations, two unknowns, and school arithmetic from here.

StepWhat is doneWhat comes out
1Write the two lines down as equationsplain plus twice lined is 20, and twice plain plus lined is 22
2Double the first so the plain crates match in bothtwice plain plus four times lined is 40
3Subtract the second from that, which cancels the plain cratesthree times lined is 18, so lined crates are 6
4Put six lined crates back into the board lineplain plus 12 is 20, so plain crates are 8
5Test eight plain and six lined against all three limits20 boards of 20, 22 hours of 22, 6 rolls of 8. It survives.

Eight plain and six lined is a corner, found without a drawing anywhere near it. The same five steps run on a pair that does not survive show the difference, and that difference is the whole lesson of this section. Take the bench hours line and the cloth line. The cloth line gives the lined crates straight away at eight. Put into the bench hours line, twice the plain crates plus eight comes to twenty two, so the plain crates are seven. Steps one to four were every bit as sound as before, and seven plain with eight lined is a real point sitting at a real crossing of two real lines.

Step five kills it. Seven plain crates take seven boards and eight lined crates take sixteen. The total is twenty three boards against the twenty that arrive. The only thing separating a corner from a discarded crossing is that last step, and it is the step that costs three additions to run and the whole answer to skip. A reader who does the ten pairs on paper will feel this: the solving is pleasant and rhythmic, the testing is dull, and the testing is what does the work.

ALL TEN PAIRS, SOLVED AND THEN TESTED bench hours cloth plain at 0 lined at 0 boards bench hours cloth plain at 0 8 plain, 6 lined CORNER 4 plain, 8 lined CORNER 0 plain, 10 lined OUTSIDE 20 plain, 0 lined OUTSIDE 7 plain, 8 lined OUTSIDE 0 plain, 22 lined OUTSIDE 11 plain, 0 lined CORNER 0 plain, 8 lined CORNER never meet PARALLEL 0 plain, 0 lined CORNER Ten pairs. Five crossings pass every rule and become corners of the region. Four crossings are perfectly real points that break at least one rule, so they are outside. One pair, the cloth line against the line of no lined crates, is parallel and produces nothing. Every cell is two equations solved and three additions checked.
Every one of the ten pairs is worked out to the point where the two lines meet, and that point then has to survive all three daily limits before it earns the word corner.
Try it out

Five boundary lines. How many pairs do they make, and what has to be done with each pair?

Which candidate crossings fail, and why does each one fail?

Each failure has a different shape, so the five pairs that give no corner are more instructive than the five that do. Four pairs cross at a perfectly real point that breaks a named rule, and one pair does not cross at all.

Take them in order. The board line meets the line of no plain crates at zero plain and ten lined. Two lines, one crossing, nothing wrong with the arithmetic. The crossing fails on cloth: ten lined crates need ten rolls and eight arrive. The board line meets the line of no lined crates at twenty plain and zero lined. Twenty plain crates fail on bench hours, and not narrowly: forty hours are needed against twenty two available. Where the bench hours line runs into the cloth line the crossing is seven plain and eight lined, and it fails on boards at twenty three against twenty. And the bench hours line reaches the line of no plain crates at twenty two lined crates. Twenty two lined crates fail on boards at forty four against twenty and on cloth at twenty two against eight, breaking two rules at once.

The last pair is different in kind. The cloth line says lined crates equal eight. The zero line says lined crates equal zero. Both are horizontal lines at different heights, so they are parallel and there is no crossing to test. A pair of parallel rules produces no candidate at all. Parallel rules are the one case where the arithmetic gives nothing rather than something to reject. Anyone working the ten pairs by hand and expecting ten answers would suspect a mistake at exactly this point.

THE FIVE PAIRS THAT GIVE NO CORNER boards no plain crosses at 0 plain, 10 lined it breaks the cloth rule: 10 rolls against the 8 that arrive that day NOT A CORNER no lined boards crosses at 20 plain, 0 lined it breaks the bench hours rule: 40 hours against the 22 available NOT A CORNER cloth bench hours crosses at 7 plain, 8 lined it breaks the board rule: 23 boards against the 20 that arrive NOT A CORNER bench hours no plain crosses at 0 plain, 22 lined it breaks two rules at once: 44 boards against 20, and 22 rolls of cloth against 8 NOT A CORNER cloth, lined at 8 lined at 0 the two lines are parallel there is no crossing at all, so nothing to test NO CANDIDATE Four crossings are real points that break a rule. One pair produces no point to reject, which is the one case where the arithmetic gives nothing rather than something wrong.
Four crossings fail on a named rule, at ten rolls against eight, forty hours against twenty two, twenty three boards against twenty, and two rules broken at once, while one pair is parallel and never crosses.
Try it out

The bench hours line meets the cloth line at seven plain crates and eight lined. Why is that not a corner of the region?

How is the winner chosen from the five that survive?

By putting all five side by side, and by nothing else at all. Five multiplications and a single comparison take about a minute, so no shortcut remains at this stage and none is wanted. Attach Rs 300/- to each plain crate and Rs 450/- to each lined one, work out what every survivor comes to, and lay the results out in a row.

The cornerBoards usedBench hours usedCloth usedContribution
No crates at all0 of 200 of 220 of 8Rs 0/-
11 plain, 0 lined11 of 2022 of 220 of 8Rs 3,300/-
8 plain, 6 lined20 of 2022 of 226 of 8Rs 5,100/-
4 plain, 8 lined20 of 2016 of 228 of 8Rs 4,800/-
0 plain, 8 lined16 of 208 of 228 of 8Rs 3,600/-

Eight plain crates and six lined crates, worth Rs 5,100/- a day, is the best allowed plan at the Amaltas workshop. Nothing is level with it, and the row of five figures above is the entire proof; no part of it rests on somebody drawing a shape and pointing at a promising looking spot. The winner's own row: eight plain crates take eight boards and six lined take twelve, twenty in all against twenty. Eight plain take sixteen bench hours and six lined take six, twenty two against twenty two. Six lined crates take six rolls of the eight that arrive.

The runner up is four plain and eight lined at Rs 4,800/-, so the winning margin is Rs 300/- a day. The margin happens to be the same number as a plain crate's contribution, and the two have nothing to do with each other: the gap is four extra plain crates less two lined ones, Rs 1,200/- against Rs 900/-, and it coming out at Rs 300/- is arithmetic rather than meaning. Watch for that kind of coincidence in any set of figures. Two numbers matching is not a relationship.

A comparison run over five corners leans on the very corner result it is supposed to support, so the winner was checked a second time by main force. Every plan on a fine mesh laid over the whole region, stepping an eighth of a crate at a time, was priced: four thousand five hundred and twenty nine of them, and not one came to more than Rs 5,100/-. The elegant argument and the stubborn one land in the same place. Agreement between two methods that share no reasoning is the only kind worth anything.

THE FIVE SURVIVORS, PRICED AND COMPARED THE CORNER BOARDS BENCH HOURS CLOTH CONTRIBUTION no crates at all 0 of 20 0 of 22 0 of 8 Rs 0/- 11 plain, 0 lined 11 of 20 22 of 22 0 of 8 Rs 3,300/- 8 plain, 6 lined 20 of 20 22 of 22 6 of 8 Rs 5,100/- 4 plain, 8 lined 20 of 20 16 of 22 8 of 8 Rs 4,800/- 0 plain, 8 lined 16 of 20 8 of 22 8 of 8 Rs 3,600/- The winner against the runner up, both drawn from zero on one scale 8 plain, 6 lined Rs 5,100/- 4 plain, 8 lined Rs 4,800/- Rs 300/- Nothing is level with the winner. The bar below it is the closest anything comes.
Run the prices out and the survivors read Rs 0/-, Rs 3,300/-, Rs 5,100/-, Rs 4,800/- then Rs 3,600/- a day. Eight plain with six lined takes the top by Rs 300/- and shares it with nothing.
Try it out

Somebody says eight plain and six lined is obviously the answer because it uses up everything it can. Is that a proof?

Try it out

Before the panel below: suppose lined crates start earning more than the Rs 450/- they earn today. Predict what the best plan does as that figure climbs.

Bond Pricing and Yield Mechanics — free micro-course from Fin Maverick

What happens to the answer when the objective is tilted?

Leave the plain crate where it is, at Rs 300/-, and turn the figure attached to a lined crate up and down instead. Nothing about the three daily limits changes, so the region keeps its shape and its five corners stay exactly where they were. All that changes is the tilt of the objective line sliding across them. The striking thing, and the least intuitive consequence of linearity, is that the answer does not drift as the dial turns: it sits completely still and then jumps from one corner to another in a single step.

There are two such jumps. Below Rs 150/- a lined crate, lined crates are simply not worth the two boards they eat, so the best plan is eleven plain crates and no lined ones at Rs 3,300/-. Between Rs 150/- and Rs 600/- the best plan is eight plain and six lined, and it stays there for that whole stretch without moving a single crate. Above Rs 600/- the best plan is four plain and eight lined. The Amaltas workshop's own Rs 450/- sits comfortably inside the middle stretch. The answer at Rs 400/- and at Rs 500/- is exactly the same plan as at Rs 450/-.

At the two switch points themselves, two corners are worth exactly the same and there is no single answer at all. At exactly Rs 150/-, eleven plain and no lined comes to Rs 3,300/- and eight plain and six lined comes to Rs 2,400/- plus six times Rs 150/-. Both come to Rs 3,300/-. At exactly Rs 600/-, eight plain and six lined comes to Rs 6,000/- and four plain and eight lined comes to Rs 1,200/- plus eight times Rs 600/-. Both come to Rs 6,000/-. When two corners tie, every plan along the whole edge between them is worth the same as well, so the honest report at those two settings is that an entire edge wins. A solver will print one plan and say nothing about the other. The silence is the solver's, not the mathematics'.

THE ANSWER DOES NOT DRIFT. IT JUMPS. The plain crate is held at Rs 300/- throughout. Only the lined crate's contribution moves. 11 plain, 0 lined 8 plain, 6 lined 4 plain, 8 lined Rs 100/- Rs 200/- Rs 300/- Rs 400/- Rs 500/- Rs 600/- Rs 700/- what one lined crate leaves behind at Rs 150/- two corners tie at Rs 3,300/- at Rs 600/- two corners tie at Rs 6,000/- the Amaltas workshop's own Rs 450/-, well inside the middle stretch
As the lined crate's contribution rises the winning plan holds completely still and then jumps, from eleven plain and none lined to eight and six at Rs 150/-, and to four and eight at Rs 600/-.
Play with it

Turn the lined crate's contribution and watch the answer refuse to drift.

The three daily limits are held fixed, so the region and its five corners never move. The plain crate is held at Rs 300/-. Only the lined crate's contribution changes, and with it the tilt of the objective line. The panel starts at Rs 450/-, the Amaltas workshop's own setting, where the answer is eight plain crates and six lined at Rs 5,100/- a day.

Rs 100/- a lined crateRs 450/-Rs 700/-
The best plan now
8 plain, 6 lined
Worth a day
Rs 5,100/-
Educational illustration. The twenty boards, twenty two bench hours and eight rolls of cloth are held fixed throughout, as is the plain crate at Rs 300/-; only the lined crate's contribution moves. Contribution is counted before the Rs 4,300/- a day that does not move with the plan.
Try it out

Set a lined crate to exactly Rs 600/-. Now eight plain with six lined and four plain with eight lined both come to Rs 6,000/-. So what should be reported as the answer?

The corner result, correctly learned and then wrongly used

Somebody planning the day at the Amaltas workshop has been told, quite truthfully, that a linear programme's answer sits at a corner. The step they take next is their own, and it looks entirely reasonable. Boards are what runs out first, so rank the two crates by what each one earns per board. A plain crate takes one board and leaves Rs 300/-, so it earns Rs 300/- a board. A lined crate takes two boards and leaves Rs 450/-, so it earns Rs 225/- a board. The plain crate wins on that measure, so pour every board into plain crates. Bench hours stop the day at eleven plain crates, and eleven plain crates with nothing lined is a corner of the region. The planner has followed the rule they were given and arrived at a legitimate corner.

The plan is worth Rs 3,300/- a day, Rs 1,800/- a day below the answer.

Ranking by bench hours instead goes wrong in the opposite direction with equal conviction. A plain crate takes two hours for Rs 300/-, so Rs 150/- an hour; a lined crate takes one hour for Rs 450/-, so Rs 450/- an hour. Pouring everything into lined crates runs out of cloth at eight of them and lands on no plain crates and eight lined. No plain crates and eight lined is also a corner, worth Rs 3,600/-, Rs 1,500/- short.

Two opposite rules of thumb, two genuine corners, and not the answer in either direction. Sitting on a corner and sitting on the best one are two separate claims, and only a comparison run across the whole list can turn the first into the second. The corner result buys a shorter list. The result has nothing whatever to say about which entry to pick off that list.

Try it out

The planner ranked the crates by what each earns per board and poured every board into plain crates. What exactly is wrong with the reasoning?

A tilted objective moves the answer to another corner. See what holds it there.

How is a linear programming answer checked by hand?

Linear programming answers arrive from elsewhere. A supplier sends a schedule, an analyst hands over a production plan, a spreadsheet somebody built two years ago prints a recommended split. On a problem with two decisions, the complete check takes about five minutes and settles the question rather than softening it. There are four steps and none of them needs a computer.

First, the answer is confirmed to be allowed at all: the plan runs through every rule, one at a time, including the ones that look obviously satisfied. Second, what it actually consumes is added up and set beside what arrives. Third, the rules used to the last unit are separated from those with something spare. The split is what shows what is holding the plan back. Fourth, and this is the step people skip, the neighbouring corners are found and priced. If the answer really is the best corner, it beats both of its neighbours; if it does not, the fault has been found without any need to know how the answer was produced.

Run all four on the Amaltas workshop's answer of eight plain and six lined. Every rule holds. The plan draws twenty boards from a delivery of twenty, twenty two bench hours from the twenty two available, and six rolls from eight. Boards and bench hours are used to the last unit and two rolls of cloth sit idle. Its two neighbours along the edges of the region are eleven plain and no lined at Rs 3,300/-, and four plain and eight lined at Rs 4,800/-, and Rs 5,100/- beats both. Five minutes, no software, and a conclusion that can be defended to whoever handed the plan over. Where only two things are being decided, the list of candidates is short enough to work through on the back of the delivery note, so accepting the answer on faith is a choice rather than a necessity.

THE FIVE MINUTE CHECK, FILLED IN The answer being checked: 8 plain crates and 6 lined crates a day. 1 Does it satisfy every rule? 20 boards within 20, 22 hours within 22, 6 rolls within 8. Yes to all three. 2 Add up what it consumes Boards 8 and 12 make 20. Hours 16 and 6 make 22. Cloth none and 6 make 6. 3 Which rules are used to the last unit? Boards and bench hours, with nothing spare. Two rolls of cloth sit idle. 4 Price the neighbouring corners yourself 11 plain and 0 lined gives Rs 3,300/-. 4 plain and 8 lined gives Rs 4,800/-. The answer gives Rs 5,100/- and beats both of its neighbours. Four steps, no software, and a conclusion that can be defended to whoever handed the plan over.
Test the plan against each limit, total up its consumption, mark whatever has been used down to the last unit, and finally price both neighbours yourself to see whether they lose.
What happens when no plan at all is allowed, and when nothing stops the plan growing without limit, both belong to the region of allowed plans and are covered separately. What one more board or one more bench hour is worth in money is covered separately. What changes when the objective bends instead of running straight is also covered separately. Choosing how much to hold of each thing in a set of holdings belongs to investment management and is covered there. The enumeration here is done by hand on ten pairs of lines; the machine methods used on problems with thousands of decisions are a different subject.

Where did every number come from?

The figureWhere it came fromHow it can be checked
The three daily limits and the two contributionsChosen by hand for the Amaltas workshopNothing to look up. Read the five rows above and see that a person wrote each one.
The ten crossingsTwo equations in two unknowns, solved ten timesPencil and paper. Each pair takes under a minute.
The allowed or outside stamp on each crossingEach crossing put back through all three daily limitsThree additions per crossing, thirty in all.
Rs 5,100/- at eight plain and six linedAll five surviving corners priced and comparedFive multiplications and one comparison, in the table above.
The check across the whole region4,529 plans at one eighth of a crate, priced and comparedA short script rather than paper, and the count is stated so it can be reproduced.
The two switch points, Rs 150/- and Rs 600/-The two corner values set equal to each other and solved2,400 plus six times the figure against 3,300; then 1,200 plus eight times it against 2,400 plus six times it.

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.