Add GradientProblemSolver::Options::parameter_tolerance.

Support for parameter tolerance was added to the line search
minimizer was added a while ago, and calling Solve on a
non-linear least squares problem supported it but for some reason
the GradientProblemSolver::Options struct was missing this
option even though the documentation suggested that it was present!

Thanks to Noah Snavely for reporting this bug.

Change-Id: I57cf4ab396bc822c19fa298529e113b89664a349
This commit is contained in:
Sameer Agarwal
2016-11-01 05:51:36 -07:00
parent e69bd2a206
commit f21c17064b
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -74,6 +74,7 @@ class CERES_EXPORT GradientProblemSolver {
max_solver_time_in_seconds = 1e9;
function_tolerance = 1e-6;
gradient_tolerance = 1e-10;
parameter_tolerance = 1e-8;
logging_type = PER_MINIMIZER_ITERATION;
minimizer_progress_to_stdout = false;
}
@@ -236,6 +237,12 @@ class CERES_EXPORT GradientProblemSolver {
// This value should typically be 1e-4 * function_tolerance.
double gradient_tolerance;
// Minimizer terminates when
//
// |step|_2 <= parameter_tolerance * ( |x|_2 + parameter_tolerance)
//
double parameter_tolerance;
// Logging options ---------------------------------------------------------
LoggingType logging_type;