<P>Hi all,</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; I'm new in the FAQ (hi all again! :-)). I'm not a expert in genetic algorithms, but I want to be. And I need help! :-) Thanks a lot for the authors of GAlib and for all the FAQ members.</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp; I need some help to understand how galib consider the incorporation of constraints into genetic algorithm search. At Goldberg book, the penalty method is presented; only it. I coldn't study GAlib at this point yet, but I saw in Example 9 that's possible to include constraints. How the GAlib consider them (a especific method?)? And one more question (very important to me): at Ex 9, constraints&nbsp;of the form </P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - 5 &lt;= X1 &lt;= 5 and - 5 &lt;= X2 &lt;= 5 </P>
<P>are considered. If I need the following:</P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - 5 &lt;= X1 &lt;= 5 and - 5 &lt;= X2 &lt;= 5&nbsp; AND&nbsp;(X1 + X2) &gt;= 10 (for example)</P>
<P>How can I consider the third constraint (the sum of variables must be an inequality relation)?</P>
<P>Thanks a lot for the answers!</P>
<P>Lauro.</P>
<P>PS.: I'm sorry for the not good english.</P>
<P>&nbsp;</P>
<P>********************************************************</P>
<P>Lauro de Miranda</P>
<P>Pontifícia Universidade Católica de Minas Gerais</P>
<P>Belo Horizonte, MG, Brasil</P>
<P>********************************************************</P><p><hr size=1>
<a href="http://br.encontros.yahoo.com/"><b>Yahoo! Encontros</b></a> - O lugar certo para encontrar a sua alma gêmea.