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 * [s_i > 0])

Trait Implementations

impl Clone for RelaxType
[src]

fn clone(&self) -> RelaxType

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for RelaxType
[src]

impl Debug for RelaxType
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Into<i32> for RelaxType
[src]

fn into(self) -> i32

Performs the conversion.