Hi Everyone,<br><br>I have just download galib and have it compiling successfully.&nbsp; I have a cost function f(x1, x2)&nbsp;&nbsp;&nbsp;&nbsp; , 0 &lt;= x1 &lt;= 1000 , 0 &lt;= x2 &lt;= 1000&nbsp;&nbsp;&nbsp; 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. &nbsp;<br>Question. Instead of GABin2DecPhenotype, what type of genome should I be using?&nbsp; &nbsp;<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>