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
Quantitative Methods, Financial Data & Programming
1Probability
Probability in FinanceRandom VariableProbability DistributionsThe Normal DistributionNormal Distribution ProbabilityThe Lognormal DistributionRandomness vs Uncertainty
2Statistics 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…
3Correlation and Regression
RegressionCorrelation and CausationOrdinary Least SquaresInteraction TermsRegression CoefficientsRegression vs ClassificationHow to Build a…Spurious CorrelationRegression, Correlation and FitResidualsMulticollinearityAutocorrelation and Partial Autocorrelation
4Time 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
5Simulation and Numerical Methods
SimulationMonte Carlo SimulationHow to Run a…Numerical MethodsIterationResampling and the BootstrapPseudorandom Numbers and the SeedConvergence and ToleranceNumerical Stability
6Optimisation
OptimisationLocal and Global OptimaConstraintsConvex OptimisationThe SolverLinear ProgrammingThe Objective FunctionConstraint ViolationThe Feasible SetLagrange MultipliersQuadratic Programming
7Modelling 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
8Backtesting and Research Integrity
BacktestingBacktest vs Live PerformanceHow to Document a…How to Prevent Backtest…Out-of-Sample TestingWalk-Forward AnalysisMultiple TestingP-HackingData Snooping
9Data 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
10Programming for Finance
Data PipelinesAPIs for Financial DataAPI vs CSV FileDatabases in FinancePython for FinanceJoinsSQL for FinanceThe Analysis Workflow
11Quantitative Research
Research DesignThe Data Generating ProcessReproducibilityPeer Review in Analytical WorkThe Research HypothesisRobustness and Sensitivity

Local and Global Optima: Why the Solver Can Stop Too Early

A local optimum is a plan that beats everything close to it. A global optimum is a plan that beats everything allowed. A step by step search only ever compares a plan with its neighbours, so it stops at the first local optimum it meets and cannot tell which kind it has found. At the Amaltas workshop that search stops at 23 boards a day, Rs 360/- a day short of the best order.

One invented workshop carries every number in this guide. The Amaltas workshop makes two things and nothing else, a plain crate and a lined crate, and it was built small enough for a whole decision to be laid out in one place and checked with a pocket calculator. A plain crate adds Rs 300/- a day to what the workshop has left over and a lined crate adds Rs 450/-. Rs 300/- and Rs 450/- are the contributionWhat one item adds once the materials and the working time that item swallows have been paid for. A contribution is not profit. The bills that stay the same whatever gets made have not come out of it yet. of each crate, established earlier in these notes along with the three daily limits the workshop runs under.

Where the figures come from. Every one of the twenty one rows in the table below is arithmetic on the invented workshop and its invented supplier, so any row can be redone by hand in about fifteen seconds. None of the numbers moves with a market, a season or a supplier's mood, and the workings behind each one are set out in the table of sources at the end.

What is a local optimum, on its own?

Somebody arriving here straight from a search box needs the term handed to them before either half of any comparison is worth reading, so here it is on its own. A local optimum is a plan where every neighbouring plan is worse. That is the whole claim. Notice how small it is. The claim says nothing whatever about plans that sit far away, nothing about the best plan there is, and nothing about how much was looked at. The claim reports the outcome of a handful of comparisons against whatever counts as next door, and nothing more.

Which means the term is useless until somebody says what next door means. In a decision about how many boards to order a day, next door is one board more and one board fewer. In a decision about how many crates to build, next door might be one crate more of each kind. Change what counts as a neighbour and the test is handed a different set of things to lose to. The same plan can then stop being a local optimum.

Here is the everyday version, and it is worth carrying around. A walker crosses a field in the dark, wanting the highest ground. A step north goes down, a step south goes down, east down, west down. Every direction that can be felt from where the walker stands is lower, so the walking stops and the high ground is declared reached. The declaration may be right. The ground underfoot may equally be a low mound, with a proper hill two hundred yards away that nobody can see in the dark and nobody walked far enough to feel. Both situations feel identical from where the feet are. Feeling identical from where the feet are is the entire problem.

Try it out

