pub struct Model { /* private fields */ }
Expand description

A CBC MILP model.

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

Implementations

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.

Available on crate feature cbc-310 only.

Primal row solution This function is not available on libcbc < 3.10

Primal column solution

Available on crate feature cbc-310 only.

Dual column solution. This function is not available on libcbc < 3.10.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.