[jgap-users] How to write evaluate(IChromosome a_subject) function for Mini F(x) problem
Brought to you by:
klausikm
From: ShankhaB <Sha...@co...> - 2010-07-15 06:57:11
|
Hi I try to solve some simple minimization problem with constraints. Problem : Minimize Z = 2x1+ 8x2 Subject To - 5x1+x2>=10 2x1+2x2>=14 x1+4x2>=12 x1,x2>=0 and 1<x1<=7 | 0<x2<=4 What I understand I have to check the my Fitness function or objective function (Z) in the public double evaluate(IChromosome a_subject) method , where a_subject is the one of the potential solution. from the "a_subject" object I have to get the value of X1 and X2 then , I have to chek all the above mentioned constraints as well as the Fitness function (Z). What should be the logic for which IChromosome ( a_subject) - Z will be minimized ? Please guide me? Thank you, shankha -- View this message in context: http://old.nabble.com/How-to-write-evaluate%28IChromosome-a_subject%29--function-for-Mini-F%28x%29-problem-tp29169811p29169811.html Sent from the jgap-users mailing list archive at Nabble.com. |