#[non_exhaustive]pub struct SolveOptions {
pub time_limit: Option<Duration>,
pub node_limit: Option<u64>,
pub mip_gap: f64,
pub int_tol: f64,
pub warm_start: Option<Vec<(Variable, f64)>>,
pub tolerances: Tolerances,
}Expand description
Options controlling a solve. Construct with SolveOptions::default and
mutate the fields you need.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_limit: Option<Duration>Wall-clock budget for this call (None = unlimited). On expiry the search
stops cleanly and can be resumed.
node_limit: Option<u64>Maximum number of branch & bound nodes to solve in this call
(None = unlimited). Deterministic alternative to time_limit; the
budget applies per call, so each resume gets a fresh budget.
The root relaxation does not count as a node.
mip_gap: f64Relative MIP gap at which the search stops and reports Status::Optimal.
Must be finite and non-negative. Default 0.0 (prove exact optimality).
int_tol: f64Integrality tolerance: a value within this distance of an integer counts
as integral. Default 1e-6. Loosening it does not loosen final
feasibility: a rounded candidate must still pass the absolute
tolerances.feasibility per-row/bound check (default 1e-7) before it
is accepted, so a very loose int_tol mainly causes extra exact-fixing
branching rather than admitting an infeasible point. Must be finite and
in the half-open range [0, 0.5).
warm_start: Option<Vec<(Variable, f64)>>Optional (partial) starting assignment used to seed the incumbent.
Advisory: an infeasible or incomplete hint is ignored. Default None.
tolerances: TolerancesExpert-level numeric tolerances (see Tolerances). Most callers
should leave this at Tolerances::default; override an individual
field only once you understand the correctness/permissiveness
trade-off documented on it.
Trait Implementations§
Source§impl Clone for SolveOptions
impl Clone for SolveOptions
Source§fn clone(&self) -> SolveOptions
fn clone(&self) -> SolveOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more