pub struct SolverOptionsBuilder(_);

Implementations§

source§

impl SolverOptionsBuilder

source

pub fn new() -> Self

source

pub fn build(self) -> Result<SolverOptions, SolverOptionsBuildingError>

source

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

source

pub fn is_valid(&self) -> bool

source

pub fn set_line_search_direction_type(
&mut self,
line_search_direction_type: LineSearchDirectionType
)

source

pub fn set_line_search_type(&mut self, line_search_type: LineSearchType)

source

pub fn set_nonlinear_conjugate_gradient_type(
&mut self,
nonlinear_conjugate_gradient_type: NonlinearConjugateGradientType
)

source

pub fn set_max_lbfgs_rank(&mut self, max_rank: i32)

source

pub fn set_use_approximate_eigenvalue_bfgs_scaling(&mut self, yes: bool)

source

pub fn set_line_search_interpolation_type(
&mut self,
line_search_interpolation_type: LineSearchInterpolationType
)

source

pub fn set_min_line_search_step_size(&mut self, step_size: f64)

source

pub fn set_line_search_sufficient_function_decrease(
&mut self,
sufficient_decrease: f64
)

source

pub fn set_max_line_search_step_contraction(&mut self, max_step_contraction: f64)

source

pub fn set_min_line_search_step_contraction(&mut self, min_step_contraction: f64)

source

pub fn set_max_num_line_search_direction_restarts(
&mut self,
max_num_restarts: i32
)

source

pub fn set_line_search_sufficient_curvature_decrease(
&mut self,
sufficient_curvature_decrease: f64
)

source

pub fn set_max_line_search_step_expansion(&mut self, max_step_expansion: f64)

source

pub fn set_trust_region_strategy_type(
&mut self,
trust_region_strategy_type: TrustRegionStrategyType
)

source

pub fn set_dogleg_type(&mut self, dogleg_type: DoglegType)

source

pub fn set_use_nonmonotonic_steps(&mut self, yes: bool)

source

pub fn set_max_consecutive_nonmonotonic_steps(
&mut self,
max_consecutive_nonmonotonic_steps: i32
)

source

pub fn set_max_num_iterations(&mut self, max_num_iterations: i32)

source

pub fn set_max_solver_time_in_seconds(&mut self, max_solver_time_in_seconds: f64)

source

pub fn set_num_threads(&mut self, num_threads: i32)

source

pub fn set_initial_trust_region_radius(
&mut self,
initial_trust_region_radius: f64
)

source

pub fn set_max_trust_region_radius(&mut self, max_trust_region_radius: f64)

source

pub fn set_min_trust_region_radius(&mut self, min_trust_region_radius: f64)

source

pub fn set_min_relative_decrease(&mut self, min_relative_decrease: f64)

source

pub fn set_min_lm_diagonal(&mut self, min_lm_diagonal: f64)

source

pub fn set_max_lm_diagonal(&mut self, max_lm_diagonal: f64)

source

pub fn set_max_num_consecutive_invalid_steps(
&mut self,
max_num_consecutive_invalid_steps: i32
)

source

pub fn set_function_tolerance(&mut self, function_tolerance: f64)

source

pub fn set_gradient_tolerance(&mut self, gradient_tolerance: f64)

source

pub fn set_parameter_tolerance(&mut self, parameter_tolerance: f64)

source

pub fn set_linear_solver_type(&mut self, linear_solver_type: LinearSolverType)

source

pub fn set_preconditioner_type(
&mut self,
preconditioner_type: PreconditionerType
)

source

pub fn set_visibility_clustering_type(
&mut self,
visibility_clustering_type: VisibilityClusteringType
)

source

pub fn set_residual_blocks_for_subset_preconditioner(
&mut self,
residual_blocks: &[ResidualBlockId]
)

source

pub fn set_dense_linear_algebra_library_type(
&mut self,
dense_linear_algebra_library_type: DenseLinearAlgebraLibraryType
)

source

pub fn set_sparse_linear_algebra_library_type(
&mut self,
sparse_linear_algebra_library_type: SparseLinearAlgebraLibraryType
)

source

pub fn set_logging_type(&mut self, logging_type: LoggingType)

source

pub fn set_minimizer_progress_to_stdout(&mut self, yes: bool)

source

pub fn set_trust_region_minimizer_iterations_to_dump(
&mut self,
iterations_to_dump: &[i32]
)

source

pub fn set_trust_region_problem_dump_directory(
&mut self,
directory: impl AsRef<Path>
)

source

pub fn set_trust_region_problem_dump_format_type(
&mut self,
trust_region_problem_dump_format_type: DumpFormatType
)

source

pub fn set_check_gradients(&mut self, yes: bool)

source

pub fn set_gradient_check_relative_precision(
&mut self,
gradient_check_relative_precision: f64
)

source

pub fn set_gradient_check_numeric_derivative_relative_step_size(
&mut self,
gradient_check_numeric_derivative_relative_step_size: f64
)

source

pub fn set_update_state_every_iteration(&mut self, yes: bool)

Trait Implementations§

source§

impl Default for SolverOptionsBuilder

source§

fn default() -> Self

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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, U> TryFrom<U> for Twhere
U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.