git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@589 331e1502-861f-0410-8da2-ba01fb791d7f
191 lines
13 KiB
HTML
191 lines
13 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>PARADISEO-MO: moBestImprSelect< M > Class Template Reference</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.5.2 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
<li class="current"><a href="classes.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<form action="search.php" method="get">
|
|
<table cellspacing="0" cellpadding="0" border="0">
|
|
<tr>
|
|
<td><label> <u>S</u>earch for </label></td>
|
|
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>moBestImprSelect< M > Class Template Reference</h1><!-- doxytag: class="moBestImprSelect" --><!-- doxytag: inherits="moMoveSelect" -->One of the possible <a class="el" href="classmo_move_select.html" title="Class that describes a move selector (moMove).">moMoveSelect</a>.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="mo_best_impr_select_8h-source.html">moBestImprSelect.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for moBestImprSelect< M >:
|
|
<p><center><img src="classmo_best_impr_select.png" usemap="#moBestImprSelect< M >_map" border="0" alt=""></center>
|
|
<map name="moBestImprSelect< M >_map">
|
|
<area href="classmo_move_select.html" alt="moMoveSelect< M >" shape="rect" coords="0,112,256,136">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_b_f.html" alt="eoBF< M &, M::EOType::Fitness &, void >" shape="rect" coords="0,56,256,80">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="0,0,256,24">
|
|
</map>
|
|
<a href="classmo_best_impr_select-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td></td></tr>
|
|
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4ae17435221fb0a8e8acd285210cfcb"></a><!-- doxytag: member="moBestImprSelect::Fitness" ref="c4ae17435221fb0a8e8acd285210cfcb" args="" -->
|
|
typedef M::EOType::Fitness </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </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"><a class="anchor" name="2d2abf9aa17dc77cbb4f41810ab7b956"></a><!-- doxytag: member="moBestImprSelect::init" ref="2d2abf9aa17dc77cbb4f41810ab7b956" args="(const Fitness &__fit)" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#2d2abf9aa17dc77cbb4f41810ab7b956">init</a> (const <a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> &__fit)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Procedure which initialise the exploration. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#d10e3e6f8a0277731e95ef506d064d6d">update</a> (const M &__move, const <a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> &__fit)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function that indicates if the current move has not improved the fitness. <a href="#d10e3e6f8a0277731e95ef506d064d6d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#169773d4d127acd782cf379f758222da">operator()</a> (M &__move, <a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> &__fit) throw (EmptySelection)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Procedure which saved the best move and fitness. <a href="#169773d4d127acd782cf379f758222da"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="352b14d206b0772eb9f40efb7beb0f13"></a><!-- doxytag: member="moBestImprSelect::first_time" ref="352b14d206b0772eb9f40efb7beb0f13" args="" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#352b14d206b0772eb9f40efb7beb0f13">first_time</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Allowing to know if at least one move has been generated. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bd86f70519f954c07ff0d8a2a3a8ff6a"></a><!-- doxytag: member="moBestImprSelect::best_move" ref="bd86f70519f954c07ff0d8a2a3a8ff6a" args="" -->
|
|
M </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#bd86f70519f954c07ff0d8a2a3a8ff6a">best_move</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The best move. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dcac897424b5805f146bb1dbb429f2fe"></a><!-- doxytag: member="moBestImprSelect::best_fit" ref="dcac897424b5805f146bb1dbb429f2fe" args="" -->
|
|
<a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_best_impr_select.html#dcac897424b5805f146bb1dbb429f2fe">best_fit</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The best fitness. <br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class M><br>
|
|
class moBestImprSelect< M ></h3>
|
|
|
|
One of the possible <a class="el" href="classmo_move_select.html" title="Class that describes a move selector (moMove).">moMoveSelect</a>.
|
|
<p>
|
|
All neighbors are considered, and the movement which enables the best improvement is selected.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="mo_best_impr_select_8h-source.html#l00022">22</a> of file <a class="el" href="mo_best_impr_select_8h-source.html">moBestImprSelect.h</a>.<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="d10e3e6f8a0277731e95ef506d064d6d"></a><!-- doxytag: member="moBestImprSelect::update" ref="d10e3e6f8a0277731e95ef506d064d6d" args="(const M &__move, const Fitness &__fit)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classmo_best_impr_select.html">moBestImprSelect</a>< M >::update </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const M & </td>
|
|
<td class="paramname"> <em>__move</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">const <a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> & </td>
|
|
<td class="paramname"> <em>__fit</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Function that indicates if the current move has not improved the fitness.
|
|
<p>
|
|
If the given fitness enables an improvement, the move (<a class="el" href="classmo_move.html" title="Definition of a move.">moMove</a>) and the fitness linked to this move are saved.<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>__move</em> </td><td>a move. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__fit</em> </td><td>a fitness linked to the move. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE if the move does not improve the fitness. </dd></dl>
|
|
|
|
<p>
|
|
Implements <a class="el" href="classmo_move_select.html#7c157b6e64fd417acf6e900059204eb1">moMoveSelect< M ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="mo_best_impr_select_8h-source.html#l00047">47</a> of file <a class="el" href="mo_best_impr_select_8h-source.html">moBestImprSelect.h</a>.
|
|
<p>
|
|
References <a class="el" href="mo_best_impr_select_8h-source.html#l00086">moBestImprSelect< M >::best_fit</a>, <a class="el" href="mo_best_impr_select_8h-source.html#l00083">moBestImprSelect< M >::best_move</a>, and <a class="el" href="mo_best_impr_select_8h-source.html#l00080">moBestImprSelect< M >::first_time</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="169773d4d127acd782cf379f758222da"></a><!-- doxytag: member="moBestImprSelect::operator()" ref="169773d4d127acd782cf379f758222da" args="(M &__move, Fitness &__fit)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classmo_best_impr_select.html">moBestImprSelect</a>< M >::operator() </td>
|
|
<td>(</td>
|
|
<td class="paramtype">M & </td>
|
|
<td class="paramname"> <em>__move</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_best_impr_select.html#c4ae17435221fb0a8e8acd285210cfcb">Fitness</a> & </td>
|
|
<td class="paramname"> <em>__fit</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"> throw (<a class="el" href="class_empty_selection.html">EmptySelection</a>)<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Procedure which saved the best move and fitness.
|
|
<p>
|
|
<dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>__move</em> </td><td>the current move (result of the procedure). </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__fit</em> </td><td>the current fitness (result of the procedure). </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Exceptions:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="class_empty_selection.html" title="Special class that describes the case of no selection.">EmptySelection</a></em> </td><td>if no move has improved the fitness. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Implements <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_b_f.html#a03c40b95210569b826df79a2237a0d0">eoBF< M &, M::EOType::Fitness &, void ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="mo_best_impr_select_8h-source.html#l00065">65</a> of file <a class="el" href="mo_best_impr_select_8h-source.html">moBestImprSelect.h</a>.
|
|
<p>
|
|
References <a class="el" href="mo_best_impr_select_8h-source.html#l00086">moBestImprSelect< M >::best_fit</a>, <a class="el" href="mo_best_impr_select_8h-source.html#l00083">moBestImprSelect< M >::best_move</a>, and <a class="el" href="mo_best_impr_select_8h-source.html#l00080">moBestImprSelect< M >::first_time</a>.
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="mo_best_impr_select_8h-source.html">moBestImprSelect.h</a></ul>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Aug 3 16:38:57 2007 for PARADISEO-MO by
|
|
<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>
|
|
</html>
|