Define a local optimum without using the word global. Which of these is the definition, in full and with nothing missing?

Breaking Into Quants Bootcamp — Fin Maverick

What is a global optimum, on its own?

Now the other one, also on its own, also in full. A global optimum is a plan that no allowed plan beats, near or far. Not the best one anybody found. Not the best one on the list somebody happened to try. The best one there is, out of every plan the rules permit.

The global claim is a much bigger claim than it looks, and the size of it is the thing to hold on to. To say a plan is a global optimum is to make a statement about the whole set of allowed plansEvery plan the rules permit, taken together as one collection. The set is an object worth studying on its own, and it is studied separately in these notes under the feasible set. at once, which means somebody had to account for all of it. There are only three honest ways to do that. The first is enumeration: listing every allowed plan and comparing them one against another. Enumeration works when the list is short. The second is argument: showing by reasoning that nothing outside what was checked could possibly do better, the way a number can be shown never to exceed a ceiling already computed. The third is the shape of the problem, where certain kinds of problem are built so that finding a local optimum settles the matter, and what makes a problem behave that way is set out separately in these notes under convex optimisation.

With none of the three, nothing remains. A claim that a plan is globally best, made by somebody who neither listed the alternatives nor gave an argument nor said anything about the shape of the problem, is not a weaker version of the claim. The claim is the same words with nothing behind them. Back on the dark field: to claim the highest ground in the county, the walker has to have walked the county, or hold a map of it, or know something about how the county was built.

Try it out

Define a global optimum without using the word local. Which of these is right?

Two claims, and the difference is how much got compared each stated on its own, with nothing set against the other yet A LOCAL OPTIMUM A plan where every neighbouring plan is worse. WHAT IT COMPARED the plan one step to one side the plan one step to the other nothing further out than that Two comparisons settle it on a decision that moves one step. A GLOBAL OPTIMUM A plan that no allowed plan beats, near or far. WHAT IT COMPARED every allowed plan, by listing or the whole set, by argument or the shape of the problem Somebody has to have accounted for the whole allowed set.
A local optimum beats its neighbours and a global optimum beats every allowed plan, and the second claim needs somebody to have accounted for the whole set by listing it, by argument, or through the shape of the problem.

Where exactly do the two ideas differ?

One line, and then the argument for it. The difference is not how good the answer is. The difference is how much was compared before the answer was called best.

Read the two definitions back to back and this falls out. The local claim rests on a small number of comparisons against whatever counts as next door. The global claim rests on accounting for the whole allowed set. Nothing in either definition says a word about the quality of the plan itself, and that is deliberate. The two are not a ranking of answers but a ranking of evidence.

Which leads straight to the trap. The two can be the same plan, and the number alone still cannot say which of the two claims is being handed over. A local optimum often is the global optimum, and on some problems it always is. But a report carrying the figure Rs 1,040/- looks exactly like a report carrying the figure Rs 1,400/-. Both are printed in the same font. Neither carries a little mark saying how many plans were weighed to produce it. Where the number is the only thing available, it is no evidence at all about which claim was made, and the honest move is to ask what was compared rather than to look harder at the figure.

Try it out

A short report gives a single figure and calls it the best the workshop can do. Which of the two claims is the report making?

AI For Finance Bootcamp — Fin Maverick

What does the Amaltas workshop's board order look like as a decision?

Abstract definitions only bite once a real decision sits under them, so here is one. Every morning the Amaltas workshop has to tell its board supplier how many boards to send. The workshop can ask for anywhere between 20 and 40 a day. The order is the whole decision: one number, a whole numberA count with nothing after the decimal point. Twenty three boards or twenty four boards, and no order sitting in between the two., chosen once.

The supplier prices boards at Rs 120/- each, with one wrinkle. Order thirty or more in a day and the price drops to Rs 80/- a board, and the lower price applies to the whole order rather than only to the part above thirty. The drop in price is a rebateA cut in the price a supplier charges once an order passes a stated size. Here the cut applies to every board in the order, not merely to the boards beyond the line., and it is the only unusual thing in the entire problem. Everything else is plain arithmetic.

