cbc_cut_callback

Type Alias cbc_cut_callback 

Source
pub type cbc_cut_callback = Option<unsafe extern "C" fn(osiSolver: *mut c_void, osiCuts: *mut c_void, appdata: *mut c_void)>;
Expand description

typedef for cbc cut callback osiSolver needs to be an OsiSolverInterface object, osiCuts is an OsiCuts object and appdata is a pointer that will be passed to the cut generation, you can use it to point to a data structure with information about the original problem, for instance

Aliased Type§

pub enum cbc_cut_callback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void))

Some value of type T.