pub enum ExprClass {
Linear,
Quadratic,
Nonlinear,
}Expand description
Highest-degree polynomial class an expression belongs to, ignoring constant folding. Used by backends to pick between linear, quadratic, and general nonlinear translation paths.
Variants are ordered by increasing degree, so max of two classes yields the
dominating one (e.g. a model with a quadratic objective and a nonlinear
constraint is Nonlinear).
Variants§
Trait Implementations§
impl Copy for ExprClass
impl Eq for ExprClass
Source§impl Ord for ExprClass
impl Ord for ExprClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ExprClass
impl PartialOrd for ExprClass
impl StructuralPartialEq for ExprClass
Auto Trait Implementations§
impl Freeze for ExprClass
impl RefUnwindSafe for ExprClass
impl Send for ExprClass
impl Sync for ExprClass
impl Unpin for ExprClass
impl UnsafeUnpin for ExprClass
impl UnwindSafe for ExprClass
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