Skip to main content

NativeOptions

Struct NativeOptions 

Source
pub struct NativeOptions {
Show 121 fields pub time_limit_seconds: Option<f64>, pub node_limit: Option<u64>, pub mip_relative_gap: Option<f64>, pub mip_absolute_gap: Option<f64>, pub iteration_limit: Option<u64>, pub pivot_tolerance: f64, pub dual_tolerance: f64, pub max_factor_entries: usize, pub refactor_interval: usize, pub adaptive_refactor: bool, pub basis_update: BasisUpdate, pub factor_pivot_search: usize, pub factor_ordering: FactorOrdering, pub steepest_edge: bool, pub presolve: bool, pub redundant_rows: bool, pub redundant_row_min_ratio: f64, pub node_reoptimization: bool, pub strong_branching: bool, pub reliability_branching: bool, pub reliability_threshold: u32, pub reliability_max_probes: u64, pub reduced_cost_fixing: bool, pub mixed_fix_trials: usize, pub proof_conflict_limit: usize, pub choice_tree_cut_interval: u64, pub choice_tree_cut_limit: usize, pub branch_probe_score: bool, pub branch_probe_proofs: bool, pub root_probe_limit: usize, pub dive_node_limit: usize, pub estimated_diving: bool, pub repair_integral_leaves: bool, pub dual_cutoff_interval: u64, pub root_cut_delay: usize, pub root_cut_gap: f64, pub root_cut_progress: f64, pub cutoff_pseudocosts: bool, pub branch_probe_pivot_share: u64, pub branch_probe_actual_work: bool, pub mixed_fix_depth: usize, pub mixed_root_rounds: usize, pub root_refit_sweeps: usize, pub root_refit_fraction: f64, pub choice_route_depth: usize, pub choice_pair_depth: usize, pub choice_local_depth: usize, pub choice_local_rounds: usize, pub safe_node_pruning: bool, pub choice_order_presolve: bool, pub incumbent_heuristic: bool, pub rational_certification: bool, pub feasibility_jump: bool, pub feasibility_jump_steps: u64, pub local_mip_effort: u64, pub local_mip_seed: u64, pub objective_lattice: bool, pub decompose: bool, pub decomposition_min_variables: usize, pub component_threads: usize, pub component_parallel_min_entries: usize, pub root_cuts: bool, pub root_separation: bool, pub mip_presolve: bool, pub integer_equality_presolve: bool, pub objective_cutoff_bounds: bool, pub adaptive_root: bool, pub coefficient_tightening: bool, pub dual_presolve: bool, pub mip_presolve_rounds: usize, pub gmi_cuts: bool, pub mir_cuts: bool, pub mip_cut_rounds: usize, pub mip_cut_limit: usize, pub cut_exact_work: u64, pub root_heuristics: bool, pub grouped_heuristics: bool, pub ordered_group_cuts: bool, pub choice_mass_rounds: usize, pub choice_route_passes: usize, pub choice_route_restarts: usize, pub heuristic_lp_calls: usize, pub branching_score: String, pub pseudocost_min_step: f64, pub branch_trace_limit: usize, pub root_cut_rounds: usize, pub cover_lifting: bool, pub root_propagation: bool, pub mixed_propagation: bool, pub singleton_presolve: bool, pub avoid_dominant_components: bool, pub devex: bool, pub adaptive_pricing: bool, pub factor_replay: bool, pub mip_diagnostics: bool, pub mip_trace_limit: usize, pub packing_root: bool, pub packing_root_iterations: usize, pub packing_root_work: u64, pub packing_neighborhoods: usize, pub packing_neighborhood_size: usize, pub packing_workers: usize, pub packing_neighborhood_nodes: u64, pub packing_cuts: bool, pub packing_cut_work: u64, pub packing_combine_repairs: bool, pub packing_rounds: usize, pub packing_neighborhood_growth: usize, pub packing_seed_strategy: String, pub packing_residual_cliques: bool, pub packing_clique_work: u64, pub packing_price_diagnostics: bool, pub packing_repair_seconds: Option<f64>, pub packing_proof_seconds: Option<f64>, pub partial_dual_bounds: bool, pub scalable_branching: bool, pub branch_probe_candidates: usize, pub branch_probe_pivots: u64, pub branch_probe_work: u64, pub tree_threads: usize, pub tree_split_depth: usize,
}
Expand description

