Skip to content

Commit

Permalink
Be less strict with testfunction tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Feb 15, 2024
1 parent 4ae0741 commit ca2e860
Show file tree
Hide file tree
Showing 19 changed files with 53 additions and 52 deletions.
1 change: 1 addition & 0 deletions crates/argmin-testfunctions/proptest-regressions/levy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/ackley.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -454,7 +454,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/booth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -116,7 +116,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/bukin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -158,7 +158,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5,
max_relative = 1e-2,
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/crossintray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -281,7 +281,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/easom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -143,7 +143,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/eggholder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-4
max_relative = 1e-2
);
}
}
Expand All @@ -261,7 +261,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/goldsteinprice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-3,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -361,7 +361,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/himmelblau.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -185,7 +185,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/holdertable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -237,7 +237,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
12 changes: 6 additions & 6 deletions crates/argmin-testfunctions/src/levy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-4,
max_relative = 1e-2,
);
}
}
Expand All @@ -417,7 +417,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -438,7 +438,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-4,
max_relative = 1e-2,
);
}
}
Expand All @@ -457,7 +457,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-4,
max_relative = 1e-2,
);
}
}
Expand All @@ -480,7 +480,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -505,7 +505,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/matyas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -114,7 +114,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/mccorminck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -132,7 +132,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/argmin-testfunctions/src/picheny.rs
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-3
max_relative = 1e-2
);
}
}
Expand All @@ -883,7 +883,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-5,
max_relative = 1e-4
max_relative = 1e-2
);
}
}
Expand Down
8 changes: 4 additions & 4 deletions crates/argmin-testfunctions/src/rastrigin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -274,7 +274,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -302,7 +302,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-4
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -331,7 +331,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-4
max_relative = 1e-2
);
}
}
Expand Down
12 changes: 6 additions & 6 deletions crates/argmin-testfunctions/src/rosenbrock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ mod tests {
hessian[i][j],
res[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -316,7 +316,7 @@ mod tests {
hessian[i][j],
res[i][j],
epsilon = 1e-5,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -340,7 +340,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand All @@ -364,7 +364,7 @@ mod tests {
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -392,7 +392,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -421,7 +421,7 @@ mod tests {
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-5
max_relative = 1e-2
);
}
}
Expand Down
Loading

0 comments on commit ca2e860

Please sign in to comment.