SolverOptions

Struct SolverOptions 

Source
pub struct SolverOptions { /* private fields */ }

Implementations§

Source§

impl SolverOptions

Source

pub fn is_valid(&self, error: Pin<&mut CxxString>) -> bool

Source

pub fn set_minimizer_type(self: Pin<&mut Self>, minimizer_type: MinimizerType)

Source

pub fn set_line_search_direction_type( self: Pin<&mut Self>, line_search_direction_type: LineSearchDirectionType, )

Source

pub fn set_line_search_type( self: Pin<&mut Self>, line_search_type: LineSearchType, )

Source

pub fn set_nonlinear_conjugate_gradient_type( self: Pin<&mut Self>, nonlinear_conjugate_gradient_type: NonlinearConjugateGradientType, )

Source

pub fn set_max_lbfgs_rank(self: Pin<&mut Self>, max_rank: i32)

Source

pub fn set_use_approximate_eigenvalue_bfgs_scaling( self: Pin<&mut Self>, yes: bool, )

Source

pub fn set_line_search_interpolation_type( self: Pin<&mut Self>, line_search_interpolation_type: LineSearchInterpolationType, )

Source

pub fn set_min_line_search_step_size(self: Pin<&mut Self>, step_size: f64)

Source

pub fn set_line_search_sufficient_function_decrease( self: Pin<&mut Self>, sufficient_decrease: f64, )

Source

pub fn set_max_line_search_step_contraction( self: Pin<&mut Self>, max_step_contraction: f64, )

Source

pub fn set_min_line_search_step_contraction( self: Pin<&mut Self>, min_step_contraction: f64, )

Source

pub fn set_max_num_line_search_direction_restarts( self: Pin<&mut Self>, max_num_restarts: i32, )

Source

pub fn set_line_search_sufficient_curvature_decrease( self: Pin<&mut Self>, sufficient_curvature_decrease: f64, )

Source

pub fn set_max_line_search_step_expansion( self: Pin<&mut Self>, max_step_expansion: f64, )

Source

pub fn set_trust_region_strategy_type( self: Pin<&mut Self>, trust_region_strategy_type: TrustRegionStrategyType, )

Source

pub fn set_dogleg_type(self: Pin<&mut Self>, dogleg_type: DoglegType)

Source

pub fn set_use_nonmonotonic_steps(self: Pin<&mut Self>, yes: bool)

Source

pub fn set_max_consecutive_nonmonotonic_steps( self: Pin<&mut Self>, max_consecutive_nonmonotonic_steps: i32, )

Source

pub fn set_max_num_iterations(self: Pin<&mut Self>, max_num_iterations: i32)

Source

pub fn set_max_solver_time_in_seconds( self: Pin<&mut Self>, max_solver_time_in_seconds: f64, )

Source

pub fn set_num_threads(self: Pin<&mut Self>, num_threads: i32)

Source

pub fn set_initial_trust_region_radius( self: Pin<&mut Self>, initial_trust_region_radius: f64, )

Source

pub fn set_max_trust_region_radius( self: Pin<&mut Self>, max_trust_region_radius: f64, )

Source

pub fn set_min_trust_region_radius( self: Pin<&mut Self>, min_trust_region_radius: f64, )

Source

pub fn set_min_relative_decrease( self: Pin<&mut Self>, min_relative_decrease: f64, )

Source

pub fn set_min_lm_diagonal(self: Pin<&mut Self>, min_lm_diagonal: f64)

Source

pub fn set_max_lm_diagonal(self: Pin<&mut Self>, max_lm_diagonal: f64)

Source

pub fn set_max_num_consecutive_invalid_steps( self: Pin<&mut Self>, max_num_consecutive_invalid_steps: i32, )

Source

pub fn set_function_tolerance(self: Pin<&mut Self>, function_tolerance: f64)

Source

pub fn set_gradient_tolerance(self: Pin<&mut Self>, gradient_tolerance: f64)

Source

pub fn set_parameter_tolerance(self: Pin<&mut Self>, parameter_tolerance: f64)

Source

pub fn set_linear_solver_type( self: Pin<&mut Self>, linear_solver_type: LinearSolverType, )

Source

pub fn set_preconditioner_type( self: Pin<&mut Self>, preconditioner_type: PreconditionerType, )

Source

pub fn set_visibility_clustering_type( self: Pin<&mut Self>, visibility_clustering_type: VisibilityClusteringType, )

Source

pub fn set_residual_blocks_for_subset_preconditioner( self: Pin<&mut Self>, residual_blocks: &[SharedPtr<ResidualBlockId>], )

Source

pub fn set_dense_linear_algebra_library_type( self: Pin<&mut Self>, dense_linear_algebra_library_type: DenseLinearAlgebraLibraryType, )

Source

pub fn set_sparse_linear_algebra_library_type( self: Pin<&mut Self>, sparse_linear_algebra_library_type: SparseLinearAlgebraLibraryType, )

Source

pub fn set_logging_type(self: Pin<&mut Self>, logging_type: LoggingType)

Source

pub fn set_minimizer_progress_to_stdout(self: Pin<&mut Self>, yes: bool)

Source

pub fn set_trust_region_minimizer_iterations_to_dump( self: Pin<&mut Self>, iterations_to_dump: &[i32], )

Source

pub fn set_trust_region_problem_dump_directory( self: Pin<&mut Self>, directory: Pin<&CxxString>, )

Source

pub fn set_trust_region_problem_dump_format_type( self: Pin<&mut Self>, trust_region_problem_dump_format_type: DumpFormatType, )

Source

pub fn set_check_gradients(self: Pin<&mut Self>, yes: bool)

Source

pub fn set_gradient_check_relative_precision( self: Pin<&mut Self>, gradient_check_relative_precision: f64, )

Source

pub fn set_gradient_check_numeric_derivative_relative_step_size( self: Pin<&mut Self>, gradient_check_numeric_derivative_relative_step_size: f64, )

Source

pub fn set_update_state_every_iteration(self: Pin<&mut Self>, yes: bool)

Trait Implementations§

Source§

impl ExternType for SolverOptions

Source§

type Kind = Opaque

Source§

type Id

A type-level representation of the type’s C++ namespace and type name. Read more
Source§

impl UniquePtrTarget for SolverOptions

Auto Trait Implementations§

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

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

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.