Rufineer v0.43.0
Account
Browse the docs

Example 11 of 13

PPP road with climate adaptation

Based on Toll_road_modele 19.11.2022 Revised.xlsm

A 38-year road concession, bid on a target equity return, modelled with and without climate adaptation works. Traffic runs monthly; financing runs six-monthly with repayments in May and November; a VBA function fixes the debt so that sizing does not go circular. Design example: written in the full v0.5 language. The compiler builds the working core today, so this one doesn't compile yet. Source: examples/design/ppp/.

Library
A. Featured Models / D. Infrastructure – PPP Models (20 files)
Timeline
34 months construction, 38-year concession; monthly before COD, six-monthly after
Traffic
1,000 vehicles a day making 2 trips of 40 km, plus 400 trucks a day; climate scenarios scale revenue
Cost
USD 299.5m without adaptation, plus USD 71.1m of adaptation works in the adaptation case
Debt
80% of cost, target DSCR 2.0x, base 3.6% + 4.0% on 360 days, 1.5% upfront, 1% commitment; a 35-year concessional loan at 2.5%
Rebuild shown
5 files, 113 lines

Where each sheet goes

Workbook sheetsRufineer
InputC – Operation, InputC – Financing, InputSinputs.rfn and scenario sheets of the data workbook
Monthly Operationstraffic.rfn on monthly
Semi Annual Financing, Semi Annual Taxesfinance.rfn on finance
Model-Annualstatements on the annual ruler
UDFInputs, UDFOutput, UDFFixsolve … | by function
BAU, Comparison, Actual Case Adjustmentsbid.rfn: under bau and | actuals

Source 5 files shown, 113 lines

model.rfn
model "PPP Road with Climate Adaptation" {
  currency   USD
  unit       vkm = vehicle * km
  day_count  act/360
  data       "ppp_road_inputs.xlsx"
}

timeline {
  start          2023-01-01
  construction   34m
  operations     38y
  ruler monthly  month                   // traffic, revenue, operating costs
  ruler finance  half  ends May, Nov     // repayments fall in May and November
  ruler annual   year  ends Dec          // tax and statements
}

What this model needed from the language

  • Three rulers. Monthly traffic, six-monthly financing with payment months, yearly tax. Revenue is summed into half-years automatically.
  • A bid on a target return. seek inputs.toll so that … replaces a Goal Seek.
  • The VBA-function style. The workbook fixes debt with a user-defined function. solve … | by function writes the same kind of function from the source.
  • Two cases side by side. Adaptation and business as usual share one model; under bau fills the comparison sheet.
  • Grants, concessional loans and lifecycle reserves. A grant is a funding source; the MRA target averages the next three years of resurfacing.