[galib] minimization problem

Christian S. Perone christian_perone at yahoo.com.br
Mon Jun 6 15:30:47 EDT 2005


*GALinearScaling*(float c = /gaDefLinearScalingMultiplier/)
    The fitness scores are derived from the objective scores using the
    linear scaling method described in Goldberg's book. You can specify
    the scaling coefficient. *Negative objective scores are not allowed
    with this method.* Objective scores are converted to fitness scores
    using the relation

You can read in http://lancet.mit.edu/galib-2.4/API.html about the 
Linear Scaling that not
allow negative scores. To minimize the objective function just call 
ga.minimize(), like Anthony said.
This function is in GABaseGA.h:
       int minimize() { return minimaxi(MINIMIZE); }

and the minimaxi() is in GABaseGA.c:

I hope that this can help.

energenius energenius wrote:

> Hi,
> I'm using GALib.2.4.5 with VC6.0. I want to minimize my objective 
> function. Although my program works properly in maximization, when I 
> use ga.minimize(), it stucks and gives no response. How can i solve 
> this problem?
> May adding a minus sign in front of the objective function be a solution?
> Thanks in advance.
> _________________________________________________________________
> En etkili ve güvenilir PC Korumayi tercih edin, rahat edin! 
> http://www.msn.com.tr/security/
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib

Yahoo! Mail, cada vez melhor: agora com 1GB de espaço grátis! http://mail.yahoo.com.br

More information about the galib mailing list