The quantity the workshop is trying to make large, its objectiveThe single quantity a decision is set up to push as high, or as low, as it will go. Choosing what belongs in it is a job of its own and is handled separately in these notes., is the day's surplusWhatever money is left at the end once every bill the day generated has been settled. Here it stands in for the day's result and no tax, interest or write off is in it.: the best contribution the workshop can reach with that many boards, less the board bill, less Rs 1,900/- a day of rent and wages that does not move whatever the workshop makes. Two of those three parts are fixed by the order alone. The first one takes a moment of thought. How much contribution the workshop can squeeze out depends on the boards it has, and also on its two other daily limits, its bench hoursWorking time on a bench, counted per bench rather than per person. Three benches open eight hours each give twenty four bench hours. The number of hands using them makes no difference. and its cloth, which do not change when the board order changes.

Work that through and the answer is short. At the workshop's standing orderA repeat order placed once and then left running, so the same quantity turns up every day without anybody deciding again. of 20 boards the best day is 8 plain crates and 6 lined crates, worth Rs 5,100/- in contribution. Each of the next three boards is worth another Rs 200/- of contribution, so 21 boards reach Rs 5,300/-, 22 reach Rs 5,500/- and 23 reach Rs 5,700/-, where the plan is 7 plain crates and 8 lined crates. The cloth runs out at 8 lined crates and the bench hours run out at the same moment, so after 23 boards the workshop cannot use another one at all. The twenty fourth board, and every board after it, adds exactly Rs 0/- of contribution. Where the Rs 200/- a board comes from, and why it stops when it does, is worked out separately in these notes under the pricing of a constraint. Here it is enough that it does.

The middle of that climb would otherwise trip a careful reader, so it needs one honest note. At 21 and 22 boards the best day involves a crate that is part built when the workshop closes. The Amaltas workshop counts the share of it that got done and finishes it first thing next morning. Counting a part built crate that way keeps the climb smooth at Rs 200/- a board rather than lumpy. At 20 boards and at 23 boards, the two rows the argument leans on hardest, the plans are whole crates with nothing left on the bench.

Try it out

Before the table below. The board price drops from Rs 120/- to Rs 80/- once the order reaches thirty. Will a search that starts at the standing order of twenty boards and moves one board at a time find that price break?

What does every row of the board order ladder come to?

Twenty one possible orders, twenty one rows, no gaps. Each row is the same three step sum: take the best contribution reachable at that many boards, take off the board bill, take off Rs 1,900/-. The board bill is the order times Rs 120/-, or times Rs 80/- from thirty boards upward.

Boards orderedBest contribution reachableBoard billRent and wagesThe day's surplus
20Rs 5,100/-Rs 2,400/-Rs 1,900/-Rs 800/-
21Rs 5,300/-Rs 2,520/-Rs 1,900/-Rs 880/-
22Rs 5,500/-Rs 2,640/-Rs 1,900/-Rs 960/-
23Rs 5,700/-Rs 2,760/-Rs 1,900/-Rs 1,040/-
24Rs 5,700/-Rs 2,880/-Rs 1,900/-Rs 920/-
25Rs 5,700/-Rs 3,000/-Rs 1,900/-Rs 800/-
26Rs 5,700/-Rs 3,120/-Rs 1,900/-Rs 680/-
27Rs 5,700/-Rs 3,240/-Rs 1,900/-Rs 560/-
28Rs 5,700/-Rs 3,360/-Rs 1,900/-Rs 440/-
29Rs 5,700/-Rs 3,480/-Rs 1,900/-Rs 320/-
30Rs 5,700/-Rs 2,400/-Rs 1,900/-Rs 1,400/-
31Rs 5,700/-Rs 2,480/-Rs 1,900/-Rs 1,320/-
32Rs 5,700/-Rs 2,560/-Rs 1,900/-Rs 1,240/-
33Rs 5,700/-Rs 2,640/-Rs 1,900/-Rs 1,160/-
34Rs 5,700/-Rs 2,720/-Rs 1,900/-Rs 1,080/-
35Rs 5,700/-Rs 2,800/-Rs 1,900/-Rs 1,000/-
36Rs 5,700/-Rs 2,880/-Rs 1,900/-Rs 920/-
37Rs 5,700/-Rs 2,960/-Rs 1,900/-Rs 840/-
38Rs 5,700/-Rs 3,040/-Rs 1,900/-Rs 760/-
39Rs 5,700/-Rs 3,120/-Rs 1,900/-Rs 680/-
40Rs 5,700/-Rs 3,200/-Rs 1,900/-Rs 600/-

