public void testGetIterations() {
AbstractLeastSquaresOptimizer optim = createOptimizer();
optim.optimize(new MaxEval(100), new Target(new double[] { 1 }),
new Weight(new double[] { 1 }),
new InitialGuess(new double[] { 3 }),
new ModelFunction(new MultivariateVectorFunction() {
public double[] value(double[] point) {
return new double[] {
FastMath.pow(point[0], 4)
};
}