Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Resource envelopes

Also known as level envelopes

validation resource-timeline

A resource envelope bounds the level of a resource over every schedule that the start windows of a flexible plan allow. At each tick, the lower envelope is the lowest level that any schedule can reach and the upper envelope the highest. The verdict is Safe (every schedule stays inside the limits), Possible (some schedule may break a limit) or Certain (every schedule breaks it). For independent windows, the sum of each activity's own extremes gives the tightest envelope. When precedences ("this start comes at least so long after that one") link activities, one minimum cut in a flow graph gives their joint extreme exactly; with rates or uncertain durations this holds only within a node budget, and above it the result stays safe but may report a false alarm.

Pseudocode

algorithm Envelope-Check(T, ACTS)input: timeline T with fixed impacts and limits, flexible activities a with start windows [e_a, l_a]output: Safe, or Possible or Certain with the tick and the activities involvedfirst ← nilfor each t in evaluation-ticks(T, ACTS) do      ▷ every shape change and the tick beforelo, hi ← level(T, t), level(T, t)for each a in ACTS not linked by a precedence dolo ← lo + min of profile(a, u) over u in [t − l_a, t − e_a]hi ← hi + max of profile(a, u) over u in [t − l_a, t − e_a]lo ← lo + coupled-extreme(t, min)             ▷ closure or layered minimum cuthi ← hi + coupled-extreme(t, max)for each limit [min, max] that applies at t doif lo > max or hi < min thenreturn Certain(t)                         ▷ every schedule breaks itif first = nil and (lo < min or hi > max) thenfirst ← t                                 ▷ some schedule may break itif first = nil thenreturn Safereturn Possible(first)

In the crates

  • resource-timeline feature alloc

    Bounds the level over every schedule the start windows admit, with uncertain durations and precedences coupled exactly by a minimum cut.

    EnvelopeStateEnvelope

Lineage

Comes from

combines Layered minimum cut for convex priors (Ishikawa 2003)

combines Floyd-Warshall

Led to

Nothing on this site.

Papers

  1. Computing the Envelope for Stepwise-Constant Resource Allocations Nicola Muscettola · 2002· CP 2002, Lecture Notes in Computer Science introduces doi 10.1007/3-540-46135-3_10