}
public void testFeatureMaximization(){
double[] center = { 2, 3 };
double[] skew = { 1, 100 };
TestMaximization obj = new TestMaximization(center, skew);
ga.maximize(obj);
log.warn("Gradient descent found params (val="
+ obj.numValueCalls + " grad=" + obj.numGradientCalls + "): ");
for (double element : obj.params) {
log.warn(element + " ");
}
//System.out.println();
obj.reset();
ConjugateGradient cg = new ConjugateGradient(obj.params.length);
cg.maximize(obj);
log.warn("Conjugate gradient found params (val="
+ obj.numValueCalls + " grad=" + obj.numGradientCalls + "): ");
for (double element : obj.params) {