Forward relative_step_size to Ridders in gradient checker GradientChecker uses DynamicNumericDiffCostFunction<CostFunction, RIDDERS>, which reads NumericDiffOptions::ridders_relative_initial_step_size rather than NumericDiffOptions::relative_step_size. Update CreateGradientCheckingCostFunction to set ridders_relative_initial_step_size, reuse it in CreateGradientCheckingProblemImpl, and change the default of Solver::Options::gradient_check_numeric_derivative_relative_step_size from 1e-6 to 1e-2 to match Ridders' default. Thanks to @reprojection-calibration and @NatMatLogica for reporting and analyzing this. Fixes https://github.com/ceres-solver/ceres-solver/issues/1206 Change-Id: I37c16a60ef4c608663d4b93a77183ad9a5d063c2
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.
Please see ceres-solver.org for more information.