I am working on chicken swarm optimization using Java and I am a little bit recently learner of Java.
In the question below there are a small amount added to the equation of rooster position update to overcome the problem of division of zero.
In Matlab there is something called realmin
which returns the smallest positive normalized floating-point number in IEEE® double precision.
Is there anything equivalent to this in java? I don't want to use exceptions.
tempSigma = Math.exp( (fitSortand_Index [anotherRooster ][1]
- fitSortand_Index [i][1]) / (Math.abs( fitSortand_Index[i][1]) + realmin ) );