Trait UserModelMeta

Source
pub trait UserModelMeta<Constr: Clone, Var: Clone, Env: LPEnv, Model: LPModel<Constr, Var, Env>> {
    // Required method
    fn get_pattern_vars(&mut self) -> &mut HashMap<ColumnId, Var>;

    // Provided method
    fn callback_before_optimize(
        &mut self,
        lower_bound: f64,
        best_known: &RwLock<(f64, Vec<(f64, ColumnId)>)>,
        model: &mut Model,
    ) { ... }
}
Expand description

Trait to be implemented on ModelMeta data.

Required Methods§

Source

fn get_pattern_vars(&mut self) -> &mut HashMap<ColumnId, Var>

Return the column selection decision variables

Provided Methods§

Source

fn callback_before_optimize( &mut self, lower_bound: f64, best_known: &RwLock<(f64, Vec<(f64, ColumnId)>)>, model: &mut Model, )

Callback that is called just prior to optimizing the LP model Can be used to make custom modifications

Implementors§