Native controls.

Fields§

§time_limit_seconds: Option<f64>

Whole-call cooperative wall-time limit, including conversion/checks.

§node_limit: Option<u64>

Number of LP relaxations processed in a MIP.

§mip_relative_gap: Option<f64>

Relative MIP gap limit, |incumbent-bound|/|incumbent|; off by default. Zero retains a complete solve. Ignored for continuous LPs.

§mip_absolute_gap: Option<f64>

Absolute MIP gap limit in original objective units; off by default.

§iteration_limit: Option<u64>

Total simplex iterations across the solve, including all MIP nodes.

§pivot_tolerance: f64

Smallest pivot-row entry accepted by the scaled dual ratio test.

§dual_tolerance: f64

Independent relative duality and dual-sign acceptance threshold.

§max_factor_entries: usize

Cap on stored LU and eta entries of one basis factorization.

§refactor_interval: usize

Maximum basis updates before rebuilding LU; excessive eta fill rebuilds sooner.

§adaptive_refactor: bool

Rebuild large dense bases using accumulated update-work estimates.

§basis_update: BasisUpdate

Basis-update strategy; auto adapts to observed update and factor fill.

§factor_pivot_search: usize

Markowitz candidates examined after a feasible pivot is found (1..=64).

§factor_ordering: FactorOrdering

Optional bounded minimum-degree advice for sparse pivot selection.

§steepest_edge: bool

Dual steepest-edge pricing; false prices by largest infeasibility.

§presolve: bool

Drop free rows and feasible empty rows before simplex.

§redundant_rows: bool

Also drop rows whose activity over the root box is conservatively feasible.

§redundant_row_min_ratio: f64

Scan row redundancy only when m/n reaches this threshold; zero forces scanning.

§node_reoptimization: bool

Reoptimize branch-and-bound children from the parent basis.

§strong_branching: bool

Bounded root lookahead on eligible multi-constraint MIPs.

§reliability_branching: bool

Bounded early-node probes until directional pseudocosts are reliable.

§reliability_threshold: u32§reliability_max_probes: u64§reduced_cost_fixing: bool

Fix integer bound values using conservative opposite-domain dual bounds.

§mixed_fix_trials: usize

Maximum opposite-branch certificates at a shallow mixed MIP node. Zero preserves the baseline reduced-cost fixing policy.

§proof_conflict_limit: usize

Maximum stored binary clauses proved from dual cutoffs.

§choice_tree_cut_interval: u64

Search-node interval between global mining separation attempts.

§choice_tree_cut_limit: usize

Total global mining cuts separated below the shallow tree.

§branch_probe_score: bool

Rank strong-branch candidates using their pseudocosts.

§branch_probe_proofs: bool

Keep verified child bounds and infeasibility proofs from strong branching.

§root_probe_limit: usize

Maximum incumbent-opposite LP probes after root separation.

§dive_node_limit: usize

Return to the best-bound queue after this many consecutive dive nodes.

§estimated_diving: bool

Prefer the child with the smaller estimated directional gain.

§repair_integral_leaves: bool

Repair rejected rounded leaves or preserve their remaining search domains.

§dual_cutoff_interval: u64

Check a likely verified cutoff after this many warm simplex pivots. Zero disables it.

§root_cut_delay: usize

Number of mining rounds before the first generic separation round.

§root_cut_gap: f64

Skip generic root cuts when the certified absolute gap is at most this value.

§root_cut_progress: f64

Relative improvement that resets the root separation stagnation counter.

§cutoff_pseudocosts: bool

Record a direction observation when a warm LP produces a safe cutoff.

§branch_probe_pivot_share: u64

Add one probe pivot per this many other pivots. Replaces the maximum probe count when positive.

§branch_probe_actual_work: bool

Charge spent probe pivots rather than their reservation.

§mixed_fix_depth: usize

Last depth for mixed reduced-cost fixing. Zero admits every depth.

§mixed_root_rounds: usize

Root reoptimization rounds after incumbent-preserving mixed fixings.

§root_refit_sweeps: usize

Revisit the root dual when the content of the certified incumbent improves.

§root_refit_fraction: f64

