Cash Flow Optimisation
Multi-Period LP · Retainage · Financing Cost
Construction · Finance & Bid · TacticalCash flow — not profitability — is the most common reason construction firms fail. Monthly billings (minus retainage) lag monthly expenditure (materials, crews, subs) by 30–90 days; the gap must be bridged by a line of credit at interest. The scheduler's choices over activity timing, front-loading of billable quantities, and subcontractor payment terms collectively determine the peak borrowing, the total financing cost, and whether the firm survives the project. Navon (1996) formulated cash-flow control as a multi-period LP; Elazouni (2009) and Ali & Elazouni (2009) extended it to integrated scheduling-plus-financing. This page's simulator lets you trace the cumulative cash position under configurable retainage, interest, and credit-limit terms.
Where This Decision Fits
Contractor financial planning — the highlighted step is what this page optimises
The Problem
Minimise financing cost subject to monthly cash-on-hand constraints
Let \( t \in \{1, \ldots, T\} \) be the project months. For each month the contractor has scheduled expenditure \( E_t \) (materials + crews + subs, known from the schedule and BOQ) and billable work \( W_t \) (monthly earned value). The owner pays \( (1 - r) W_{t - \lambda} \) in month \( t \) where \( r \) is the retainage fraction (typically 5–10%, held until completion) and \( \lambda \) is the billing lag (typically 1–2 months). The final retainage \( r \sum_t W_t \) is released at project closeout.
The contractor maintains a balance \( B_t \) with a bank line of credit \( L \). Decision variables: \( d_t \ge 0 \) is the draw from the credit line in month \( t \); \( p_t \ge 0 \) is the pay-down. The outstanding loan \( D_t \) accumulates interest at rate \( i \) per month:
Here \( R_t = (1-r) W_{t-\lambda} + (\text{retainage released at closeout}) \) is the monthly receipt. \( B_{\min} \) is the minimum operating cash balance (≥ 0). The objective penalises both total interest and average loan outstanding (a simple proxy for opportunity cost).
When the LP is feasible the optimal draw pattern is the obvious one: borrow just enough each month to maintain \( B_t = B_{\min} \), pay down whenever surplus receipts exceed the balance floor. The interesting optimisation lives upstream — in the bid pricing (how to front-load billable quantities within the BOQ), in subcontractor payment terms, and in schedule compression that shortens the total horizon at extra direct cost. Elazouni (2009)'s integrated model jointly optimises schedule + cash flow; this page's simulator fixes the schedule and shows the optimal financing response.
Time-cost tradeoff — an upstream lever that reduces horizon-length financing costTry It Yourself
Trace the cumulative cash position; tune retainage, interest, and credit limit
Cash-Flow Simulator
12 monthsBelow zero means the contractor is borrowing. Dashed red line = credit limit. If the curve crosses it, the project is infeasible at those terms.
Pick a scenario and click Simulate.
The Algorithms
From forward simulation to full integrated LP
Forward Cash-Balance Simulation
O(T) — one pass through the monthsGiven a fixed schedule, just walk through the months: collect the receipts (lagged, net of retainage), subtract the expenses, draw from the line when below \( B_{\min} \), pay down when above. No optimisation needed — the draw pattern is forced by the monthly inequality. The simulator on this page implements this. Fast, transparent, and the right tool when the schedule is given.
Multi-period Linear Programming
Polynomial — O(T) variables, O(T) constraintsNavon (1996) formulates the cash-flow LP with billing-timing decision variables inside the BOQ (front-load billable quantities within allowed tolerance). The LP trades a small markup on early activities against the interest saved by faster receipts. This is where optimisation actually bites — it can reduce financing cost by 10–20% on typical projects.
Finance-Based Scheduling
MIP or GA; TB scheduling with cash-flow objectiveElazouni (2009) and Ali & Elazouni (2009) integrate the activity-schedule and cash-flow LP into a single MIP. Shift activities within their float to smooth cash demand; delay non-critical work to let receipts catch up. Typically reduces peak borrowing by 20–35% at the cost of modest schedule slack. Elazouni & Metwally (2005)'s GA scales it to 100+ activities.
Real-World Complexity
Why construction cash flow goes beyond the textbook LP
Beyond the Clean LP
- Change orders — Owner-initiated scope changes disrupt the expenditure profile mid-project; the LP needs re-solving each month.
- Progress-payment variance — Owner certifications are often delayed past the contracted \( \lambda \); stochastic models (Liu & Zhu 2007) add variance on \( R_t \).
- Subcontractor payment terms — Pay-when-paid, pay-if-paid, and early-payment-discount options change \( E_t \) timing; each negotiation shifts the optimum.
- Liquidated damages / bonus clauses — Late completion costs can make schedule compression (TCTP) cheaper than financing, or vice versa.
- Performance bonds & retainage release — Bonded retainage mechanisms reduce cash drag but cost surety premium; a second-order trade-off.
- Multi-project portfolios — Contractors run many projects at once; company-wide cash-flow is the aggregation of project-level LPs plus overhead + capex.
- Front-loading tolerance — Owners penalise aggressive front-loading (unbalanced bids) — there's a regulatory ceiling on how much schedule-timing shifting is allowed.
Related Finance & Schedule Variants
Cash flow links scheduling to financial planning
Key References
Cited above · DOIs & permanent URLs
Running a contracting firm?
Cash-flow discipline is what separates firms that grow from firms that fail. OR models turn intuition-driven draw and billing decisions into mathematically grounded ones. Let's discuss how Operations Research can sharpen your financial planning.