Skip to content

Commit 205a2b6

Browse files
committed
Fix MOEAD test to be more robust.
1 parent 916b528 commit 205a2b6

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

tests/demon_adam_test.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ TEMPLATE_TEST_CASE("DemonAdam_MatyasFunction", "[DemonAdam]",
5858
ENS_ALL_TEST_TYPES)
5959
{
6060
DemonAdam optimizer(0.5, 1, 0.9);
61-
FunctionTest<MatyasFunction, TestType>(optimizer, 0.1, 0.01);
61+
FunctionTest<MatyasFunction, TestType>(
62+
optimizer,
63+
10 * Tolerances<TestType>::LargeObj,
64+
Tolerances<TestType>::LargeCoord);
6265
}
6366

6467
#ifdef ENS_HAVE_COOT

tests/moead_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ TEST_CASE("MOEADDIRICHLETMAF4Test", "[MOEAD]")
453453
const double expectedUpperBound = 0.5;
454454

455455
DirichletMOEAD opt(
456-
105, // Population size.
456+
200, // Population size.
457457
1000, // Max generations.
458458
1.0, // Crossover probability.
459459
0.9, // Probability of sampling from neighbor.

0 commit comments

Comments
 (0)