pub struct Presolve {
pub fix_variables: bool,
pub remove_redundant: bool,
pub tighten_bounds: bool,
pub remove_singletons: bool,
pub max_rounds: usize,
}Expand description
Presolve techniques to simplify problems before solving
Fields§
§fix_variables: boolRemove fixed variables
remove_redundant: boolRemove redundant constraints
tighten_bounds: boolTighten variable bounds
remove_singletons: boolRemove singleton constraints
max_rounds: usizeMaximum number of presolve rounds
Implementations§
Source§impl Presolve
impl Presolve
Sourcepub fn apply(&self, problem: &Problem) -> ProblemResult<PresolveResult>
pub fn apply(&self, problem: &Problem) -> ProblemResult<PresolveResult>
Applies presolve techniques to the problem
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Presolve
impl RefUnwindSafe for Presolve
impl Send for Presolve
impl Sync for Presolve
impl Unpin for Presolve
impl UnwindSafe for Presolve
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more