Hi Everyone,<br><br>I have just download galib and have it compiling successfully. I have a cost function f(x1, x2) , 0 <= x1 <= 1000 , 0 <= x2 <= 1000 where x1, and x2 can only take integer values. <br>
My problem is basically ex9.c, except that x1, and x2 can only take integer values.<br>I have based my code on ex9.c and am using<br><br>GABin2DecPhenotype map;<br>map.add(16, 0, 1000);<br>map.add(16, 0, 1000);<br><br>to define x1, and x2.
<br>But as everyone knows, this search space includes real values. <br>Question. Instead of GABin2DecPhenotype, what type of genome should I be using? <br><br>If anyone has any code to sove ex9.c where x1 and x2 can only take integer values can I please have a look at it.
<br><br><br>Many thanks for your help,<br><br>Tony<br><br>