Registry / utility / ceres
library2.2.0vcpkgunverified

Ceres Solver is a library for modeling and solving large, complicated optimization problems, particularly non-linear least squares.

vcpkg install ceres
INSTALL
IMPORT
SIG · CERES
C
ceres
utilitycppv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ceres/ceres.h
#include <ceres/ceres.h>

Solves a simple non-linear least squares problem minimizing (10 - x)^2.

#include <ceres/ceres.h> #include <iostream> struct CostFunctor { template <typename T> bool operator()(const T* const x, T* residual) const { residual[0] = T(10.0) - x[0]; return true; } }; int main() { double x = 0.5; ceres::Problem problem; problem.AddResidualBlock(new ceres::AutoDiffCostFunction<CostFunctor, 1, 1>(new CostFunctor), nullptr, &x); ceres::Solver::Options options; options.minimizer_progress_to_stdout = true; ceres::Solver::Summary summary; ceres::Solve(options, &problem, &summary); std::cout << "Final x = " << x << std::endl; return 0; }
Debug
Known issues
gotchaCeres requires linking against multiple dependencies (Eigen, gflags, glog, SuiteSparse) which may not be automatically handled by vcpkg.
fix
Ensure all required dependencies are installed via vcpkg (e.g., eigen3, gflags, glog, suitesparse) and link them in your CMakeLists.txt.
affects: *
Upgrade
Version history
2.2.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources

No resource links recorded.

ceres — pip install ceres · libregistry