On 24/11/2010 01:31, Daniel José Abate wrote:
> Hi all,
>
> I was doing some tests with the ant example and I need to change
> the position where the ant start to walk the map.
> Example: In the present example the ant starts at point ( 0 ; 0 ) and
> I want that starts at point ( 5 ; 5 )
>
> Does anyone know how to do it ?
>
>
> Thanks in advance.
> Daniel.
in the Ant.java file, function "evaluate": the coords and orientation of
the ant are set ate the beginning.
public void evaluate(final EvolutionState state,
final Individual ind,
final int subpopulation,
final int threadnum)
{
if (!ind.evaluated) // don't bother reevaluating
{
sum = 0;
posx = 0;
posy = 0;
orientation = O_RIGHT;
|