Struct totsu::prelude::SolverParam
source · pub struct SolverParam<F>where
F: Float,{
pub max_iter: Option<usize>,
pub eps_acc: F,
pub eps_inf: F,
pub eps_zero: F,
pub log_period: usize,
}
Expand description
Solver parameters.
Fields§
§max_iter: Option<usize>
Max iteration number of first-order algorithm. None
means no upper limit.
eps_acc: F
Tolerance of the primal residual, dual residual and duality gap.
eps_inf: F
Tolerance of the unboundness and infeasibility.
eps_zero: F
Tolerance of small positive value to avoid division by zero.
log_period: usize
Period of iterations to output progress log(for debug/trace level).
Trait Implementations§
source§impl<F> Clone for SolverParam<F>where
F: Clone + Float,
impl<F> Clone for SolverParam<F>where
F: Clone + Float,
source§fn clone(&self) -> SolverParam<F>
fn clone(&self) -> SolverParam<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F> Default for SolverParam<F>where
F: Float,
impl<F> Default for SolverParam<F>where
F: Float,
source§fn default() -> SolverParam<F>
fn default() -> SolverParam<F>
Returns the “default value” for a type. Read more
source§impl<F> PartialEq<SolverParam<F>> for SolverParam<F>where
F: PartialEq<F> + Float,
impl<F> PartialEq<SolverParam<F>> for SolverParam<F>where
F: PartialEq<F> + Float,
source§fn eq(&self, other: &SolverParam<F>) -> bool
fn eq(&self, other: &SolverParam<F>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.