#[repr(i32)]pub enum RelaxType {
Linear = 0,
Quadratic = 1,
Cardinality = 2,
}Expand description
Type of cost function at feasibility relaxation
Variants§
Linear = 0
The weighted magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i$)
Quadratic = 1
The weighted square of magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i^2$)
Cardinality = 2
The weighted count of bounds and constraint violations ($penalty(s_i) = w_i \cdot [s_i > 0]$)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RelaxType
impl RefUnwindSafe for RelaxType
impl Send for RelaxType
impl Sync for RelaxType
impl Unpin for RelaxType
impl UnwindSafe for RelaxType
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