commit | e886d7e65368e73e9d35c2ead895d81ced677977 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Mon May 25 13:09:39 2020 -0700 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Wed May 27 19:18:45 2020 +0000 |
tree | 17093c1e01f13f6e8e57893584cb22d98fc9c341 | |
parent | 9483e6f2f57bf51bad7cefd155cd5b48ca672c63 [diff] |
Reduce the number of minimizer iterations in evaluation_callback_test.cc This should reduce the probability of the test heuristic failing due to floating point issues. https://github.com/ceres-solver/ceres-solver/issues/562 https://github.com/ceres-solver/ceres-solver/issues/392 Change-Id: I8ccf4164a8d595f5930d378f464313d4a2cae419
diff --git a/internal/ceres/evaluation_callback_test.cc b/internal/ceres/evaluation_callback_test.cc index bfe788d..f814b01 100644 --- a/internal/ceres/evaluation_callback_test.cc +++ b/internal/ceres/evaluation_callback_test.cc
@@ -201,7 +201,7 @@ Solver::Options options; options.linear_solver_type = DENSE_QR; - options.max_num_iterations = 300; // Cost function is hard. + options.max_num_iterations = 50; // Run the solve. Checking is done inside the cost function / callback. Solver::Summary summary; @@ -248,7 +248,7 @@ Solver::Options options; options.linear_solver_type = DENSE_QR; - options.max_num_iterations = 300; // Cost function is hard. + options.max_num_iterations = 50; options.minimizer_type = ceres::LINE_SEARCH; options.line_search_type = line_search;