git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@288 331e1502-861f-0410-8da2-ba01fb791d7f
151 lines
8.9 KiB
HTML
151 lines
8.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>PARADISEO-MO: moMoveSelect< 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.1 -->
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="main.html"><span>Main Page</span></a></li>
|
|
<li id="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>moMoveSelect< M > Class Template Reference</h1><!-- doxytag: class="moMoveSelect" --><!-- doxytag: inherits="eoBF< M &, M::EOType::Fitness &, void >" -->Class that describes a move selector (<a class="el" href="classmo_move.html">moMove</a>).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="mo_move_select_8h-source.html">moMoveSelect.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for moMoveSelect< M >:
|
|
<p><center><img src="classmo_move_select.png" usemap="#moMoveSelect< M >_map" border="0" alt=""></center>
|
|
<map name="moMoveSelect< M >_map">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_b_f.html" alt="eoBF< M &, M::EOType::Fitness &, void >" shape="rect" coords="266,56,522,80">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="266,0,522,24">
|
|
<area href="classmo_best_impr_select.html" alt="moBestImprSelect< M >" shape="rect" coords="0,168,256,192">
|
|
<area href="classmo_first_impr_select.html" alt="moFirstImprSelect< M >" shape="rect" coords="266,168,522,192">
|
|
<area href="classmo_rand_impr_select.html" alt="moRandImprSelect< M >" shape="rect" coords="532,168,788,192">
|
|
</map>
|
|
<a href="classmo_move_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="8148ccc0e6fbd209c3fe6829559895c8"></a><!-- doxytag: member="moMoveSelect::Fitness" ref="8148ccc0e6fbd209c3fe6829559895c8" args="" -->
|
|
typedef M::EOType::Fitness </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_move_select.html#8148ccc0e6fbd209c3fe6829559895c8">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">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_move_select.html#bca4c43f13d26eca7163aeb272a4a52e">init</a> (const <a class="el" href="classmo_move_select.html#8148ccc0e6fbd209c3fe6829559895c8">Fitness</a> &__fit)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Procedure which initialises all that the move selector needs including the initial fitness. <a href="#bca4c43f13d26eca7163aeb272a4a52e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_move_select.html#7c157b6e64fd417acf6e900059204eb1">update</a> (const M &__move, const <a class="el" href="classmo_move_select.html#8148ccc0e6fbd209c3fe6829559895c8">Fitness</a> &__fit)=0</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Function which updates the best solutions. <a href="#7c157b6e64fd417acf6e900059204eb1"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class M><br>
|
|
class moMoveSelect< M ></h3>
|
|
|
|
Class that describes a move selector (<a class="el" href="classmo_move.html">moMove</a>).
|
|
<p>
|
|
It iteratively considers some moves (<a class="el" href="classmo_move.html">moMove</a>) and their associated fitnesses. The best move is so regularly updated. At any time, it could be accessed.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="mo_move_select_8h-source.html#l00032">32</a> of file <a class="el" href="mo_move_select_8h-source.html">moMoveSelect.h</a>.<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="bca4c43f13d26eca7163aeb272a4a52e"></a><!-- doxytag: member="moMoveSelect::init" ref="bca4c43f13d26eca7163aeb272a4a52e" args="(const Fitness &__fit)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void <a class="el" href="classmo_move_select.html">moMoveSelect</a>< M >::init </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classmo_move_select.html#8148ccc0e6fbd209c3fe6829559895c8">Fitness</a> & </td>
|
|
<td class="paramname"> <em>__fit</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Procedure which initialises all that the move selector needs including the initial fitness.
|
|
<p>
|
|
In order to know the fitness of the solution, for which the neighborhood will be soon explored<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>__fit</em> </td><td>the current fitness. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Implemented in <a class="el" href="classmo_best_impr_select.html#2d2abf9aa17dc77cbb4f41810ab7b956">moBestImprSelect< M ></a>, <a class="el" href="classmo_first_impr_select.html#4c5ce18ede46247a439c68f6954a4055">moFirstImprSelect< M ></a>, and <a class="el" href="classmo_rand_impr_select.html#a19726a1509cff874801615d63a3b5d9">moRandImprSelect< M ></a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="7c157b6e64fd417acf6e900059204eb1"></a><!-- doxytag: member="moMoveSelect::update" ref="7c157b6e64fd417acf6e900059204eb1" args="(const M &__move, const Fitness &__fit)=0" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual bool <a class="el" href="classmo_move_select.html">moMoveSelect</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_move_select.html#8148ccc0e6fbd209c3fe6829559895c8">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> [pure virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Function which updates the best solutions.
|
|
<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 new move. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__fit</em> </td><td>a fitness linked to the new move. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a boolean that expresses the need to resume the exploration. </dd></dl>
|
|
|
|
<p>
|
|
Implemented in <a class="el" href="classmo_best_impr_select.html#d10e3e6f8a0277731e95ef506d064d6d">moBestImprSelect< M ></a>, and <a class="el" href="classmo_rand_impr_select.html#60ae5548560caee7e28d5ed2446186c9">moRandImprSelect< M ></a>.
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="mo_move_select_8h-source.html">moMoveSelect.h</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Mon Apr 23 09:22:27 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.1 </small></address>
|
|
</body>
|
|
</html>
|