Read the last column downward and the shape is unmistakable. Each board adds Rs 200/- of contribution and costs Rs 120/-, so from 20 boards the surplus climbs Rs 80/- a board. The climb tops out at Rs 1,040/- at 23 boards. The boards after that add nothing and still cost Rs 120/- each, so the surplus falls Rs 120/- a board for six straight rows and bottoms out at Rs 320/- at 29 boards. Then at 30 the whole order reprices at Rs 80/- a board, the bill drops from Rs 3,480/- to Rs 2,400/-, and the surplus jumps to Rs 1,400/-. From there it falls again, Rs 80/- a board, down to Rs 600/- at 40.

So the last column has two peaks: Rs 1,040/- at 23 boards and Rs 1,400/- at 30 boards, with a floor of Rs 320/- at 29 boards sitting between them. Those two are peaks in the strict sense the first block set out. At 23 boards both neighbours are worse, Rs 960/- below and Rs 920/- above. At 30 boards both neighbours are worse, Rs 320/- below and Rs 1,320/- above. Nothing else in the twenty one rows has that property. Run down the column and no other row is higher than the two rows either side of it.

The board order ladder, all twenty one rows, and it has two peaks the day's surplus at the Amaltas workshop, invented for teaching Rs 0/- Rs 400/- Rs 800/- Rs 1,200/- Rs 1,040/- LOWER PEAK Rs 1,400/- HIGHER PEAK Rs 320/- the floor the price break at thirty boards 20 23 25 29 30 35 40 boards ordered a day
The day's surplus peaks at Rs 1,040/- at 23 boards, falls to a floor of Rs 320/- at 29 boards, then jumps to Rs 1,400/- at 30 boards where the whole order reprices, so the ladder carries two peaks rather than one.

Where does a step by step search stop, and does the start matter?

Now something runs over that ladder. The search is the simplest one anybody would write on the back of an envelope, and a pencil is enough to run it. The search stands on some order, looks at the order one board lower and the order one board higher, and moves to whichever neighbour is better. Then it repeats. The run stops when neither neighbour beats the order it is standing on.

Start it at the standing order of 20 boards. Rs 800/- there. Look at 21: Rs 880/-, better, move. Look at 22: Rs 960/-, better, move. Look at 23: Rs 1,040/-, better, move. Now from 23 look both ways: 22 is Rs 960/- and 24 is Rs 920/-. Both worse. Stop. The search reports 23 boards a day, worth Rs 1,040/-.

Three steps accepted, one step refused, and the search stops started at the standing order of twenty boards a day Rs 800/- Rs 880/- Rs 960/- Rs 1,040/- Rs 920/- 20 boards 21 boards 22 boards 23 boards 24 boards STOP refused, it falls
A search that keeps only improvements walks from 20 boards to 23 and stops there, because the step to 24 boards drops the day from Rs 1,040/- to Rs 920/- and is refused.

Nothing about that run is careless. Every comparison it made was correct, it never accepted a worse plan, and its stopping rule fired exactly when it was supposed to. Now start the identical search one board further along, at 29. Rs 320/- there. Look at 30: Rs 1,400/-, better, move. Look both ways from 30: 29 is Rs 320/- and 31 is Rs 1,320/-. Both worse. Stop. The search reports 30 boards a day, worth Rs 1,400/-.

Do that from all twenty one possible starts and the pattern is clean enough to be uncomfortable. Started anywhere from 20 to 28 boards, the search ends at 23. Started anywhere from 29 to 40, it ends at 30. There is no middle case and no other stop anywhere on the ladder. The answer depends on where the search began, and nothing in the search reports that.