Minimum improvement as a fraction of the initial root gap.

§choice_route_depth: usize

Propagate chronological and fuel support below this depth, 0 disables it.

§choice_pair_depth: usize

Propagate epoch, sign and mass intervals below this depth, 0 disables it.

§choice_local_depth: usize

Check additional mass cuts in a separate LP below this depth.

§choice_local_rounds: usize

Limit a shallow node’s mass separation to this many rounds.

§safe_node_pruning: bool

Certify a likely node cutoff before accepting its primal relaxation.

§choice_order_presolve: bool

Tighten mining pairs whose clock order follows from choice precedence.

§incumbent_heuristic: bool

Independently checked rounding and bounded unit-move incumbents.

§rational_certification: bool

Exact rational fixed-integer boundary witnesses, bounded by dimension/bit caps.

§feasibility_jump: bool

Bounded serial root Feasibility Jump prototype.

§feasibility_jump_steps: u64§local_mip_effort: u64

Coefficient visits for an experimental tight-move search at the serial MIP root. Zero disables it. The local wall limit is 250 ms, including setup.

§local_mip_seed: u64

Reproducible sampling and tie breaking for LocalMIP.

§objective_lattice: bool

Tighten conservative bounds to a verified integral objective lattice.

§decompose: bool

Split independent restricted-row components before solving.

§decomposition_min_variables: usize

Skip graph discovery below this variable count.

§component_threads: usize

Maximum workers for independent components, 1 through 16.

§component_parallel_min_entries: usize

Solve components serially unless their average size (nonzeros plus rows plus columns) reaches this value; zero forces workers.

§root_cuts: bool

Add bounded exact binary cover cuts before building LP caches.

§root_separation: bool

LP-directed root cover separation, rebuilding caches before search.

§mip_presolve: bool

MIP root presolve: bounded exact/outward bound propagation, probing on binaries, and removal of rows the box proves redundant (rows are freed, not renumbered). Keeps every feasible point. On by default.

§integer_equality_presolve: bool

Bounded residue propagation on certified short integer equalities.

§objective_cutoff_bounds: bool

Allow a certified incumbent to supply finite bounds for MIP admission. Requires presolve and root propagation.

§adaptive_root: bool

Choose bounded root separation for general MIPs.

§coefficient_tightening: bool

Exact big-M coefficient tightening on unfixed binary columns of one-sided rows; keeps every integer-feasible point. On by default.

§dual_presolve: bool

Objective-directed fixing of empty and singleton columns. Preserves an optimum, not the feasible set.

§mip_presolve_rounds: usize

Presolve passes, 0 through 32.

§gmi_cuts: bool

Gomory mixed-integer root cuts, derived exactly from advisory optimal-tableau rows.

§mir_cuts: bool

Mixed-integer rounding root cuts on model rows, with exact variable-upper-bound substitution.

§mip_cut_rounds: usize

Root cut rounds for GMI/MIR, 0 through 50. Rounds also stop after three with under 0.1% objective change.

§mip_cut_limit: usize

Cuts selected per round, 1 through 64.

§cut_exact_work: u64

Exact-arithmetic work per separation round, in charged limb operations, at most 100,000,000. Also bounds coefficient tightening.

§root_heuristics: bool

Checked root rounding, guided diving and L1 feasibility-pump projections. Their LPs never supply bounds.

§grouped_heuristics: bool

Bounded LP-guided sub-MIPs for disjoint exactly-one binary groups.

§ordered_group_cuts: bool

Add incompatibility cliques from comparisons of exactly-one group values.

§choice_mass_rounds: usize

Bounded root rounds for verified absolute differences of one-hot choices.

§choice_route_passes: usize

Incumbent improvement passes over recognized chains of one-hot choices.

§choice_route_restarts: usize

Number of deterministic route orders in the incumbent heuristic.

§heuristic_lp_calls: usize

LP solves the root heuristics may use, 0 through 128.

§branching_score: String

Pseudocost score: weighted_sum (0.8 min + 0.2 max, the default) or product.

§pseudocost_min_step: f64

Floor on the branching step when normalizing pseudocost gains, in 0..=0.5; zero keeps the unclamped gain.

§branch_trace_limit: usize

Branching decisions recorded in diagnostics.branch_trace, 0 through 256.

