pub struct ModelingConfig {
pub inflow_non_negativity: InflowNonNegativityConfig,
pub cost_scale_factor: Option<f64>,
}Expand description
Modeling options (config.json → modeling).
Fields§
§inflow_non_negativity: InflowNonNegativityConfigStrategy for handling non-negative inflow constraints.
cost_scale_factor: Option<f64>Divisor applied to every non-theta objective coefficient at template
build time, multiplied back at every cost-domain reporting boundary.
Default 1_000_000.0 — the value every golden parity baseline is pinned at.
Objective conditioning only — results are identical in exact arithmetic;
this does not alter the model, unlike modeling’s other fields. The
effective dual tolerance in currency units is
dual_feasibility_tolerance × this factor: raising the factor without
lowering dual_feasibility_tolerance proportionally loosens optimality
in currency terms even though the configured tolerance value is
unchanged — the inverse-direction trap a name cannot carry.
Absent uses the default. Must be finite and > 0; a value outside
[1.0, 1e12] is accepted but logs an advisory warning.
Trait Implementations§
Source§impl Clone for ModelingConfig
impl Clone for ModelingConfig
Source§fn clone(&self) -> ModelingConfig
fn clone(&self) -> ModelingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelingConfig
impl Debug for ModelingConfig
Source§impl Default for ModelingConfig
impl Default for ModelingConfig
Source§fn default() -> ModelingConfig
fn default() -> ModelingConfig
Source§impl<'de> Deserialize<'de> for ModelingConfig
impl<'de> Deserialize<'de> for ModelingConfig
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>,
Auto Trait Implementations§
impl Freeze for ModelingConfig
impl RefUnwindSafe for ModelingConfig
impl Send for ModelingConfig
impl Sync for ModelingConfig
impl Unpin for ModelingConfig
impl UnsafeUnpin for ModelingConfig
impl UnwindSafe for ModelingConfig
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
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<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> ⓘ
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> ⓘ
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