Files
ceres-solver/docs/source/features.rst
T

96 lines
4.4 KiB
ReStructuredText
Raw Normal View History

2022-01-24 11:39:21 -08:00
.. default-domain:: cpp
.. cpp:namespace:: ceres
2016-11-21 22:37:46 -08:00
====
Why?
====
2014-04-16 23:40:12 -07:00
.. _chapter-features:
* **Code Quality** - Ceres Solver has been used in production at
2014-10-02 16:16:26 -07:00
Google for more than four years now. It is clean, extensively tested
and well documented code that is actively developed and supported.
2014-04-16 23:40:12 -07:00
* **Modeling API** - It is rarely the case that one starts with the
exact and complete formulation of the problem that one is trying to
solve. Ceres's modeling API has been designed so that the user can
easily build and modify the objective function, one term at a
time. And to do so without worrying about how the solver is going to
deal with the resulting changes in the sparsity/structure of the
2014-10-02 16:16:26 -07:00
underlying problem.
2014-04-16 23:40:12 -07:00
- **Derivatives** Supplying derivatives is perhaps the most tedious
and error prone part of using an optimization library. Ceres
ships with `automatic`_ and `numeric`_ differentiation. So you
never have to compute derivatives by hand (unless you really want
to). Not only this, Ceres allows you to mix automatic, numeric and
analytical derivatives in any combination that you want.
- **Robust Loss Functions** Most non-linear least squares problems
involve data. If there is data, there will be outliers. Ceres
2014-10-02 16:16:26 -07:00
allows the user to *shape* their residuals using a
:class:`LossFunction` to reduce the influence of outliers.
2014-04-16 23:40:12 -07:00
- **Manifolds** In many cases, some parameters lie on a manifold
other than Euclidean space, e.g., rotation matrices. In such
cases, the user can specify the geometry of the local tangent
space by specifying a :class:`Manifold` object.
2014-04-16 23:40:12 -07:00
* **Solver Choice** Depending on the size, sparsity structure, time &
memory budgets, and solution quality requirements, different
2014-04-16 23:40:12 -07:00
optimization algorithms will suit different needs. To this end,
2014-10-02 16:16:26 -07:00
Ceres Solver comes with a variety of optimization algorithms:
2014-04-16 23:40:12 -07:00
- **Trust Region Solvers** - Ceres supports Levenberg-Marquardt,
Powell's Dogleg, and Subspace dogleg methods. The key
computational cost in all of these methods is the solution of a
linear system. To this end Ceres ships with a variety of linear
solvers - dense QR and dense Cholesky factorization (using
2022-02-14 21:37:40 -08:00
`Eigen`_, `LAPACK`_ or `CUDA`_) for dense problems, sparse
2022-12-19 18:24:54 +03:00
Cholesky factorization (`SuiteSparse`_, `Apple's Accelerate`_, `Eigen`_)
for large sparse problems, custom Schur complement based dense,
sparse, and iterative linear solvers for `bundle adjustment`_
problems.
2014-04-16 23:40:12 -07:00
- **Line Search Solvers** - When the problem size is so large that
storing and factoring the Jacobian is not feasible or a low
accuracy solution is required cheaply, Ceres offers a number of
line search based algorithms. This includes a number of variants
of Non-linear Conjugate Gradients, BFGS and LBFGS.
2014-10-02 16:16:26 -07:00
* **Speed** - Ceres Solver has been extensively optimized, with C++
2022-12-19 18:24:54 +03:00
templating, hand written linear algebra routines and modern C++ threads
based multithreading of the Jacobian evaluation and the linear solvers.
2014-04-16 23:40:12 -07:00
2022-02-14 21:37:40 -08:00
* **GPU Acceleration** If your system supports `CUDA`_ then Ceres
Solver can use the Nvidia GPU on your system to speed up the solver.
2014-10-02 16:16:26 -07:00
* **Solution Quality** Ceres is the `best performing`_ solver on the NIST
2014-04-16 23:40:12 -07:00
problem set used by Mondragon and Borchers for benchmarking
non-linear least squares solvers.
* **Covariance estimation** - Evaluate the sensitivity/uncertainty of
the solution by evaluating all or part of the covariance
2020-05-24 16:08:52 +08:00
matrix. Ceres is one of the few solvers that allows you to do
2014-04-16 23:40:12 -07:00
this analysis at scale.
* **Community** Since its release as an open source software, Ceres
has developed an active developer community that contributes new
features, bug fixes and support.
* **Portability** - Runs on *Linux*, *Windows*, *Mac OS X*, *Android*
*and iOS*.
* **BSD Licensed** The BSD license offers the flexibility to ship your
application
2014-10-02 16:16:26 -07:00
.. _best performing: https://groups.google.com/forum/#!topic/ceres-solver/UcicgMPgbXw
2014-04-16 23:40:12 -07:00
.. _bundle adjustment: http://en.wikipedia.org/wiki/Bundle_adjustment
.. _SuiteSparse: http://www.cise.ufl.edu/research/sparse/SuiteSparse/
.. _Eigen: http://eigen.tuxfamily.org/
.. _LAPACK: http://www.netlib.org/lapack/
.. _automatic: http://en.wikipedia.org/wiki/Automatic_differentiation
.. _numeric: http://en.wikipedia.org/wiki/Numerical_differentiation
2022-02-14 21:37:40 -08:00
.. _CUDA : https://developer.nvidia.com/cuda-toolkit
.. _Apple's Accelerate: https://developer.apple.com/documentation/accelerate/sparse_solvers