Constrained shortest path
Also known as Resource-constrained shortest path
search multiobjective-search
The constrained shortest path is the path with the lowest first cost whose second cost (a resource, such as fuel or delay) stays within a budget. The crate solves it with the pruning of BOA*: it expands paths in lexicographic order of f = g + h, drops a path when f2 is above the budget, and drops a path when an earlier path at the same state had a second cost no larger. The first goal path that it expands is optimal, and among equal first costs it has the smallest second cost. It returns nothing when no path fits the budget. The heuristic must be consistent in both costs and zero on every goal.
Pseudocode
algorithm Constrained-shortest-path(s₀, goal, h, b)input: start state s₀, goal test goal, heuristic h consistent in both costs, budget boutput: the path with the least first cost among those with second cost ≤ b, or failureif h₂(s₀) > b thenreturn failureg2-min[s] ← ∞ for every state sOPEN ← {⟨s₀, (0, 0)⟩} ▷ ordered by f = g + h, lexicographicallywhile OPEN ≠ ∅ do⟨s, g⟩ ← extract-min(OPEN)if g₂ ≥ g2-min[s] thencontinue ▷ an earlier path here was no dearer in g₂g2-min[s] ← g₂if goal(s) thenreturn path-to(s, g) ▷ no open path is cheaper in the first costfor each (s′, c) in successors(s) dog′ ← g + cif g′₂ < g2-min[s′] and g′₂ + h₂(s′) ≤ b theninsert(OPEN, ⟨s′, g′⟩, g′ + h(s′))return failureIn the crates
multiobjective-searchThe cheapest path whose second cost stays within a budget, solved by BOA*'s pruning with the budget as an extra bound.
Lineage
Comes from
builds on BOA*
Led to
Nothing on this site.
Papers
- Multiobjective Path Problems and Algorithms in Telecommunication Network Design—Overview and Trends José Craveirinha, João Clímaco, Rita Girão-Silva, Marta Pascoal · 2024· Algorithms