Papers
Topics
Authors
Recent
Search
2000 character limit reached

Conditional Fare Networks (CFNs)

Updated 14 July 2026
  • Conditional Fare Networks (CFNs) are an automaton-inspired framework that models complex public transport fare rules through state-based fare evolution.
  • They unify diverse fare structures—such as zone-based, distance-based, and flat fares—into a single system that supports multi-objective journey planning.
  • The approach tackles NP-hard optimization challenges while enabling efficient Pareto-optimal routing in real-world public transit networks.

Conditional Fare Networks (CFNs) are a unifying, automaton-inspired framework for representing arbitrarily complex public-transport fare rules and integrating them into earliest-arrival routing algorithms. They were introduced in the study of the price-optimal earliest arrival problem (POEAP), where the objective is to calculate the Pareto-set of journeys with respect to ticket price and arrival time in a public transportation network. The framework is motivated by the observation that public transit fare structures are often a combination of various fare strategies such as distance-based fares, zone-based fares, or flat fares, and that the rules determining the actual ticket price are often very complex; accordingly, fare structures are notoriously difficult to model, because it is in general not sufficient to simply assign costs to arcs in a routing graph (Euler et al., 2022).

1. Problem setting and rationale

The POEAP asks, for given s,tVs,t \in V and departure t0t_0, for all sts \to t journeys pp that are Pareto-optimal with respect to arrival time ct(p)c_t(p) and total price π(ticket(f(p)))\pi(\operatorname{ticket}(f(p))) (Euler et al., 2022). In the underlying formulation, the transportation network is represented as a directed graph of stops and arcs, where arcs include vehicle legs, footpaths, and transfers.

The central modeling difficulty is that fare accumulation in public transportation is not generally arc-additive. Zone transitions, transfer entitlements, ticket upgrades, and threshold effects can depend on the history of a journey rather than on any single arc in isolation. This is why the framework does not treat fare as an ordinary scalar edge weight. Instead, it treats fare computation as state evolution over a structured fare space. This suggests that CFNs were designed to bridge the gap between realistic fare semantics and the algorithmic requirements of multi-objective public-transit routing.

The paper characterizes research into POEAP as scarce and notes that prior work usually either relies on heuristics or only considers restrictive fare models that are too limited to cover the full scope of most real-world applications (Euler et al., 2022). Within that context, CFNs are presented as the first framework for representing a large number of real-world fare structures.

2. Formal structure of a Conditional Fare Network

A CFN is defined over several interacting components. The routing graph is G=(V,A)G=(V,A), the usual directed graph of stops VV and arcs AA. Each arc aAa \in A has a travel-time t0t_00, described as a FIFO function t0t_01, together with fare annotations (Euler et al., 2022).

The fare-accumulation component is a positive partially ordered monoid t0t_02 that collects all “numeric” fare parameters. The examples given include distance, number of stops, and set-union of visited fare zones. In parallel, there is a finite set t0t_03 of discrete fare events, such as boarding a special train, leaving a city zone, or making a transfer. Ticket logic is encoded by a DAG t0t_04 whose nodes are tickets or ticket classes and whose arcs indicate feasible upgrades or downgrades of ticket along a journey (Euler et al., 2022).

Initial conditions are specified by a function t0t_05 labeling each origin stop with its initial fare state, where t0t_06. Any fare state t0t_07 is written as t0t_08 with t0t_09 and sts \to t0. Ticket prices are given by a non-decreasing price function sts \to t1 (Euler et al., 2022).

Fare-state evolution is governed by a state transition and an incremental-cost function:

sts \to t2

with

sts \to t3

and

sts \to t4

where each arc sts \to t5 carries a monoid weight sts \to t6 and an event sts \to t7, and sts \to t8 chooses the next ticket among the current ticket’s out-neighbors (Euler et al., 2022).

The incremental cost of traversing arc sts \to t9 from fare state pp0 is

pp1

The formulation also allows one to define pp2 directly in terms of ticket upgrades or distance-based steps (Euler et al., 2022).

