Enum grb::prelude::RelaxType [−][src]
#[repr(i32)]
pub enum RelaxType {
Linear,
Quadratic,
Cardinality,
}
Expand description
Type of cost function at feasibility relaxation
Variants
The weighted magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i$)
The weighted square of magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i^2$)
The weighted count of bounds and constraint violations ($penalty(s_i) = w_i \cdot [s_i > 0]$)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RelaxType
impl UnwindSafe for RelaxType
Blanket Implementations
Mutably borrows from an owned value. Read more