Twenty one starts, two stops, and one clean break between them the same search each time, changing only the board order it began at stops at 23 boards, Rs 1,040/- stops at 30 boards, Rs 1,400/- the break 20 28 29 40 the board order the search started from nine starts on the left, twelve on the right, and nothing lands anywhere else
Every start from 20 to 28 boards stops at 23 and every start from 29 to 40 stops at 30, so the answer the search reports is a property of where it began as much as of the problem.
Try it out

The same search stops at 23 boards from a start of 20, and at 30 boards from a start of 29. What does that say about the search?

Play with it

Move the starting order and watch the same search land somewhere else

One control, and all it changes is the board order the search begins at. Everything else is frozen: the same twenty one rows, the same price break at thirty boards, the same rule of keeping a step only when the day improves. Set the start, then walk the search forward one board at a time and watch where it settles. The published reading is the standing order of 20 boards. Starting there stops the search at 23 boards and Rs 1,040/- a day, Rs 360/- short of Rs 1,400/-.

Starting board order: 20
Standing at
20 boards
The day there
Rs 800/-
Steps taken
0
It will stop at
23 boards

The price break at thirty boards is held fixed at every setting, and the only thing the control moves is where the search begins. The search keeps a step only when the day improves, and that one rule is what makes it stop where it does. Educational illustration only.

Risk Management Program Bootcamp — Fin Maverick Rebalancing: When, Why and What It Costs — free micro-course from Fin Maverick

What does stopping at the lower peak actually cost?

Rs 1,400/- less Rs 1,040/- is Rs 360/- a day. The gap is what a search that started at 20 boards gives up against a search that started at 29, and the workshop gives it up every single day the standing order stays where it is. Over three hundred working days the gap comes to Rs 1,08,000/-. A daily figure this small is easy to wave away, so the yearly one is worth stating once.

But the size is not the interesting part. The stop at 23 boards is a completely genuine peak. Both its neighbours are worse. The search did not miss anything it was looking at. Reaching the better order means first walking down from Rs 1,040/- at 23 boards to Rs 320/- at 29 boards: six steps, a descent of Rs 720/- a day, and only then does the ground rise again. A search that only ever looks one board either way cannot see 30 boards from 23, so it would have to make that descent with no information at all telling it a climb waits on the other side.

Which is the real point. Walking down a valley means accepting a worse plan, and refusing worse plans is the only rule the search has, so no search that keeps only improvements will ever walk down a valley. The refusal is not a defect in this search. The refusal is the search. Take the refusal away and what is left no longer terminates at all, and becomes something else entirely.

The valley a search would have to cross, and it never will six steps down before the ground starts rising again Rs 1,040/- Rs 920/- Rs 800/- Rs 680/- Rs 560/- Rs 440/- Rs 320/- Rs 720/- down 23 24 25 26 27 28 29 boards ordered a day every one of these six steps is refused by a search that keeps only improvements Rs 1,400/-
Escaping the lower peak means walking down Rs 720/- a day across six steps of Rs 120/- each before the ground rises again, which is exactly what a search keeping only improvements refuses to do.
Try it out

Stopping at 23 boards costs the Amaltas workshop Rs 360/- a day. Is that a big number?

Rebalancing: When, Why and What It Costs teaches you to choose a rebalancing rule and say what it buys and what it costs.

What made a second peak possible in the first place?

One thing did, and it is worth naming precisely because it is the only unusual ingredient in the whole problem. The price break at thirty boards put a step into the thing the workshop is trying to make large, and that step is where the second peak came from.

Take it out and see. Suppose the supplier charged Rs 120/- a board at every quantity with no rebate at all. Then the board bill would rise smoothly at Rs 120/- a board all the way from 20 to 40, and the surplus would climb Rs 80/- a board to Rs 1,040/- at 23 boards and then fall Rs 120/- a board for the whole rest of the ladder, seventeen straight falls, ending at minus Rs 1,000/- at 40 boards. One peak. No valley. No second climb. A search from any start would walk to 23 boards and stop, and it would be right to stop, because 23 really would be the best order there was.