A notable feature of this definition is the separation between accumulated fare-relevant information pp3, discrete events pp4, and ticket-state evolution in the ticket graph. A plausible implication is that this decomposition is what enables CFNs to represent heterogeneous fare systems within a single formalism rather than through fare-model-specific routing encodings.

3. Modeling common fare strategies

The framework explicitly shows how several standard fare strategies fit into the same formal apparatus.

For zone-based fares, the zone set is pp5, and the monoid is chosen as pp6 with pp7 and pp8. Arc annotations take the form pp9, and the event set is ct(p)c_t(p)0. The update rule is described as ct(p)c_t(p)1. There is no incremental cost, ct(p)c_t(p)2, and at journey end one buys the ct(p)c_t(p)3-zone ticket with ct(p)c_t(p)4 (Euler et al., 2022).

For distance-based fares, the monoid is ct(p)c_t(p)5 with ordinary addition and the natural order, and ct(p)c_t(p)6. Again ct(p)c_t(p)7. The transition function ct(p)c_t(p)8 keeps the same distance ticket until a threshold is exceeded; the example given is

ct(p)c_t(p)9

Again π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))0, while final cost π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))1 depends on π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))2 via π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))3 (Euler et al., 2022).

For flat-fare and unlimited-transfer tickets, the ticket graph is defined on π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))4 with trivial π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))5. On the first boarding event, π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))6, and otherwise the state remains in Flat. Then π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))7 for all arcs, while the initial price π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))8 is a fixed fare. The same formalism can also encode transfers within a time window as events that keep the traveler in the same Flat ticket (Euler et al., 2022).

The examples are significant because they cover zones, distance, flat fares, transfer tickets, and threshold-triggered upgrades within a single state-transition language. This suggests that the ticket graph and monoid jointly serve as the abstraction layer through which otherwise disparate fare systems are rendered algorithmically comparable.

4. Computational complexity and limits

The paper states that optimizing over CFNs is NP-hard by the nature of their extensive modeling capabilities (Euler et al., 2022). It also gives a sharper hardness result for a restricted case: the single-criterion version of POEAP, with zero travel-time and minimizing only π(ticket(f(p)))\pi(\operatorname{ticket}(f(p)))9, is NP-hard.

The specific theorem is that finding an G=(V,A)G=(V,A)0–G=(V,A)G=(V,A)1 path G=(V,A)G=(V,A)2 minimizing G=(V,A)G=(V,A)3 in a CFN with only zone-monoid G=(V,A)G=(V,A)4 is NP-hard (Euler et al., 2022). The proof sketch is by reduction from the path-with-forbidden-pairs problem. Each forbidden pair G=(V,A)G=(V,A)5 becomes a zone G=(V,A)G=(V,A)6; traversing G=(V,A)G=(V,A)7 or G=(V,A)G=(V,A)8 increments G=(V,A)G=(V,A)9 by VV0; if both are visited, then VV1 upgrades the ticket to an expensive one. Under that encoding, ensuring that no forbidden pair is fully visited is equivalent to keeping the cheap ticket.

This hardness result is methodologically important because it shows that computational difficulty is not an artifact of the most expressive versions of the framework. Even a restricted zone-monoid instantiation already inherits NP-hardness. A common misconception would be to treat fare optimization as a routine extension of earliest-arrival routing with an added scalar weight; the NP-hardness statement, together with the non-arc-additive fare semantics, directly contradicts that view.

5. Integration into multi-objective routing algorithms

A direct label-setting approach is obstructed by the fact that VV2 alone violates subpath optimality: detours through extra zones may pay off later (Euler et al., 2022). To address this, the framework refines dominance using CFN structure.

The ticket set VV3 is partitioned into three classes:

  • VV4, tickets whose reachable subgraph in VV5 is “no-overtaking” and has a Hamiltonian trace;
  • VV6, tickets comparable only by equality;
  • VV7, all others, described as non-comparable (Euler et al., 2022).

Comparability of fare states is then defined as follows. For VV8 and VV9,

AA0

iff AA1, AA2, and:

The strict order AA8 holds if AA9 and either aAa \in A0 or aAa \in A1. The monotonicity condition

aAa \in A2

ensures a weak subpath-optimality (Euler et al., 2022).

