Lattice Forecourt: Mathematical Model, Units & Reproducible Benchmarks
Role & Domain Intent: Rule-based pricing automation (Deterministic specialist checks; not a chatbot or autonomous LLM agents.)
Equations, Variables & Dimensional Rules
Deterministic fuel-pricing workflow with specialist checks, margin floors, change caps and rounding.
p_market = median(M); p_floor = c_mills + m_min; p_capped = clamp(p_target, p_0 − Δ_max, p_0 + Δ_max); p_final = round_to_tick(max(p_capped, p_floor), τ_mills)
Declared Units: All monetary prices, costs, margins, caps, and rounding ticks in integer mills per litre (1,000 mills = 1.00 currency unit); volume in millilitres (mL).
Step-by-Step Numerical Verification
Case 1 (Current price p_0 = 1,600 mills/L, wholesale cost c = 1,400 mills/L, competitor market = [1,610, 1,640, 1,650] mills/L, min margin = 100 mills/L, max change cap = 100 mills/L, rounding tick = 10 mills/L): Market median is 1,640 mills/L. Margin floor requires ≥ 1,500 mills/L (passed). Change cap allows [1,500, 1,700] mills/L (passed). Tick rounding at 10 mills preserves 1,640 mills/L, so the deterministic gate status is 'Clear' with Proposal = 1,640 mills/L.
| Case ID | Cost (mills) | Current (mills) | Market Median | Floor / Cap Rule | Proposed (mills) | Gate Status |
|---|---|---|---|---|---|---|
| Case 1 (Standard Clear) | 1,400 | 1,600 | 1,640 | Floor 1,500 / Cap ±100 | 1,640 | Clear |
| Case 2 (Cap Bound) | 1,450 | 1,580 | 1,720 | Floor 1,550 / Cap ±80 | 1,660 | Capped |
| Case 3 (Floor Conflict) | 1,560 | 1,600 | 1,620 | Floor 1,680 / Cap ±50 | Blocked | Floor vs Cap Conflict |
Validation Status, Scope Exclusions & Disclaimers
- Data Status: Synthetic / precomputed browser demonstration fixtures generated deterministically from the project engine.
- Operational Limitation: No live AI/model agents or actual commercial price changes.
- Client-Side Execution: All interactive views, filters, and JSON/CSV exports execute locally in the user's browser with zero external API calls, zero telemetry, and no server-side persistence.
- Author & Principal Investigator: Mohammad Rezwan Khan, PhD (Aalborg University · BESS QA/QC & Power Systems Specialist).