Public Types | Protected Member Functions | Protected Attributes | List of all members
gtsam::DoglegOptimizer Class Reference

#include <DoglegOptimizer.h>

Inheritance diagram for gtsam::DoglegOptimizer:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< DoglegOptimizershared_ptr
 
- Public Types inherited from gtsam::NonlinearOptimizer
using shared_ptr = boost::shared_ptr< const NonlinearOptimizer >
 

Public Member Functions

Standard interface
 DoglegOptimizer (const NonlinearFactorGraph &graph, const Values &initialValues, const DoglegParams &params=DoglegParams())
 
 DoglegOptimizer (const NonlinearFactorGraph &graph, const Values &initialValues, const Ordering &ordering)
 
Advanced interface
 ~DoglegOptimizer () override
 
GaussianFactorGraph::shared_ptr iterate () override
 
const DoglegParamsparams () const
 
double getDelta () const
 
- Public Member Functions inherited from gtsam::NonlinearOptimizer
virtual const Valuesoptimize ()
 
const ValuesoptimizeSafely ()
 
double error () const
 return error in current optimizer state More...
 
size_t iterations () const
 return number of iterations in current optimizer state More...
 
const Valuesvalues () const
 return values in current optimizer state More...
 
const NonlinearFactorGraphgraph () const
 return the graph with nonlinear factors More...
 
virtual ~NonlinearOptimizer ()
 
virtual VectorValues solve (const GaussianFactorGraph &gfg, const NonlinearOptimizerParams &params) const
 

Protected Member Functions

const NonlinearOptimizerParams_params () const override
 
DoglegParams ensureHasOrdering (DoglegParams params, const NonlinearFactorGraph &graph) const
 
- Protected Member Functions inherited from gtsam::NonlinearOptimizer
void defaultOptimize ()
 
 NonlinearOptimizer (const NonlinearFactorGraph &graph, std::unique_ptr< internal::NonlinearOptimizerState > state)
 

Protected Attributes

DoglegParams params_
 
- Protected Attributes inherited from gtsam::NonlinearOptimizer
NonlinearFactorGraph graph_
 The graph with nonlinear factors. More...
 
std::unique_ptr< internal::NonlinearOptimizerStatestate_
 PIMPL'd state. More...
 

Detailed Description

This class performs Dogleg nonlinear optimization

Definition at line 68 of file DoglegOptimizer.h.

Member Typedef Documentation

Definition at line 74 of file DoglegOptimizer.h.

Constructor & Destructor Documentation

gtsam::DoglegOptimizer::DoglegOptimizer ( const NonlinearFactorGraph graph,
const Values initialValues,
const DoglegParams params = DoglegParams() 
)

Standard constructor, requires a nonlinear factor graph, initial variable assignments, and optimization parameters. For convenience this version takes plain objects instead of shared pointers, but internally copies the objects.

Parameters
graphThe nonlinear factor graph to optimize
initialValuesThe initial variable assignments
paramsThe optimization parameters

Definition at line 65 of file DoglegOptimizer.cpp.

gtsam::DoglegOptimizer::DoglegOptimizer ( const NonlinearFactorGraph graph,
const Values initialValues,
const Ordering ordering 
)

Standard constructor, requires a nonlinear factor graph, initial variable assignments, and optimization parameters. For convenience this version takes plain objects instead of shared pointers, but internally copies the objects.

Parameters
graphThe nonlinear factor graph to optimize
initialValuesThe initial variable assignments

Definition at line 72 of file DoglegOptimizer.cpp.

gtsam::DoglegOptimizer::~DoglegOptimizer ( )
inlineoverride

Virtual destructor

Definition at line 106 of file DoglegOptimizer.h.

Member Function Documentation

const NonlinearOptimizerParams& gtsam::DoglegOptimizer::_params ( ) const
inlineoverrideprotectedvirtual

Access the parameters (base class version)

Implements gtsam::NonlinearOptimizer.

Definition at line 124 of file DoglegOptimizer.h.

DoglegParams gtsam::DoglegOptimizer::ensureHasOrdering ( DoglegParams  params,
const NonlinearFactorGraph graph 
) const
protected

Internal function for computing a COLAMD ordering if no ordering is specified

Definition at line 126 of file DoglegOptimizer.cpp.

double gtsam::DoglegOptimizer::getDelta ( ) const

Access the current trust region radius delta

Definition at line 79 of file DoglegOptimizer.cpp.

GaussianFactorGraph::shared_ptr gtsam::DoglegOptimizer::iterate ( void  )
overridevirtual

Perform a single iteration, returning GaussianFactorGraph corresponding to the linearized factor graph.

Implements gtsam::NonlinearOptimizer.

Definition at line 84 of file DoglegOptimizer.cpp.

const DoglegParams& gtsam::DoglegOptimizer::params ( ) const
inline

Read-only access the parameters

Definition at line 115 of file DoglegOptimizer.h.

Member Data Documentation

DoglegParams gtsam::DoglegOptimizer::params_
protected

Definition at line 71 of file DoglegOptimizer.h.


The documentation for this class was generated from the following files:


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:08