Skip to content

Commit

Permalink
Fixed Schaffer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-k committed Feb 15, 2024
1 parent d0a834b commit 4ae0741
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ cc 32f4a71a9cf4ea177319bc4648d42fa3476bd4b0582fdd2cc0905cbfce3dfe8a # shrinks to
cc b0e73b49416e7496e88c5d497c3da019326e8ce90d51af06bcafe51e930fc9fd # shrinks to a = -6.778903037873863, b = 9.998923372712351
cc ba68ebaf8145cc34c8e18a92d23af2ace5a2e05a5f5b00d69adb3bc4e97d2ac9 # shrinks to a = 0.7151643912856506, b = 9.195105492749027
cc aa45ef4cc9423b3818346b7e7de37a6d85f0d271aba79e6071631466dde39166 # shrinks to a = -9.698581173014253, b = 9.502752154451573
cc e6113fccb87c871faf8448b3137c6b763925d1ba0488aaf0d458fed5874deb67
12 changes: 6 additions & 6 deletions crates/argmin-testfunctions/src/schaffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@ mod tests {
assert_relative_eq!(
derivative[i],
derivative_fd[i],
epsilon = 1e-5,
max_relative = 1e-3
epsilon = 1e-3,
max_relative = 1e-2
);
}
}
Expand All @@ -339,8 +339,8 @@ mod tests {
assert_relative_eq!(
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
max_relative = 1e-3
epsilon = 1e-3,
max_relative = 1e-2
);
}
}
Expand Down Expand Up @@ -373,7 +373,7 @@ mod tests {
assert_relative_eq!(
derivative[i],
derivative_fd[i],
epsilon = 1e-4,
epsilon = 1e-3,
max_relative = 1e-2,
);
}
Expand All @@ -399,7 +399,7 @@ mod tests {
assert_relative_eq!(
hessian[i][j],
hessian_fd[i][j],
epsilon = 1e-4,
epsilon = 1e-3,
max_relative = 1e-2
);
}
Expand Down

0 comments on commit 4ae0741

Please sign in to comment.