pub struct Settings { /* private fields */ }
Expand description
The settings used when initialising a solver.
Implementations§
Source§impl Settings
impl Settings
Sourcepub fn scaling(self, value: Option<u32>) -> Settings
pub fn scaling(self, value: Option<u32>) -> Settings
Sets the number of heuristic data scaling iterations.
If None
scaling is disabled.
Panics on 32-bit platforms if the value is above i32::max_value()
.
Sourcepub fn adaptive_rho(self, value: bool) -> Settings
pub fn adaptive_rho(self, value: bool) -> Settings
Enables choosing rho adaptively.
Sourcepub fn adaptive_rho_interval(self, value: Option<u32>) -> Settings
pub fn adaptive_rho_interval(self, value: Option<u32>) -> Settings
Sets the number of iterations between rho adaptations.
If None
it is automatic.
Panics on 32-bit platforms if the value is above i32::max_value()
.
Sourcepub fn adaptive_rho_tolerance(self, value: f64) -> Settings
pub fn adaptive_rho_tolerance(self, value: f64) -> Settings
Sets the tolerance for adapting rho.
The new rho has to be value
times larger or 1/value
times smaller than the current rho to
trigger a new factorization.
Sourcepub fn adaptive_rho_fraction(self, value: f64) -> Settings
pub fn adaptive_rho_fraction(self, value: f64) -> Settings
Set the interval for adapting rho as a fraction of the setup time.
Sourcepub fn max_iter(self, value: u32) -> Settings
pub fn max_iter(self, value: u32) -> Settings
Sets the maximum number of ADMM iterations.
Panics on 32-bit platforms if the value is above i32::max_value()
.
Sourcepub fn eps_prim_inf(self, value: f64) -> Settings
pub fn eps_prim_inf(self, value: f64) -> Settings
Sets the primal infeasibility tolerance.
Sourcepub fn eps_dual_inf(self, value: f64) -> Settings
pub fn eps_dual_inf(self, value: f64) -> Settings
Sets the dual infeasibility tolerance.
Sourcepub fn linsys_solver(self, value: LinsysSolver) -> Settings
pub fn linsys_solver(self, value: LinsysSolver) -> Settings
Sets the linear system solver to use.
Sourcepub fn polish_refine_iter(self, value: u32) -> Settings
pub fn polish_refine_iter(self, value: u32) -> Settings
Sets the number of iterative refinement steps to use when polishing.
Panics on 32-bit platforms if the value is above i32::max_value()
.
Sourcepub fn scaled_termination(self, value: bool) -> Settings
pub fn scaled_termination(self, value: bool) -> Settings
Enables scaled termination criteria.
Sourcepub fn check_termination(self, value: Option<u32>) -> Settings
pub fn check_termination(self, value: Option<u32>) -> Settings
Sets the number of ADMM iterations between termination checks.
If None
termination checking is disabled.
Panics on 32-bit platforms if the value is above i32::max_value()
.
Sourcepub fn warm_start(self, value: bool) -> Settings
pub fn warm_start(self, value: bool) -> Settings
Enables warm starting the primal and dual variables from the previous solution.
Sourcepub fn time_limit(self, value: Option<Duration>) -> Settings
pub fn time_limit(self, value: Option<Duration>) -> Settings
Sets the solve time limit.