diff -Nru ceres-solver-1.14.0/debian/changelog ceres-solver-1.14.0/debian/changelog --- ceres-solver-1.14.0/debian/changelog 2020-03-31 09:48:55.000000000 +0000 +++ ceres-solver-1.14.0/debian/changelog 2020-06-11 16:16:58.000000000 +0000 @@ -1,3 +1,9 @@ +ceres-solver (1.14.0-4ubuntu1.1) focal; urgency=medium + + * Reduce the number of minimizer iterations in test (LP: #1882626) + + -- Kyle Fazzari Thu, 11 Jun 2020 17:02:01 -0700 + ceres-solver (1.14.0-4ubuntu1) focal; urgency=medium * Build using pyhton3. diff -Nru ceres-solver-1.14.0/debian/patches/reduce-minimizer-iterations.patch ceres-solver-1.14.0/debian/patches/reduce-minimizer-iterations.patch --- ceres-solver-1.14.0/debian/patches/reduce-minimizer-iterations.patch 1970-01-01 00:00:00.000000000 +0000 +++ ceres-solver-1.14.0/debian/patches/reduce-minimizer-iterations.patch 2020-06-11 16:15:40.000000000 +0000 @@ -0,0 +1,39 @@ +From e886d7e65368e73e9d35c2ead895d81ced677977 Mon Sep 17 00:00:00 2001 +From: Sameer Agarwal +Date: Mon, 25 May 2020 13:09:39 -0700 +Subject: [PATCH] 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 +--- + internal/ceres/evaluation_callback_test.cc | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/internal/ceres/evaluation_callback_test.cc b/internal/ceres/evaluation_callback_test.cc +index bfe788ddb..f814b011e 100644 +--- a/internal/ceres/evaluation_callback_test.cc ++++ b/internal/ceres/evaluation_callback_test.cc +@@ -199,7 +199,7 @@ TEST(EvaluationCallback, WithTrustRegion + + Solver::Options options; + options.linear_solver_type = DENSE_QR; +- options.max_num_iterations = 300; // Cost function is hard. ++ options.max_num_iterations = 50; + options.evaluation_callback = &cost_function; + + // Run the solve. Checking is done inside the cost function / callback. +@@ -246,7 +246,7 @@ void WithLineSearchMinimizerImpl( + + 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.evaluation_callback = &cost_function; + options.line_search_type = line_search; diff -Nru ceres-solver-1.14.0/debian/patches/series ceres-solver-1.14.0/debian/patches/series --- ceres-solver-1.14.0/debian/patches/series 2020-03-31 09:46:48.000000000 +0000 +++ ceres-solver-1.14.0/debian/patches/series 2020-06-11 16:15:40.000000000 +0000 @@ -1,2 +1,3 @@ 923fddcd0eabd7902092122b8cdca45800609870.patch python3.diff +reduce-minimizer-iterations.patch