Labels are defined as aAa \in A3, with stop aAa \in A4, arrival time aAa \in A5, and fare state aAa \in A6. For an arc aAa \in A7 and label aAa \in A8, the relaxation computes

aAa \in A9

yielding t0t_000. If no existing label at t0t_001 dominates t0t_002 under t0t_003 and t0t_004, the new label is inserted and all labels it dominates are removed (Euler et al., 2022).

The corresponding Multi-Criteria RAPTOR, denoted McRAP in the paper’s detailed description, proceeds in rounds t0t_005 limiting the number of transfers. It maintains bags t0t_006 of undominated labels at stop t0t_007 after t0t_008 boardings, initializes with t0t_009, and alternates route scanning, footpath relaxation, and termination when no new labels are produced (Euler et al., 2022). The simplified pseudo-code in the source captures the label propagation rule: t0t_020 Dominance between labels is defined by common stop, non-worse arrival time, and fare-state comparability, with at least one strict inequality (Euler et al., 2022).

6. Empirical evaluation and practical implications

The reported case study uses the MDV (Leipzig–Halle) network with 56 zones, 17 city-fares, approximately 49k trips, and 7.8k routes. The query set contains 4 964 random origin–destination pairs with departure time 8 am, and the implementation is in C++17 (Euler et al., 2022).

The paper reports three main configurations:

Configuration Main characteristics Reported performance
Full McRAP with CFN Optimizing t0t_010 Average run-time t0t_011 ms; average Pareto labels per query: 3 total, 2.62 truly price-optimal
Price-Based Target Pruning + Fare-Specific Speed-ups Adds pruning of labels already more expensive than best known at destination; ignores irrelevant monoid dimensions per ticket type Run-time down to t0t_012 ms
Restricted Pareto-Sets: Tight-BMRAP Slack t0t_013 min, trip-slack t0t_014; initial earliest-arrival RAPTOR, backward bounds, then pruned McRAP Average run-times t0t_015 ms; standard deviation t0t_016 ms; Pareto-set size t0t_017–t0t_018 journeys

For the unrestricted configuration, the paper notes high variance, and also reports a zone-only figure of approximately t0t_019 s (Euler et al., 2022). The tighter variants rely on two mechanisms named in the source: Price-Based Target Pruning (PTP), which prunes labels already more expensive than the best known at the destination, and Fare-Specific Speed-ups (FSS), which ignore irrelevant monoid dimensions per ticket type. The restricted Pareto-set method, Tight-BMRAP, additionally performs an initial earliest-arrival RAPTOR, computes backward bounds, and then runs a pruned McRAP.

The practical significance lies in the contrast between worst-case hardness and observed query times. The source summarizes that CFNs make it possible to model real-world fare complexity compactly, integrate fare computations into multi-criteria routing via a refined domination relation, and still achieve sub-100 ms queries or better when restricting Pareto sizes, which is described as fast enough for interactive trip-planning applications (Euler et al., 2022).

7. Position within public-transit routing

Within the problem domain of public-transit journey planning, CFNs are introduced as a building block for label-setting multi-objective shortest path algorithms and, specifically, as an adaptation target for a multi-criteria RAPTOR-style search (Euler et al., 2022). Their role is not to replace timetable routing machinery, but to extend it with a fare semantics that is expressive enough to cover combinations of zone-based, distance-based, flat-fare, surcharge, and transfer rules.

The central conceptual contribution is the replacement of naïve fare additivity by structured fare-state evolution. In that sense, the framework addresses a long-standing mismatch between realistic tariff systems and shortest-path formulations. The paper’s refined dominance relation is equally central: because ordinary subpath-optimality fails when future fare interactions matter, comparability is weakened and made ticket-structure dependent rather than purely scalar (Euler et al., 2022).

A plausible implication is that CFNs are best understood as a modeling and algorithm-integration layer rather than as a single fare model. Their importance follows from the combination of three properties established in the source: they can represent a large number of real-world fare structures, they induce NP-hard optimization in general, and yet they admit practically effective query algorithms on a real-world data set (Euler et al., 2022).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Conditional Fare Networks (CFNs).