nhra_gt.agent_logic¶
Logical Utility Functions for NHRA Agents.
This module defines the utility functions used by LHNs and Jurisdictions to evaluate their strategic choices. These functions are designed to be JAX-compatible and differentiable.
Classes¶
AgentWeights
¶
Preference weights for agent utility functions.
Attributes:
| Name | Type | Description |
|---|---|---|
ramping_penalty |
float
|
Weight on ED pressure/ramping. |
nwau_utility |
float
|
Weight on generated revenue. |
cost_disutility |
float
|
Weight on operational costs. |
shifting_penalty |
float
|
Friction for switching activity streams. |
capacity_inertia_weight |
float
|
Cost of changing capacity targets. |
vfi_disutility |
float
|
State-level penalty for fiscal imbalance. |
kpi_satisfaction |
float
|
State-level benefit from LHN performance. |
Source code in src/nhra_gt/agent_logic.py
Functions¶
beartype(fn)
¶
lhn_utility(pressure, revenue, cost, is_shifting, delta_target_capacity, weights)
¶
Utility for the LHN Agent. Prioritizes minimizing ramping (pressure) and maximizing net revenue. Ramping penalty is non-linear (squared) to reflect political sensitivity. Inertia penalty discourages rapid target oscillations.
Source code in src/nhra_gt/agent_logic.py
state_utility(fiscal_gap, lhn_performance, weights)
¶
Utility for the State Agent. Focuses on minimizing fiscal gaps (VFI) and maintaining LHN performance.