gtsam 4.1.1
gtsam
GaussNewtonOptimizer.h
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2
3 * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4 * Atlanta, Georgia 30332-0415
5 * All Rights Reserved
6 * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8 * See LICENSE for the license information
9
10 * -------------------------------------------------------------------------- */
11
19#pragma once
20
22
23namespace gtsam {
24
25class GaussNewtonOptimizer;
26
30class GTSAM_EXPORT GaussNewtonParams : public NonlinearOptimizerParams {
31public:
33};
34
38class GTSAM_EXPORT GaussNewtonOptimizer : public NonlinearOptimizer {
39
40protected:
41 GaussNewtonParams params_;
42
43public:
46
55 GaussNewtonOptimizer(const NonlinearFactorGraph& graph, const Values& initialValues,
56 const GaussNewtonParams& params = GaussNewtonParams());
57
65 GaussNewtonOptimizer(const NonlinearFactorGraph& graph, const Values& initialValues,
66 const Ordering& ordering);
68
71
74
79 GaussianFactorGraph::shared_ptr iterate() override;
80
82 const GaussNewtonParams& params() const { return params_; }
83
85
86protected:
88 const NonlinearOptimizerParams& _params() const override { return params_; }
89
91 GaussNewtonParams ensureHasOrdering(GaussNewtonParams params, const NonlinearFactorGraph& graph) const;
92
93};
94
95}
Base class and parameters for nonlinear optimization algorithms.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28
Definition: Ordering.h:34
boost::shared_ptr< This > shared_ptr
shared_ptr to this class
Definition: GaussianFactorGraph.h:75
Parameters for Gauss-Newton optimization, inherits from NonlinearOptimizationParams.
Definition: GaussNewtonOptimizer.h:30
This class performs Gauss-Newton nonlinear optimization.
Definition: GaussNewtonOptimizer.h:38
const GaussNewtonParams & params() const
Read-only access the parameters.
Definition: GaussNewtonOptimizer.h:82
~GaussNewtonOptimizer() override
Virtual destructor.
Definition: GaussNewtonOptimizer.h:73
const NonlinearOptimizerParams & _params() const override
Access the parameters (base class version)
Definition: GaussNewtonOptimizer.h:88
A non-linear factor graph is a graph of non-Gaussian, i.e.
Definition: NonlinearFactorGraph.h:78
This is the abstract interface for classes that can optimize for the maximum-likelihood estimate of a...
Definition: NonlinearOptimizer.h:75
The common parameters for Nonlinear optimizers.
Definition: NonlinearOptimizerParams.h:34
A non-templated config holding any types of Manifold-group elements.
Definition: Values.h:63