FAQs, Tips & TricksΒΆ
This chapter collects answers to frequently asked questions and practical advice for modeling and solving optimization problems with Ceres Solver.
- Modeling
- Use analytical or automatic derivatives
- Do not return the norm or squared norm of a residual vector from a
CostFunction - Do not pack multiple independent measurements into a single residual block when using a
LossFunction - When using Quaternions, consider using
QuaternionManifold - How do I solve problems with general linear & non-linear inequality constraints with Ceres Solver?
- How do I solve problems with general linear & non-linear equality constraints with Ceres Solver?
- How do I set one or more components of a parameter block constant?
- Solving