Ceres Solver
Ceres Solver 是 Google 發展的開源 C++ 大規模最佳化程式庫,可求解含邊界限制的非線性最小平方問題與一般無約束最佳化。官方版本歷史說明其於 2010 年開始開發、2012 年 5 月開源釋出,並提供軟體引用格式(無 DOI)。本站收錄的 Cioffi 等人的連續與離散時間比較即以其 Levenberg-Marquardt 與自動微分求解。
本頁內容
Ceres Solver is Google's open-source C++ library for bounded nonlinear least squares and unconstrained optimization, released in May 2012 and cited via a software citation without DOI.
技術屬性
欄位內容為文獻擷取紀錄的原文用語(英文),以原文為據;「未查證」表示本站尚未讀到該資訊,不代表該方法不具備此能力。
| 感測輸入 | 未記錄 |
|---|---|
| 原文測試平台 | 未記錄 |
| 狀態估計 | robustified, bounds-constrained nonlinear least squares and general unconstrained optimization: trust-region solvers (Levenberg-Marquardt with exact or inexact steps, traditional and subspace Dogleg, optional non-monotonic steps and inner iterations generalizing Ruhe and Wedin's Algorithm II) and line-search solvers (steepest descent, nonlinear CG, BFGS, LBFGS with Armijo or strong Wolfe line search); linear solvers DENSE_QR, DENSE_NORMAL_CHOLESKY, SPARSE_NORMAL_CHOLESKY, CGNR, DENSE_SCHUR, SPARSE_SCHUR and ITERATIVE_SCHUR, plus a Schur power series expansion (Power Bundle Adjustment) that is enabled through ITERATIVE_SCHUR options rather than as a separate solver type; preconditioners JACOBI, SCHUR_JACOBI, CLUSTER_JACOBI, CLUSTER_TRIDIAGONAL, SUBSET and SCHUR_POWER_SERIES_EXPANSION; AMD or nested-dissection fill-reducing orderings; optional mixed-precision Cholesky solves with iterative refinement; automatic, numeric (forward, central, Ridders) and analytic derivatives; loss functions (Trivial, Huber, SoftLOne, Cauchy, Arctan, Tolerant, Tukey, plus composed and scaled losses); Manifold parameterizations (Euclidean, Subset, Product, Quaternion, EigenQuaternion, Sphere, Line, AutoDiff); covariance estimation by SPARSE_QR or DENSE_SVD |
| 資料關聯 | 不適用 |
| 時間表示 | 不適用 |
| 去畸變 | 不適用 |
| 迴圈閉合 | 不適用 |
| 全域最佳化 | 不適用 |
| 地圖表示 | 不適用 |
| 先驗資訊 | 不適用 |
| 可輸出幾何 | 不適用 |
| 計算需求 | C++ library; version 2.2.0 requires a C++17 compiler and CMake 3.16 or later, uses C++ threads for multithreading (Solver::Options::num_threads, default 1) and can use CUDA on NVIDIA GPUs for dense solvers and CGNR, although installation.html still describes CUDA support as limited to the dense solvers; runs on Linux, Windows, macOS, Android and iOS |
使用設備
尚未收錄此方法的設備紀錄;設備資料仍在分批查證,沒有紀錄不代表原文未使用任何設備。
優勢、限制與查核補充
以下各點包括文獻擷取紀錄及本站查核補充。原文主張與本站分析請依各點的來源、定位及查核範圍區分;原式或數值的核對不等於完整實驗重現。
優勢
- 功能豐富且成熟的函式庫,自 2010 年起在 Google 用於正式生產環境(README)。
- 自動、數值與解析導數可任意組合混用(features.html)。
- 提供以 Schur 補為基礎的稠密、稀疏與迭代線性求解器,用於光束法平差,並可進行大規模的共變異數估計(features.html)。
- 自述在 Mondragon 與 Borchers 所用的 NIST 問題集上為表現最佳的求解器(features.html;此處未經獨立驗證)。
- 附有讀取 g2o 格式檔案的二維與三維位姿圖 SLAM 範例,方向以角度流形或 EigenQuaternionManifold 表示(nnls_tutorial.html, Other Examples)。
- 官方使用者清單列出 SLAM 與感測器融合用途:Project Tango 的光束法平差與 SLAM、Willow Garage 的 SLAM、ETH Zurich ASL 對視覺、慣性、GPS 與輪式里程計資料的大規模最佳化,以及 COLMAP、Theia 與 OpenMVG 中的光束法平差(users.html)。
- 可計算解的共變異數中選定的區塊,且 DENSE_SVD 可處理秩虧的 Jacobian(nnls_covariance.html)。
限制
- 未找到以 DOI 為基礎的典藏紀錄;引用須依賴 CITATION.cff 或網站提供的 bibtex(依所查來源推論)。
- 求得的是局部極小值;文件指出,一般而言有效率的全域極小化在計算上難以處理(nnls_solving.html, Introduction)。
- 2.2.0 版移除了 LocalParameterization(由 Manifold 取代),並停止提供 OpenMP、NO_THREADING 與 CX_SPARSE 後端,因此較舊的整合可能需要修改(version_history.html)。
- 文件對 Google 開始用於正式生產的年份說法不一致(index 與 README 為 2010 年,features.html 為 2011 年)。
- 參數僅支援上界與下界限制,不支援一般的等式或不等式約束(modeling_faqs.html)。
- 線搜尋最小化器無法處理邊界約束;Dogleg 僅能搭配以精確分解為基礎的線性求解器;CGNR 或 ITERATIVE_SCHUR 會使 Levenberg-Marquardt 改採非精確步(nnls_solving.html)。
- SPARSE_QR 的共變異數計算在 Jacobian 秩虧時會失敗,DENSE_SVD 僅適用於小型至中型問題;運動恢復結構中的規範(gauge)模糊性須另行處理(nnls_covariance.html)。
- 數值微分在外圍空間中擾動參數,因此擾動後的點可能離開流形,例如單位四元數(nnls_modeling.html)。
營建工程相關證據
未在營建場域驗證;官方使用者清單提到 Matterport 以 Ceres 進行三維點雲全域對齊與位姿圖最佳化(users.html),此類室內掃描用途與營建紀錄的關聯屬推論。
報告的性能數據
性能數據仍在分批查證,目前尚未收錄此方法的報告值。
來源
Agarwal et al., 2023
(2023)Ceres SolverSoftware (GitHub ceres-solver/ceres-solver; ceres-solver.org), version 2.2 (CITATION.cff date-released 2023-10-13)
軟體或資料集紀錄已讀全文公式與數值:全面查核未完成經典查證後修正
程式碼:https://github.com/ceres-solver/ceres-solver(授權:Official license page: New BSD (3-clause) for Ceres itself; the repository LICENSE file reproduces the BSD text followed by the full Apache-2.0 text and an MIT notice for libmv-derived example code; CITATION.cff and website bibtex list Apache-2.0. State 'BSD (per ceres-solver.org/license.html)' and note the Apache-2.0 metadata discrepancy)。有公開程式碼不等於已被重現,也不代表目前版本與論文版本相同。