pub struct Transition {
pub source_id: i32,
pub target_id: i32,
pub probability: f64,
pub annual_discount_rate_override: Option<f64>,
}Expand description
A single transition in the policy graph, representing a directed edge from one stage to another with an associated probability and optional discount rate override.
Transitions define the stage traversal order for both the forward
and backward passes. In finite horizon mode, transitions form a
linear chain. In cyclic mode, at least one transition creates a
back-edge (source_id >= target_id).
Source: stages.json policy_graph.transitions[].
See Input Scenarios §1.2.
Fields§
§source_id: i32Source stage ID. Must exist in the stage set.
target_id: i32Target stage ID. Must exist in the stage set.
probability: f64Transition probability. Outgoing probabilities from each source must sum to 1.0 (within tolerance).
annual_discount_rate_override: Option<f64>Per-transition annual discount rate override.
When None, the global annual_discount_rate from the
PolicyGraph is used. When Some(r), this rate is converted to
a per-transition factor using the source stage duration:
d = 1 / (1 + r)^dt.
See Discount Rate §3.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more