pub struct IndicatorConstraintHandle<'a> { /* private fields */ }Expand description
Model-bound handle returned by a scalar indicator declaration.
Implementations§
Source§impl IndicatorConstraintHandle<'_>
impl IndicatorConstraintHandle<'_>
Source§impl IndicatorConstraintHandle<'_>
impl IndicatorConstraintHandle<'_>
Sourcepub fn to_reformulated_model(
self,
options: IndicatorReformulationOptions,
) -> Result<ReformulatedModel, ReformulationError>
pub fn to_reformulated_model( self, options: IndicatorReformulationOptions, ) -> Result<ReformulatedModel, ReformulationError>
Clone the model and replace this active indicator with Big-M rows.
§Errors
Returns a reformulation error if the body, bounds, or options are invalid.
Sourcepub fn reformulate(
self,
options: IndicatorReformulationOptions,
) -> Result<Option<IndicatorReformulationArtifacts>, ReformulationError>
pub fn reformulate( self, options: IndicatorReformulationOptions, ) -> Result<Option<IndicatorReformulationArtifacts>, ReformulationError>
Replace this indicator in place. Returns None when it is already inactive.
§Errors
Returns an error before mutation if the selected indicator is invalid.
Trait Implementations§
Source§impl<'a> Clone for IndicatorConstraintHandle<'a>
impl<'a> Clone for IndicatorConstraintHandle<'a>
impl<'a> Copy for IndicatorConstraintHandle<'a>
Source§impl Debug for IndicatorConstraintHandle<'_>
impl Debug for IndicatorConstraintHandle<'_>
Source§impl From<IndicatorConstraintHandle<'_>> for IndicatorConstraintId
impl From<IndicatorConstraintHandle<'_>> for IndicatorConstraintId
Source§fn from(value: IndicatorConstraintHandle<'_>) -> Self
fn from(value: IndicatorConstraintHandle<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for IndicatorConstraintHandle<'a>
impl<'a> !Send for IndicatorConstraintHandle<'a>
impl<'a> !Sync for IndicatorConstraintHandle<'a>
impl<'a> !UnwindSafe for IndicatorConstraintHandle<'a>
impl<'a> Freeze for IndicatorConstraintHandle<'a>
impl<'a> Unpin for IndicatorConstraintHandle<'a>
impl<'a> UnsafeUnpin for IndicatorConstraintHandle<'a>
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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