Menu

#2 Crash when trying to solve Rosenbrock

open
nobody
None
5
2006-10-18
2006-10-18
No

As a test case I tried to find the optimal solution for
the famous Rosenbrock model, I used the following
objetive function:

scheme.setFunction(new ObjectiveFunction()
{
private final static int NDIM = 2;
public int getNdim()
{
return NDIM;
}
public double distance(double[] vertex)
{
return 100*(vertex[1] -
vertex[0]*vertex[0])*(1 - vertex[0])*(1 - vertex[0]);
}
});

However, when I run the applciation I get anwe index
out of range error (-1). It appears that the remove
function is trying to remove a nonexistent simplex. In
turn it is the getIndexOfMax that doesn't have a good
fall back position which in turn is due to the vertices
have values of -infinity.

Any idea why this might not be working?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB