Struct coin_cbc::raw::Model[][src]

pub struct Model { /* fields omitted */ }

A CBC MILP model.

Their methods are a direct translation from the C API. For documentation, see the official API documentation.

Implementations

impl Model[src]

pub fn new() -> Self[src]

pub fn version() -> &'static str[src]

pub fn load_problem(
    &mut self,
    numcols: usize,
    numrows: usize,
    start: &[c_int],
    index: &[c_int],
    value: &[f64],
    collb: Option<&[f64]>,
    colub: Option<&[f64]>,
    obj: Option<&[f64]>,
    rowlb: Option<&[f64]>,
    rowub: Option<&[f64]>
)
[src]

pub fn read_mps(&mut self, filename: &CStr)[src]

pub fn write_mps(&self, filename: &CStr)[src]

pub fn set_initial_solution(&mut self, sol: &[f64])[src]

pub fn num_elements(&self) -> usize[src]

pub fn vector_starts(&self) -> &[c_int][src]

pub fn indices(&self) -> &[c_int][src]

pub fn elements(&self) -> &[f64][src]

pub fn max_name_length(&self) -> usize[src]

pub fn num_rows(&self) -> usize[src]

pub fn num_cols(&self) -> usize[src]

pub fn set_obj_sense(&mut self, sense: Sense)[src]

pub fn obj_sense(&self) -> Sense[src]

pub fn row_lower(&self) -> &[f64][src]

pub fn set_row_lower(&mut self, i: usize, value: f64)[src]

pub fn row_upper(&self) -> &[f64][src]

pub fn set_row_upper(&mut self, i: usize, value: f64)[src]

pub fn obj_coefficients(&self) -> &[f64][src]

pub fn set_obj_coeff(&mut self, i: usize, value: f64)[src]

pub fn col_lower(&self) -> &[f64][src]

pub fn set_col_lower(&mut self, i: usize, value: f64)[src]

pub fn col_upper(&self) -> &[f64][src]

pub fn set_col_upper(&mut self, i: usize, value: f64)[src]

pub fn is_integer(&self, i: usize) -> bool[src]

pub fn set_continuous(&mut self, i: usize)[src]

pub fn set_integer(&mut self, i: usize)[src]

pub fn add_sos(
    &self,
    row_starts: &[c_int],
    col_indices: &[c_int],
    weights: &[f64],
    sos_type: SOSConstraintType
)
[src]

Adds multiple SOS constraints num_rows: the number of SOS constraints to add row_starts: The indices at which each new constraint starts in the col_indices array, plus one last element that indicates the size of col_indices array. col_indices: The index of each variable to include in the constraints. You create this array by concatenating the indices of the columns in each constraint.

pub fn print_model(&self, arg_prefix: &CStr)[src]

pub fn set_parameter(&mut self, name: &CStr, value: &CStr)[src]

pub fn solve(&mut self) -> c_int[src]

pub fn sum_primal_infeasibilities(&self) -> f64[src]

pub fn number_primal_infeasibilities(&self) -> c_int[src]

pub fn check_solution(&mut self)[src]

pub fn iteration_count(&self) -> c_int[src]

pub fn is_abandoned(&self) -> bool[src]

pub fn is_proven_optimal(&self) -> bool[src]

pub fn is_proven_infeasible(&self) -> bool[src]

pub fn is_continuous_unbounded(&self) -> bool[src]

pub fn is_node_limit_reached(&self) -> bool[src]

pub fn is_seconds_limit_reached(&self) -> bool[src]

pub fn is_solution_limit_reached(&self) -> bool[src]

pub fn is_initial_solve_abandoned(&self) -> bool[src]

pub fn is_initial_solve_proven_optimal(&self) -> bool[src]

pub fn is_initial_solve_proven_primal_infeasible(&self) -> bool[src]

pub fn row_activity(&self) -> &[f64][src]

pub fn col_solution(&self) -> &[f64][src]

pub fn obj_value(&self) -> f64[src]

pub fn best_possible_value(&self) -> f64[src]

pub fn print_solution(&self)[src]

pub fn status(&self) -> Status[src]

pub fn secondary_status(&self) -> SecondaryStatus[src]

Trait Implementations

impl Clone for Model[src]

impl Default for Model[src]

impl Drop for Model[src]

Auto Trait Implementations

impl RefUnwindSafe for Model

impl !Send for Model

impl !Sync for Model

impl Unpin for Model

impl UnwindSafe for Model

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.