Print

Print


I had done this change before but I was having other issue was not
refreshing my changes. With your answer I reviewed my system and I found the
problem.

Thanks a lot !

On Wed, Nov 24, 2010 at 5:10 AM, Denis Robilliard <
[log in to unmask]> wrote:

> 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;
>