§root_cut_rounds: usize

LP-directed cover separation rounds for root_separation, 0 through 4.

§cover_lifting: bool

Lift the covers found by root_separation.

§root_propagation: bool

Infer sound mixed MIP root bounds before finite-domain admission.

§mixed_propagation: bool

Conservative node propagation for finite mixed/nonintegral rows.

§singleton_presolve: bool

Remove exactly reversible singleton rows before factorization.

§avoid_dominant_components: bool

Keep large near-monolithic models in a single numerical solve.

§devex: bool

Use bounded Devex-style approximate weights instead of exact DSE maintenance.

§adaptive_pricing: bool

Choose column pricing for dense BTRAN support when estimated work is lower.

§factor_replay: bool

Replay validated numerical pivots for identical basis signatures.

§mip_diagnostics: bool

Collect bounded observational MIP search diagnostics in backend metadata.

§mip_trace_limit: usize

Maximum retained search events (0 means summaries only, at most 4096).

§packing_root: bool

Greedy incumbent plus a factorization-free primal-dual root pass whose prices give a checked upper bound. Also enables the packing driver.

§packing_root_iterations: usize

First-order root steps, at most 100000.

§packing_root_work: u64

Root work cap in matrix/vector units, 2*nnz+4*n+4*m per step.

§packing_neighborhoods: usize

Residual repair tasks per round, at most 4096; positive enables the packing driver.

§packing_neighborhood_size: usize

Maximum columns per residual, 4..=1024.

§packing_workers: usize

Residual workers, 1..=16. Fixed-work results do not depend on it.

§packing_neighborhood_nodes: u64

Node ceiling per residual task, at most 100000.

§packing_cuts: bool

Hint-directed triangle and odd-cycle cuts before the proof search.

§packing_cut_work: u64

Edge-visit cap of that separator, at most 100000000.

§packing_combine_repairs: bool

Merge compatible improving repairs of one snapshot batch.

§packing_rounds: usize

Repair rounds, 1..=32; packing_neighborhoods * packing_rounds <= 4096.

§packing_neighborhood_growth: usize

Extra residual columns per round, at most 1024 (capacity saturates at 1024).

§packing_seed_strategy: String

Repair seeds: "incumbent", "rejected" or "mixed".

§packing_residual_cliques: bool

Local clique cuts inside each residual before it is solved.

§packing_clique_work: u64

Operation cap of the local clique separator per task, at most 1000000.

§packing_price_diagnostics: bool

Report the best checked root prices as diagnostics.packing_root_prices.

§packing_repair_seconds: Option<f64>

Wall-time cap of the repair phase (finite, nonnegative; 0 skips it).

§packing_proof_seconds: Option<f64>

Wall-time cap of the exact search after repairs (finite, nonnegative; 0 skips it and returns time_limit).

§partial_dual_bounds: bool

Conservative bound from current prices of an interrupted simplex solve.

§scalable_branching: bool

Reliability probing on a bounded shortlist, without the old size gate.

§branch_probe_candidates: usize

Shortlist size of scalable probing, 1..=16.

§branch_probe_pivots: u64

Pivots reserved per probe direction, at most 1024.

§branch_probe_work: u64

Cumulative probe-work reservation per serial search, at most 1e10.

§tree_threads: usize

Workers for the disjoint binary frontier, 1..=16 (1 disables it).

§tree_split_depth: usize

Frontier depth, at most 8: 2^depth disjoint subtrees (0 disables it).

Implementations§

Source§

impl NativeOptions

Source

pub fn has_gap_limit(&self) -> bool

Validate settings before cancellation or numerical work. Whether a positive gap limit requests early MIP termination.

Source

pub fn validate(&self) -> Result<()>

Trait Implementations§

Source§

impl Clone for NativeOptions

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NativeOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NativeOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for NativeOptions

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NativeOptions

Auto Trait Implementations§

§

impl Forget for NativeOptions

§

impl Freeze for NativeOptions
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for NativeOptions

§

impl RefUnwindSafe for NativeOptions

§

impl Send for NativeOptions
where RawVecInner: Send,

§

impl Sync for NativeOptions
where RawVecInner: Sync,

§

impl Unpin for NativeOptions
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for NativeOptions

§

impl UnwindSafe for NativeOptions
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.