So the trap is not made by the limits and it is not made by the two contribution figures. The trap is made by the step. Steps are everywhere in an actual workshop, so the general version is worth carrying away. A rebate at a quantity is a step. A minimum order is a step. A second machine that is either hired for the month or not is a step. A licence that costs the same whether it is used once or a thousand times is a step. A delivery charge that vanishes above some size is a step. Every one of those breaks the smooth relationship between what is decided and what comes back. Wherever the quantity being made large moves in a jump rather than a slope, a second peak is possible until somebody has looked.

The other side of that is that some problems are built so that a local optimum has to be the global one, and a search stopping anywhere is then all the proof anybody needs. The property that does it, and how to recognise it, is set out separately in these notes under convex optimisation.

Try it out

Name the one feature of the Amaltas workshop's board decision that made a second peak possible.

Building a Working Capital Schedule — free micro-course from Fin Maverick

Why does the better order buy boards it never uses?

Look hard at the row for 30 boards and something odd surfaces. The cloth and the bench hours stopped the workshop going further long ago, so at 30 boards it still makes 7 plain crates and 8 lined crates, exactly the plan it makes at 23 boards. So the workshop uses 23 boards and buys 30. Seven boards go straight to the corner of the room and stay there.

Yet it is the better order, and the arithmetic saying so is one line. Thirty boards at Rs 80/- is Rs 2,400/-. Twenty three boards at Rs 120/- is Rs 2,760/-. The bigger order costs Rs 360/- less. The contribution is identical at both orders, Rs 5,700/- either way, so the entire Rs 360/- gap between the two peaks is the board bill and nothing else. Buying seven boards that will never be touched is cheaper than not qualifying for the rebate.

Everyday version. A household buys a twenty kilogram sack of rice for less than two five kilogram packets cost, even though it will eat ten kilograms this month. The rice in the sack is not waste. The extra ten kilograms are the price of the price. A plan can be right and still look wasteful, and looking wasteful is not an argument against it. The test is the number at the bottom of the column, not how tidy the plan looks on the way there.

The bigger order is the cheaper order, and seven boards never move invented supplier terms at the Amaltas workshop Rs 2,760/- Rs 2,400/- 23 boards at Rs 120/- 30 boards at Rs 80/- Rs 360/- cheaper all 23 boards get used 23 used, 7 left in the corner THE SEVEN SPARE BOARDS Bought and never touched, and the day is better for it. Contribution is Rs 5,700/- at both orders, so the whole gap between the peaks is the board bill.
Thirty boards at Rs 80/- cost Rs 2,400/- against twenty three at Rs 120/- costing Rs 2,760/-, so seven boards are bought and never used and the day is still Rs 360/- better.
Try it out

The better order buys thirty boards and uses twenty three. Should the seven idle boards be a worry?

Building a Working Capital Schedule teaches you to build the schedule that connects an income statement to cash.

How to work when a second peak is possible

Four habits, all of them modest. None is a technique and none needs anything beyond what is already to hand. The four are what somebody handed a search result does before believing it, whether that somebody runs a workshop, checks a model at a lender, or reads a note an analyst wrote.

First, start from several places and see whether the answers agree. This is the cheapest defence there is and on this ladder it works immediately: of the twenty one possible starts, twelve land on 30 boards and nine land on 23. Try four or five starts spread across the range and the disagreement shows up at once. A disagreement is information, and it proves at least one of the answers is not the best there is. Agreement is weaker evidence, but it is still evidence, and it costs one more run.

Second, look at the whole picture when the decision is small enough to draw. Twenty one rows fit on one screen. A person who prints the table finds both peaks in ten seconds and needs no search at all. On a small decision the honest global claim is available for the price of a table, so ask whether the decision can simply be listed out before reaching for a search.

Third, the kind of claim being made is stated outright. Near best and best are different statements and they should not be written the same way. A line reading that 23 boards is the best order the search reached from a start of 20 is honest and complete. A line reading that 23 boards is the best order is neither, and the difference between the two sentences is the whole difference between a near best claim and a best one.

