Operating Business (OpCo) examples show revenue, opex, working capital, and exit multiple for DCF-style valuation. All use the OpCo pack (use pack "opco"). For when to use streams vs contracts (e.g. individual revenue/opex items → stream), see the Language guide.
Example ladder
| Example | Purpose |
|---|---|
| with_pack | Revenue + opex only (tutorial). |
| opco_with_growth | Revenue line with growth_rate > 0. |
| opco_basic | Full OpCo: revenue, opex, working capital, exit multiple. |
| opco_multi_file | Full OpCo split across structure.cfdl, contracts.cfdl. |
Run configurations
Each example directory includes a run.json for deterministic runs. Example:
cfdl compile examples/opco_basic --out /tmp/opco.ir.json --packs packs
cfdl run /tmp/opco.ir.json --out /tmp/opco.results.json --config examples/opco_basic/run.json --packs packsStructure
- Entities: Examples use
operating business; multi-entity (e.g. company + LOBs) can be added when needed. - Pack contracts:
opco.revenue_line,opco.opex_line,opco.working_capital,opco.exit_multiple— see Packs and the OpCo pack guide.