Enum gurobi::RelaxType [−][src]
pub enum RelaxType { Linear, Quadratic, Cardinality, }
Type of cost function at feasibility relaxation
Variants
Linear
The weighted magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i$)
Quadratic
The weighted square of magnitude of bounds and constraint violations ($penalty(s_i) = w_i s_i^2$)
Cardinality
The weighted count of bounds and constraint violations ($penalty(s_i) = w_i \cdot [s_i > 0]$)
Trait Implementations
impl Debug for RelaxType
[src]
impl Debug for RelaxType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for RelaxType
[src]
impl Copy for RelaxType
impl Clone for RelaxType
[src]
impl Clone for RelaxType
fn clone(&self) -> RelaxType
[src]
fn clone(&self) -> RelaxType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Into<i32> for RelaxType
[src]
impl Into<i32> for RelaxType