diff --git a/crates/argmin-testfunctions/proptest-regressions/levy.txt b/crates/argmin-testfunctions/proptest-regressions/levy.txt index 44c163d5b..1704b39ad 100644 --- a/crates/argmin-testfunctions/proptest-regressions/levy.txt +++ b/crates/argmin-testfunctions/proptest-regressions/levy.txt @@ -7,3 +7,4 @@ cc 0ee9ddf2f929b971ef215e55319945f24fe713dc7f41242b8e80074112a4647d # shrinks to a = 0.0, b = -340.45222947026997 cc a9994e5eb0e4c5161426f9fdec86fb46ee637f17a62a251c5e07c58123f960e9 # shrinks to a = 3.219661442452062, b = -2.2175779827682494 cc 0dee901c5d94a9a9b32352c229a6c9d196aa5a27c27f0636bfbd5b66b7e95fc5 # shrinks to a = 0.0, b = 6.072194039937718, c = 0.0 +cc 15f749abbbb0a0addb44cf4bfad8ad79caf2910c85e84826b842b1d038a11f18 diff --git a/crates/argmin-testfunctions/src/ackley.rs b/crates/argmin-testfunctions/src/ackley.rs index 183e83403..4e39084de 100644 --- a/crates/argmin-testfunctions/src/ackley.rs +++ b/crates/argmin-testfunctions/src/ackley.rs @@ -426,7 +426,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -454,7 +454,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/booth.rs b/crates/argmin-testfunctions/src/booth.rs index c1f5aabe5..828b1b692 100644 --- a/crates/argmin-testfunctions/src/booth.rs +++ b/crates/argmin-testfunctions/src/booth.rs @@ -96,7 +96,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -116,7 +116,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/bukin.rs b/crates/argmin-testfunctions/src/bukin.rs index a43950d35..56af15cf6 100644 --- a/crates/argmin-testfunctions/src/bukin.rs +++ b/crates/argmin-testfunctions/src/bukin.rs @@ -136,7 +136,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -158,7 +158,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5, + max_relative = 1e-2, ); } } diff --git a/crates/argmin-testfunctions/src/crossintray.rs b/crates/argmin-testfunctions/src/crossintray.rs index 2925abb99..4580bb6f4 100644 --- a/crates/argmin-testfunctions/src/crossintray.rs +++ b/crates/argmin-testfunctions/src/crossintray.rs @@ -257,7 +257,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -281,7 +281,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/easom.rs b/crates/argmin-testfunctions/src/easom.rs index 27826daf1..e7bb3c876 100644 --- a/crates/argmin-testfunctions/src/easom.rs +++ b/crates/argmin-testfunctions/src/easom.rs @@ -122,7 +122,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -143,7 +143,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/eggholder.rs b/crates/argmin-testfunctions/src/eggholder.rs index 69f1bab87..3f3a4cc58 100644 --- a/crates/argmin-testfunctions/src/eggholder.rs +++ b/crates/argmin-testfunctions/src/eggholder.rs @@ -237,7 +237,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-4 + max_relative = 1e-2 ); } } @@ -261,7 +261,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-4, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/goldsteinprice.rs b/crates/argmin-testfunctions/src/goldsteinprice.rs index 87a6d2d7a..a868c760b 100644 --- a/crates/argmin-testfunctions/src/goldsteinprice.rs +++ b/crates/argmin-testfunctions/src/goldsteinprice.rs @@ -308,7 +308,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-3, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -361,7 +361,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/himmelblau.rs b/crates/argmin-testfunctions/src/himmelblau.rs index 42d3653b5..2dc88739b 100644 --- a/crates/argmin-testfunctions/src/himmelblau.rs +++ b/crates/argmin-testfunctions/src/himmelblau.rs @@ -161,7 +161,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -185,7 +185,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/holdertable.rs b/crates/argmin-testfunctions/src/holdertable.rs index 0dbc1e195..e91389eb7 100644 --- a/crates/argmin-testfunctions/src/holdertable.rs +++ b/crates/argmin-testfunctions/src/holdertable.rs @@ -213,7 +213,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -237,7 +237,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/levy.rs b/crates/argmin-testfunctions/src/levy.rs index 6473d5523..546da80ad 100644 --- a/crates/argmin-testfunctions/src/levy.rs +++ b/crates/argmin-testfunctions/src/levy.rs @@ -393,7 +393,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-4, + max_relative = 1e-2, ); } } @@ -417,7 +417,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -438,7 +438,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-4, + max_relative = 1e-2, ); } } @@ -457,7 +457,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-4, + max_relative = 1e-2, ); } } @@ -480,7 +480,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -505,7 +505,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/matyas.rs b/crates/argmin-testfunctions/src/matyas.rs index b18cb1027..ec708b0db 100644 --- a/crates/argmin-testfunctions/src/matyas.rs +++ b/crates/argmin-testfunctions/src/matyas.rs @@ -94,7 +94,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -114,7 +114,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/mccorminck.rs b/crates/argmin-testfunctions/src/mccorminck.rs index 81f3dd9d5..0969ac8cf 100644 --- a/crates/argmin-testfunctions/src/mccorminck.rs +++ b/crates/argmin-testfunctions/src/mccorminck.rs @@ -108,7 +108,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -132,7 +132,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/picheny.rs b/crates/argmin-testfunctions/src/picheny.rs index 9a6754ed8..dc5d3139e 100644 --- a/crates/argmin-testfunctions/src/picheny.rs +++ b/crates/argmin-testfunctions/src/picheny.rs @@ -859,7 +859,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -883,7 +883,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-4 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/rastrigin.rs b/crates/argmin-testfunctions/src/rastrigin.rs index e887e08b1..3700bc47b 100644 --- a/crates/argmin-testfunctions/src/rastrigin.rs +++ b/crates/argmin-testfunctions/src/rastrigin.rs @@ -250,7 +250,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -274,7 +274,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -302,7 +302,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-4, - max_relative = 1e-4 + max_relative = 1e-2 ); } } @@ -331,7 +331,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-4, - max_relative = 1e-4 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/rosenbrock.rs b/crates/argmin-testfunctions/src/rosenbrock.rs index 19038d57d..3834e45fd 100644 --- a/crates/argmin-testfunctions/src/rosenbrock.rs +++ b/crates/argmin-testfunctions/src/rosenbrock.rs @@ -292,7 +292,7 @@ mod tests { hessian[i][j], res[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -316,7 +316,7 @@ mod tests { hessian[i][j], res[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -340,7 +340,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -364,7 +364,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-4, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -392,7 +392,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-4, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -421,7 +421,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-4, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/sphere.rs b/crates/argmin-testfunctions/src/sphere.rs index 8f2f078d7..affae05c4 100644 --- a/crates/argmin-testfunctions/src/sphere.rs +++ b/crates/argmin-testfunctions/src/sphere.rs @@ -157,7 +157,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -182,7 +182,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5, + max_relative = 1e-2, ); } } @@ -206,7 +206,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -230,7 +230,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -303,7 +303,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } @@ -329,7 +329,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-5 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/styblinskitang.rs b/crates/argmin-testfunctions/src/styblinskitang.rs index c25b48815..95c7246b4 100644 --- a/crates/argmin-testfunctions/src/styblinskitang.rs +++ b/crates/argmin-testfunctions/src/styblinskitang.rs @@ -148,7 +148,7 @@ mod tests { let deriv = styblinski_tang_derivative(&[-2.903534_f64, -2.903534_f64, -2.903534_f64]); for i in 0..3 { - assert_relative_eq!(deriv[i], 0.0, epsilon = 1e-5, max_relative = 1e-5); + assert_relative_eq!(deriv[i], 0.0, epsilon = 1e-5, max_relative = 1e-2); } } @@ -170,7 +170,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -194,7 +194,7 @@ mod tests { derivative[i], derivative_fd[i], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -219,7 +219,7 @@ mod tests { derivative[i][j], derivative_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } @@ -245,7 +245,7 @@ mod tests { derivative[i][j], derivative_fd[i][j], epsilon = 1e-5, - max_relative = 1e-3 + max_relative = 1e-2 ); } } diff --git a/crates/argmin-testfunctions/src/threehumpcamel.rs b/crates/argmin-testfunctions/src/threehumpcamel.rs index 90fc05761..fb7bff39a 100644 --- a/crates/argmin-testfunctions/src/threehumpcamel.rs +++ b/crates/argmin-testfunctions/src/threehumpcamel.rs @@ -134,7 +134,7 @@ mod tests { hessian[i][j], hessian_fd[i][j], epsilon = 1e-5, - max_relative = 1e-4 + max_relative = 1e-2 ); } }