Fourth, when a price break, a minimum order or an on or off choice sits anywhere in the problem, a second peak is to be assumed until somebody has looked. The assumption is not a suspicion. The rebate above showed as much: those features put steps into the quantity being made large, and steps are what make second peaks. Finding one costs a few extra runs. Missing one costs Rs 360/- a day for as long as nobody checks.

What to do before believing a search result four habits, and none of them needs a technique beyond what is already to hand Is there a price break, a minimum order or an on or off choice in the problem? NO YES ONE START IS USUALLY ENOUGH Still say where it began and still call it a near best claim rather than a best one. ASSUME A SECOND PEAK. Is it small enough to list? YES NO LIST EVERY OPTION Twenty one rows on one screen settles it outright. MANY STARTS Report how many were tried and what each gave.
Where a price break, a minimum order or an on or off choice is present, assume a second peak until the whole picture has been looked at, and list the options outright whenever the decision is small enough to fit on a screen.
Try it out

A search result arrives on a problem known to contain a minimum order. What is the cheapest useful thing to do next?

The failure: a report that is right about everything except what it compared

A short note reaches the Amaltas workshop. The best board order is 23 a day, it says, worth Rs 1,040/-. The note is not wrong about the arithmetic. The note is not wrong about the neighbours either: 22 boards gives Rs 960/- and 24 boards gives Rs 920/-, both worse, and it prints both. Everything on it is true.

The note never says where the search began. The number already sitting in the system was the standing order of 20 boards, and nobody thought about it, so that is where the search began. The workshop then orders 23 boards a day for a year and gives up Rs 360/- a day, or Rs 1,08,000/- over three hundred working days, against an order the search never came within six steps of.

The expensive part is not the money. The note reads exactly like a note that compared everything, and nobody holding it can tell the difference. A near best claim and a best claim print identically, and the reader has no way back to which one was made.

The fix is one line long and it belongs in the note itself. A search result carries its starting point and the number of starts tried, or it is a near best claim wearing the clothes of a best one. Written properly, that same note reads: from a start of 20 boards and one start only, the search settled at 23 boards a day, worth Rs 1,040/-. Now everybody holding it knows exactly what they have.

Where this guide stops. What shape a problem has to have for a stop to be safe is set out separately under convex optimisation. A solver with this same search buried inside it, and the ways its answers can mislead, is covered separately. The region of allowed plans as an object in its own right is covered separately. Choosing how much to hold of each thing in a set of holdings and trading risk against return belongs to portfolio construction and investment management and is covered there.

Portfolio Management Bootcamp — Fin Maverick
What this guide coversHow the figure was producedSite or documentWorked out on
Three daily limits, two contribution figures of Rs 300/- and Rs 450/-, and Rs 1,900/- of rent and wagesTyped out by hand when the workshop was invented for these notesNone. Nothing outside these notes was opened23 August 2026
Board prices of Rs 120/- each and Rs 80/- from thirty boardsTyped out by hand as part of the invented supplier termsNone. Multiply the order by whichever price applies23 August 2026
The best contribution reachable at each order from 20 to 40 boardsEvery corner of the allowed set compared against every other at each of the twenty one ordersNone. It comes to Rs 5,100/- plus Rs 200/- a board up to 23, and nothing after that23 August 2026
All twenty one rows of the day's surplusContribution less the board bill less Rs 1,900/-, one row at a timeNone. Every row redoes in three subtractions23 August 2026
The two peaks at Rs 1,040/- and Rs 1,400/- and the floor at Rs 320/-Found by sweeping the column for any row higher than both rows beside it, rather than by reading the pictureNone, as running down the last column shows23 August 2026
Where the search stops from each of the twenty one startsThe search run once from every start and the stop recorded each timeNone. Trace any start by hand along the table23 August 2026
A search that keeps only improvements halting at a nearby peakLong settled common material with no single owner, so it is stated as a mechanism and credited to nobodyNone safe to name without opening the text firstNot applicable

The Amaltas workshop, its plain crate and lined crate, and its board supplier 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.