doTest(func, minPoint, init, GoalType.MINIMIZE, 1e-5, 1e-9, 1e-8);
}
@Test
public void testMaximizeQuadratic() throws MathException {
final DifferentiableMultivariateRealFunction func = new DifferentiableMultivariateRealFunction() {
public double value(double[] x) {
final double a = x[0] - 1;
final double b = x[1] - 1;
return -a * a - b * b + 1;
}