Print

Print


Hey Andre,

why don't you just invert your fitness?

fitness best individual of generation 1: 5 
fitness best individual of generation 2: 6 
fitness best individual of generation 3: 4 
fitness best individual of generation 4: 8 

to 

fitness best individual of generation 1: infinite - 5 
fitness best individual of generation 2: infinite - 6 
fitness best individual of generation 3: infinite - 4 
fitness best individual of generation 4: infinite - 8 

Now your max should be generation 3 because 4 is the lowest score.

minor and major can be easy inverted.

Greetings

Bojan


----- Ursprüngliche Mail -----
Von: "André Pinz Borges" <[log in to unmask]>
An: [log in to unmask]
Gesendet: Montag, 15. Juli 2013 14:03:59
Betreff: Re: How to select individual with minor fitness





Normally the algorithm selects the individual with major value of fitness, for the example above will be selected the individual of generation 4: 
fitness best individual of generation 1: 5 
fitness best individual of generation 2: 6 
fitness best individual of generation 3: 4 
fitness best individual of generation 4: 8 

but I want to select the individual that has the mijor/less value of fitness (in the case of example, the generation 3). 

Thanks 








On Mon, Jul 15, 2013 at 4:03 AM, Sean Luke < [log in to unmask] > wrote: 


I'm sorry, I don't know what you mean by "minor" and "major" fitnesses. 

Sean 



On Jul 14, 2013, at 10:27 PM, André Pinz Borges wrote: 

> Hello, 
> 
> I implemented tutorial 3, but I would like to select the individual with minor value of fitness and the tutorial selects the individual with major fitness. 
> 
> How can I do this?? I look at source code, but I don't find how.. 
> 
> Thanks!