Added "@Retry".
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1103707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
03fa7c1431
commit
7e3ad29257
|
@ -110,7 +110,7 @@ public class CMAESOptimizerTest {
|
||||||
public void testInputSigmaDimensionMismatch() throws MathUserException, MathException {
|
public void testInputSigmaDimensionMismatch() throws MathUserException, MathException {
|
||||||
double[] startPoint = point(DIM,0.5);
|
double[] startPoint = point(DIM,0.5);
|
||||||
double[] insigma = point(DIM+1,-0.5);
|
double[] insigma = point(DIM+1,-0.5);
|
||||||
double[][] boundaries = null;;
|
double[][] boundaries = null;
|
||||||
RealPointValuePair expected =
|
RealPointValuePair expected =
|
||||||
new RealPointValuePair(point(DIM,1.0),0.0);
|
new RealPointValuePair(point(DIM,1.0),0.0);
|
||||||
doTest(new Rosen(), startPoint, insigma, boundaries,
|
doTest(new Rosen(), startPoint, insigma, boundaries,
|
||||||
|
@ -119,6 +119,7 @@ public class CMAESOptimizerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Retry(3)
|
||||||
public void testRosen() throws MathException {
|
public void testRosen() throws MathException {
|
||||||
double[] startPoint = point(DIM,0.1);
|
double[] startPoint = point(DIM,0.1);
|
||||||
double[] insigma = point(DIM,0.1);
|
double[] insigma = point(DIM,0.1);
|
||||||
|
|
Loading…
Reference in New Issue