pub enum InflowNonNegativityMethod {
None,
Truncation,
Penalty,
TruncationWithPenalty,
}Expand description
Method string for inflow non-negativity enforcement.
Accepted values in config.json → modeling.inflow_non_negativity.method:
"none"— no enforcement; PAR(p) inflows may be negative."truncation"— clamp negative PAR(p) inflows to zero before LP patching."penalty"— add slack columns withinflow_nonnegativity_costobjective coefficient (sourced frompenalties.json → hydro.inflow_nonnegativity_cost)."truncation_with_penalty"— combine both: clamp noise and add slack columns.
Variants§
None
No inflow non-negativity enforcement.
Truncation
Truncation-based enforcement only (no slack columns).
Penalty
Penalty-based enforcement via slack columns.
Objective coefficient is penalties.json → hydro.inflow_nonnegativity_cost.
TruncationWithPenalty
Combined truncation and penalty enforcement.
Trait Implementations§
Source§impl Clone for InflowNonNegativityMethod
impl Clone for InflowNonNegativityMethod
Source§fn clone(&self) -> InflowNonNegativityMethod
fn clone(&self) -> InflowNonNegativityMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InflowNonNegativityMethod
Source§impl Debug for InflowNonNegativityMethod
impl Debug for InflowNonNegativityMethod
Source§impl Default for InflowNonNegativityMethod
impl Default for InflowNonNegativityMethod
Source§fn default() -> InflowNonNegativityMethod
fn default() -> InflowNonNegativityMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InflowNonNegativityMethod
impl<'de> Deserialize<'de> for InflowNonNegativityMethod
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InflowNonNegativityMethod
impl StructuralPartialEq for InflowNonNegativityMethod
Auto Trait Implementations§
impl Freeze for InflowNonNegativityMethod
impl RefUnwindSafe for InflowNonNegativityMethod
impl Send for InflowNonNegativityMethod
impl Sync for InflowNonNegativityMethod
impl Unpin for InflowNonNegativityMethod
impl UnsafeUnpin for InflowNonNegativityMethod
impl UnwindSafe for InflowNonNegativityMethod
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more