gtopt::SanityOptions struct

Public static variables

static Int default_line_x_min_class_size
static Real default_line_x_outlier_factor
static Real default_line_x_pu_max
static Real default_line_xr_max
static Int default_max_offenders
static Real default_profile_tolerance
static Real default_reward_fail_cost_ratio

Public functions

auto effective_enable() const -> bool noexcept
auto effective_line_x_min_class_size() const -> Int noexcept
auto effective_line_x_outlier_factor() const -> Real noexcept
auto effective_line_x_pu_max() const -> Real noexcept
auto effective_line_xr_max() const -> Real noexcept
auto effective_max_offenders() const -> Int noexcept
auto effective_profile_tolerance() const -> Real noexcept
auto effective_reward_fail_cost_ratio() const -> Real noexcept
void merge(const SanityOptions& other) noexcept

Public variables

OptBool enable
Master switch. Unset = enabled.
OptInt line_x_min_class_size
OptReal line_x_outlier_factor
OptReal line_x_pu_max
OptReal line_xr_max
OptInt max_offenders
Number of top offenders named in each summary line. Default 5.
OptReal profile_tolerance
OptReal reward_fail_cost_ratio

Variable documentation

OptInt gtopt::SanityOptions::line_x_min_class_size

Minimum number of lines in a kV class before the outlier test runs (a median of two lines says nothing). Default 5.

OptReal gtopt::SanityOptions::line_x_outlier_factor

A line whose |X|/V² differs from the median of its kV class by more than this factor (either direction) is flagged as an impedance outlier. Default 50.

OptReal gtopt::SanityOptions::line_x_pu_max

Reactance in per-unit on a 100 MVA base (100·|X|/V², lines with a known kV only) above this value is flagged as implausible. Default 5.0 p.u.

OptReal gtopt::SanityOptions::line_xr_max

|X| / R above this value is flagged (lines with R > 0). Default 100.

OptReal gtopt::SanityOptions::profile_tolerance

Slack on the per-unit profile range check: values outside [-tol, 1 + tol] are flagged. Default 1e-6.

OptReal gtopt::SanityOptions::reward_fail_cost_ratio

A water-right reward (FlowRight.uvalue > 0, fcost < 0, the global hydro_use_value) above ratio × demand fail cost is flagged as a phantom reward: the LP would rather shed load than forgo the reward. Default 1.0.