Questions tagged [ceres-solver]

ceres-solver is an open source C++ library for modeling and solving large, complicated optimization problems.

Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.

  • Non-linear Least Squares problems with bounds constraints.
  • General unconstrained optimization problems.
103 questions
2
votes
1 answer

How do I combine transforms in the ceres solver?

I have two parameters transformations as input to my Ceres cost function. They are both transforms that are to be combined, in order to reproject my points. Both transforms are given in the form of a Rodrigues rotation vector, and a translation…
MM.
  • 4,224
  • 5
  • 37
  • 74
2
votes
1 answer

Can I solve a system of non-linear equations with Google Ceres Solver?

Google Ceres Solver solves robustified non-linear bounds constrained least squares problems. Can I use a non-linear least squares solver to find the solutions of a system of non-linear equations? From Wikipedia: "The method of least squares is a…
Pietro
  • 12,086
  • 26
  • 100
  • 193
1
vote
0 answers

How to correctly model a specific optimization problem in Ceres Solver to avoid assert errors?

I'm trying to solve the following optimization problem with Ceres Solver: minimize Φ Where Φ = ||T/tmax||∞ Subject to: TᵀB T <= 0 ||G(J)ᵀT+w||² = 0 -Tmax <= T <= Tmax with cost function gradient: ∇Φ = tᵢ / tmax; if tᵢ = tmax or 0…
1
vote
2 answers

Cannot find identifiers when compiling android project in visual studio

I successfully generated a visual studio project with Android ndk. Now I am trying to compile such project (by simply opening the solution and the building the BUILD_ALL project). The line I used to compile is the following (I am trying to build…
user8469759
  • 2,522
  • 6
  • 26
  • 50
1
vote
0 answers

vcpkg : How to install ceres-solver in windows

I tried to install ceres-solver from vcpkg. Relevant libraries(ex:glog) has been installed, but I cannot install ceres with this log. Fatal error: internal/ceres/CMakeFiles/ceres_internal.dir/covariance_impl.cc.obj: file too big I think I could add…
kou
  • 11
  • 1
1
vote
0 answers

How to estimate parameter uncertainty using Ceres Solver?

I am using Ceres Solver to perform non-linear curve fits on small data sets. Following the examples I am able to generate perfectly reasonable fit parameters for models that match my data well. I am also trying to compute the parameter variances and…
1
vote
1 answer

Cmake find_package does not detect path in windows

I am trying to build the ceres sovler using Cmake_gui and Visual Studio I have ceres-solver cloned to E:\Code\libs\ceres-solver and the required library Eigen3 cloned to E:\Code\libs\eigen-3.3.9 When I run cmake-gui on ceres-solver, I get the…
Mich
  • 3,188
  • 4
  • 37
  • 85
1
vote
1 answer

Eigen Matrix Assignment Operator with User-Defined Data Types

I am using the Eigen matrix library to deal with matrices of std::complex data types, where T is either of type double or of type ceres::Jet. Eigen documentation indicates that << is the correct operator to use for assignment, but it…
maksel
  • 120
  • 8
1
vote
1 answer

Ceres-Solver: Is there a way to get the value of a Jet as double inside the cost function?

as stated above I want to know if there is a way to access the double value Ceres uses as a parameter inside the cost function? struct CostFunctor { CostFunctor() {}; template bool operator()(const T* parameters, T* residual) const { …
Quirlight
  • 41
  • 5
1
vote
1 answer

Ceres solver number of parameters question

I write a functor like this: class Functor { ... static CostFunction* create() { return new AutoDiffCostFunction(new Functor()); } ... } I call it like: std::vector params(N_PARAMS,…
1
vote
1 answer

Why is CartographerROS install stopping with this "Failed to find Ceres" error?

I am trying to install CartographerROS on Ubuntu 20.04. I have installed ROS Noetic, and followed the instructions for installing CartographerROS here:…
Michael Kossin
  • 342
  • 3
  • 14
1
vote
0 answers

Ceres-solver Cmake compilation issues with helloworld.cc

I've been working on implementing ceres-solver. To check that I've done it right, Ive been testing out the helloworld.cc file that is given on the Ceres website. However when I run the program, I get a lengthy error (shown at the bottom) I've looked…
Sydney
  • 11
  • 1
1
vote
1 answer

Ceres-solver giving wrong results for trilateraion

I'm trying to use google's ceres solver (http://ceres-solver.org/) to calculate non-linear least squares trilateration (goal is indoor positioning with BLE beacons). My problem is that CERES gives results which have a significant error and comparing…
1
vote
0 answers

how to use cubic interpolation in ceres solver

It’s my first time to use ceres to optimize my project, i know it not very well. wenn I follow example to write my project, it is not compilable. here is my code and my error (black one)and the code what i found in Gitlab(white one). u,v is pixel…
ubdmf
  • 11
  • 2
1
vote
1 answer

Implementation of ceres solver for an objective function within a class

I am a beginner to Ceres (have been looking into it for little under a week) and am trying to implement to use the ceres solver to solve a cost function that I have within a class. Below is the sample version of my code and I have trouble getting…
MSK
  • 448
  • 2
  • 5
  • 18