nhra_gt.domain.stability¶
System Stability and Hysteresis Metrics.
Utilities for calculating phase space area and recovery times.
Classes¶
Functions¶
analyze_cost_shifting_stability(intensities, pressures, efficiency_gap=0.2)
¶
Performs a grid search to map stability regions of the Cost Shifting game.
Source code in src/nhra_gt/domain/stability.py
calculate_hysteresis_area(x, y)
¶
Calculates the area of the hysteresis loop in phase-space using the Shoelace formula.
A larger area indicates greater system lag or inertia in responding to demand shocks.
Source code in src/nhra_gt/domain/stability.py
calculate_recovery_metrics(modes)
¶
Calculates system resilience metrics based on mode transitions.