Function soco::model::data_center::safe_balancing
source · [−]pub fn safe_balancing(
x: N64,
total_load: N64,
f: impl Fn() -> IntermediateResult
) -> IntermediateResult
Expand description
Ensures that $x$ is greater than zero and handles edge cases appropriately.