A route that is short in isolation may contribute to a large concentration of traffic when many vehicles choose it. Assigning routes jointly introduces interactions between decisions that would otherwise be independent. A simple binary quadratic model makes those interactions explicit.

The squared-load objective

Suppose each vehicle has a small set of candidate routes. Let xir select route r for vehicle i, with exactly one route chosen per vehicle. For street segment e, let aeir indicate whether that route traverses it. The segment load is Le = ∑iraeirxir. Minimize ∑e we Le2 for nonnegative weights we. The square makes an extra unit of load more costly on an already busy segment.

Expanding it gives a linear coefficient for each route and a quadratic coefficient of 2 ∑e we aeiraejs for each pair of routes. Two candidate routes for the same vehicle cannot both be selected, so their product is always zero in feasible assignments. The one-route rule can remain an explicit linear constraint.

Here route incidence is binary: a candidate either uses a road link once or does not use it. Each vehicle has at least one eligible route. The squared-load term is a static congestion proxy, distinct from a traffic equilibrium or a hard capacity constraint.

Illustration: standalone Python calculation.

from itertools import product
routes=[[{'a','b'},{'c','d'}],[{'a','b'},{'e','f'}]]
def score(choice):
    paths=[routes[i][j] for i,j in enumerate(choice)]
    return sum(sum(e in p for p in paths)**2 for e in set.union(*paths))
assert score((0,0))==8
assert min(map(score,product(range(2),repeat=2)))==4

The example has two vehicles and two alternatives each. It shows the effect of the congestion proxy without requiring geographic data. Additional travel-time costs can be introduced as route-specific linear terms.

The number of interactions depends on shared segments

The largest computational cost can arise from popular streets. A segment appearing in many candidate routes contributes interactions between many pairs of choices. Before constructing the model, count the routes touching each segment and estimate the number of pairs. Deduplicate interactions that occur on several segments and add their weights. A sparse road graph can produce a dense route-interaction graph.

Design the traffic experiment

Choose a network extract, an origin-destination demand set and a reproducible candidate-generation method. Compare the independent shortest-path assignment, a simple route-changing search and the binary optimization model using the same candidate sets. Recompute segment loads from the selected routes. Report route lengths and concentration of traffic alongside the squared-load objective so that a lower objective can be interpreted.

Traffic equilibrium and dynamic traffic simulation address additional effects such as queues, time-dependent demand and the response of travelers to changing travel times. The binary model is a useful controlled experiment for studying how coordinated choices affect shared capacity.

Explore coupled binary route choices with the 4colors Optimizer for QUBO.