In the TSP, the fitness has to be minimized ... with all the needed modification (for example, moSA.h)

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@587 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2007-08-03 14:28:06 +00:00
commit 1d94071693
170 changed files with 748 additions and 837 deletions

View file

@ -50,9 +50,9 @@ typedef EOT::Fitness&nbsp;</td><td class="memItemRight" valign="bottom"><a class
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Alias for the fitness. <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_fit_sol_continue.html#667090eca00b8532524f8e0a6e988fed">moFitSolContinue</a> (<a class="el" href="classmo_fit_sol_continue.html#369ed94a788d8bdc08d5554f7669376f">Fitness</a> __fitness, bool __minimization=true)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_fit_sol_continue.html#b14f37ba88de4e12583b22f5aabeb682">moFitSolContinue</a> (<a class="el" href="classmo_fit_sol_continue.html#369ed94a788d8bdc08d5554f7669376f">Fitness</a> __fitness)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Basic constructor. <a href="#667090eca00b8532524f8e0a6e988fed"></a><br></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Basic constructor. <a href="#b14f37ba88de4e12583b22f5aabeb682"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_fit_sol_continue.html#fa9f0a15f99c998115cae9b456403a27">operator()</a> (const EOT &amp;__sol)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Function that activates the stopping criterion. <a href="#fa9f0a15f99c998115cae9b456403a27"></a><br></td></tr>
@ -65,9 +65,6 @@ void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="clas
<a class="el" href="classmo_fit_sol_continue.html#369ed94a788d8bdc08d5554f7669376f">Fitness</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_fit_sol_continue.html#87d0ba8f2f76f61c89317eed5f094dfc">fitness</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Fitness target. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_fit_sol_continue.html#a4c90279f00774d9868a2e38ead45696">minimization</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Flag that indicate if there is a minimization (true) or a maximization (false) of the fitness value. <a href="#a4c90279f00774d9868a2e38ead45696"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class EOT&gt;<br>
@ -80,7 +77,7 @@ The stop criterion corresponds to a fitness threshold gained.
<p>
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00021">21</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="667090eca00b8532524f8e0a6e988fed"></a><!-- doxytag: member="moFitSolContinue::moFitSolContinue" ref="667090eca00b8532524f8e0a6e988fed" args="(Fitness __fitness, bool __minimization=true)" -->
<a class="anchor" name="b14f37ba88de4e12583b22f5aabeb682"></a><!-- doxytag: member="moFitSolContinue::moFitSolContinue" ref="b14f37ba88de4e12583b22f5aabeb682" args="(Fitness __fitness)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
@ -90,18 +87,9 @@ template&lt;class EOT&gt; </div>
<td class="memname"><a class="el" href="classmo_fit_sol_continue.html">moFitSolContinue</a>&lt; EOT &gt;::<a class="el" href="classmo_fit_sol_continue.html">moFitSolContinue</a> </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classmo_fit_sol_continue.html#369ed94a788d8bdc08d5554f7669376f">Fitness</a>&nbsp;</td>
<td class="paramname"> <em>__fitness</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&nbsp;</td>
<td class="paramname"> <em>__minimization</em> = <code>true</code></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline]</code></td>
<td class="paramname"> <em>__fitness</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [inline]</code></td>
</tr>
</table>
</div>
@ -113,12 +101,11 @@ Basic constructor.
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>__fitness</em>&nbsp;</td><td>The fitness to reach. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>__minimization</em>&nbsp;</td><td>Indicate if the the aim is to maximize or minimize the fitness. </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00034">34</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00033">33</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
@ -154,38 +141,14 @@ Indicates if the fitness threshold has not yet been reached.<p>
<p>
Implements <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_u_f.html#786e028409366dc273e19104f17ba68a">eoUF&lt; const EOT &amp;, bool &gt;</a>.
<p>
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00044">44</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00043">43</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.
<p>
References <a class="el" href="mo_fit_sol_continue_8h-source.html#l00065">moFitSolContinue&lt; EOT &gt;::fitness</a>, and <a class="el" href="mo_fit_sol_continue_8h-source.html#l00072">moFitSolContinue&lt; EOT &gt;::minimization</a>.
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a4c90279f00774d9868a2e38ead45696"></a><!-- doxytag: member="moFitSolContinue::minimization" ref="a4c90279f00774d9868a2e38ead45696" args="" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class EOT&gt; </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classmo_fit_sol_continue.html">moFitSolContinue</a>&lt; EOT &gt;::<a class="el" href="classmo_fit_sol_continue.html#a4c90279f00774d9868a2e38ead45696">minimization</a><code> [private]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Flag that indicate if there is a minimization (true) or a maximization (false) of the fitness value.
<p>
It can be interesting to know this information because some solution-based metaheuristics can generate solution with a fitness that is worse that the best known fitness (in this case, the counter is not reinitialized).
<p>
Definition at line <a class="el" href="mo_fit_sol_continue_8h-source.html#l00072">72</a> of file <a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a>.
<p>
Referenced by <a class="el" href="mo_fit_sol_continue_8h-source.html#l00044">moFitSolContinue&lt; EOT &gt;::operator()()</a>.
References <a class="el" href="mo_fit_sol_continue_8h-source.html#l00060">moFitSolContinue&lt; EOT &gt;::fitness</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="mo_fit_sol_continue_8h-source.html">moFitSolContinue.h</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Aug 2 09:02:25 2007 for PARADISEO-MO by&nbsp;
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 3 16:25:56 2007 for PARADISEO-MO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>