<DIV>Hallo </DIV>
<DIV>&nbsp;</DIV>
<DIV>I have treid to minimize an objective function (f_obj) using SigmaTruncationScaling by puting multiplying the objective function by -1. It goes OK. </DIV>
<DIV>I like to use my own scaling which I think it will better for minimization of my objective function. The scaling I propose is that:</DIV>
<DIV>fittness(i)= exp[ [max(&nbsp;f_obj(i)) - f_obj(i))] * 5 / [max(&nbsp;f_obj(i)) - min(&nbsp;f_obj(i)) ] ]</DIV>
<DIV>&nbsp;</DIV>
<DIV>I use this scaling, because I expect to work better than SigmaTruncationScaling </DIV>
<DIV>the follwoing c++ prototype (code)&nbsp; was added to GAScaling.c file, however the results was not satisfied. The result shows divergence contradicting of what expected. I s there any thing wrong? What are the steps of writing my own scaling. </DIV>
<DIV>&nbsp;</DIV>
<DIV>#if USE_EXPON_SCALING == 1<BR>/* ----------------------------------------------------------------------------<BR>ExponScaling<BR>---------------------------------------------------------------------------- */<BR>// This is an a test scaling<BR>void&nbsp; GAExponScaling::evaluate(const GAPopulation &amp; p) {<BR>&nbsp;for(int i=0; i&lt;p.size(); i++){<BR>&nbsp;&nbsp;double ffup = (double)(p.max())-(double)(p.individual(i).score());<BR>&nbsp;&nbsp;double ffdown = (double)(p.max())-(double)(p.min());<BR>&nbsp;&nbsp;double f= exp(ffup*5.0/ffdown);<BR>&nbsp;&nbsp;if(f &lt; 0) f = 0.0;<BR>&nbsp;&nbsp;p.individual(i).fitness((float)f);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV>
<DIV>&nbsp;}<BR>}<BR>#endif</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Sports - <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=31508/*http://baseball.fantasysports.yahoo.com"> 
Sign up</a> for Fantasy Baseball.