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
0
votes
0 answers

can't disable ceres solver's output [miniglog]

I'm using ceres solver for a project, and when I call the ceres::Solve function, the library starts to output lines such as this one: CHOLMOD version 3.0.11, May 4, 2016: Symbolic Analysis: status: OK Architecture: Linux sizeof(int): 4 …
Ace_Run
  • 1
  • 1
0
votes
0 answers

How do I compile a CMake project with a specific version of Eigen?

I am trying to build Ceres 1.13, which requires Eigen 3.3.7. Unfortunately the version of eigen that comes with Ubuntu 22.10 (via apt) is 3.4.0, which is not compatible. I've downloaded Eigen 3.3.7, but I can't figure out how to use CMake to build…
BillThePlatypus
  • 362
  • 1
  • 14
0
votes
0 answers

How to weight different residuals properly in ceres-solver?

I'm using ceres to solve a multi-view bundle adjustment problem. Besides the classical reprojection-terms I also added a relative movement term for known camera motion. Since the movement of the camera is predefined and controlled, I would like to…
kielnino
  • 160
  • 1
  • 7
0
votes
0 answers

How to break down a mesh distance minimization problem?

I'm having trouble solving a problem using "Ceres" and I could use some help! To simplify the problem: Imagine I have a mesh "A" that I want to scale and rotate (with scale + rotation represented as variables!) to be as close to a mesh "B" as…
IApp
  • 667
  • 1
  • 6
  • 18
0
votes
1 answer

CMake using two different NDK, why is it broken?

I am trying to build the ceres-library on android. I am following the instructions been given on the website, but I got stuck with an error and I don't understand why. I am not an expert in building tools so I do apologize if my question is trivial…
user8469759
  • 2,522
  • 6
  • 26
  • 50
0
votes
1 answer

Ceres solver - Set size of parameter block of CostFunction

in this Ceres example, SizedCostFunction<1,1> is used. I would like to change it to CostFunction since I do not know the size of input parameters during compilation time. I found out that the number of residuals can be easily changed with…
zenzu
  • 51
  • 5
0
votes
0 answers

Segmentation Fault - Ceres Solver

I am trying to achieve solution for a Multilateration problem. The input data i have are Global pose of the landmarks and distances from it. My costfunction is following struct CostFunctor { // Initializing constant parameters …
0
votes
0 answers

How to pre-allocate space for intermediate computation values within DynamicAutoDiffCostFunction?

I am using Ceres Solver for the non-linear least squares optimization of a model for which the number of parameters is not known at compile time. Because the number of parameters is not known at compile time, I implement the computation of the cost…
user1158795
  • 81
  • 1
  • 1
  • 5
0
votes
1 answer

How to use ceres-solver to solve high dimensional non-linear problem?

     I need to solve the optimization problem: . A and b are known. I use Zero to represent A and b to facilate the expression in the following code. The error is caused by problem.AddResidualBlock(cost_function, nullptr, &X); because the third…
Jiang Han
  • 37
  • 5
0
votes
1 answer

How to solve the following problem when I use Ceres Solver

When I run the following code in tutorial of ceres solver,I met some problem. Here is the code: #include #include "ceres/ceres.h" #include "glog/logging.h" using ceres::AutoDiffCostFunction; using ceres::CostFunction; using…
0
votes
0 answers

cmake find_package specify path redux

I have two versions of the Ceres solver installed. One is in /opt/local/lib and the other is in /usr/local/lib/ and I am using cmake to build an application that uses the latter. In my build subdirectory the following works fine: cmake…
wcochran
  • 10,089
  • 6
  • 61
  • 69
0
votes
1 answer

How to add lasso (L1-norm) reisudial in Ceres Solver

I want to add a regular term in least non-linear square function. How to do in Ceres Solver?
0
votes
1 answer

Ceres Solver: how to define bounds/constraints?

Ceres solver states everywhere that it can [...] solve robustified bounds constrained non-linear least squares problems and that it supports upper and lower bounds constraints on the parameter blocks (for example in…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
0
votes
2 answers

How to link 3rd party library (ceres-solver) in CMake

There's a simple project comprised of only main.cpp which uses ceres library (3rd party lib). main.cpp: #include int main() { ceres::some_function(); return 0; } Previously, this is how I used to code as a very…
Joon. P
  • 2,238
  • 7
  • 26
  • 53
0
votes
1 answer

installing ceres in ubuntu 16

Im trying to install ceres solver in ubuntu 16 as follows. When i try to test make "make test" it gives me the error no tests were found! Can someone please explain what i am doing wrong? I am following the official ceres-solver installation…