236 lines
15 KiB
HTML
236 lines
15 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: moHC< 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.4.7 -->
|
|
<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>moHC< M > Class Template Reference</h1><!-- doxytag: class="moHC" --><!-- doxytag: inherits="moAlgo< M::EOType >" -->Hill Climbing (HC).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="mo_h_c_8h-source.html">moHC.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for moHC< M >:
|
|
<p><center><img src="classmo_h_c.png" usemap="#moHC< M >_map" border="0" alt=""></center>
|
|
<map name="moHC< M >_map">
|
|
<area href="classmo_algo.html" alt="moAlgo< M::EOType >" shape="rect" coords="93,168,269,192">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_mon_op.html" alt="eoMonOp< M::EOType >" shape="rect" coords="93,112,269,136">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_op.html" alt="eoOp< EOType >" shape="rect" coords="0,56,176,80">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_u_f.html" alt="eoUF< M::EOType &, bool >" shape="rect" coords="186,56,362,80">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="186,0,362,24">
|
|
</map>
|
|
<a href="classmo_h_c-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 Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#6cafe093f86a80c225827884cb9dc5b7">moHC</a> (<a class="el" href="classmo_move_init.html">moMoveInit</a>< M > &__move_init, <a class="el" href="classmo_next_move.html">moNextMove</a>< M > &__next_move, <a class="el" href="classmo_move_incr_eval.html">moMoveIncrEval</a>< M > &__incr_eval, <a class="el" href="classmo_move_select.html">moMoveSelect</a>< M > &__move_select, <a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> > &__full_eval)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Full constructor. <a href="#6cafe093f86a80c225827884cb9dc5b7"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#45f27309792e584a27fa6dcb86ccda65">moHC</a> (<a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > &__move_expl, <a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> > &__full_eval)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Light constructor. <a href="#45f27309792e584a27fa6dcb86ccda65"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#ed4e273c420efa6386c5975a696a5010">operator()</a> (<a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> &__sol)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/struct_function.html">Function</a> which launches the HC. <a href="#ed4e273c420efa6386c5975a696a5010"></a><br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Private Types</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d219296ede03c679646bce2fe8ff96cb"></a><!-- doxytag: member="moHC::EOT" ref="d219296ede03c679646bce2fe8ff96cb" args="" -->
|
|
typedef M::EOType </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Alias for the type. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="56487c97a7cf0c423cc879d1bbd45027"></a><!-- doxytag: member="moHC::Fitness" ref="56487c97a7cf0c423cc879d1bbd45027" args="" -->
|
|
typedef EOT::Fitness </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#56487c97a7cf0c423cc879d1bbd45027">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>Private Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6bfb4553fb699f1e08f7d9c37d06103"></a><!-- doxytag: member="moHC::move_expl" ref="f6bfb4553fb699f1e08f7d9c37d06103" args="" -->
|
|
<a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#f6bfb4553fb699f1e08f7d9c37d06103">move_expl</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Complete exploration of the neighborhood. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4b0d5cc70fc3d83f59a48b2bdea65736"></a><!-- doxytag: member="moHC::full_eval" ref="4b0d5cc70fc3d83f59a48b2bdea65736" args="" -->
|
|
<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_h_c.html#4b0d5cc70fc3d83f59a48b2bdea65736">full_eval</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">A full evaluation function. <br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class M><br>
|
|
class moHC< M ></h3>
|
|
|
|
Hill Climbing (HC).
|
|
<p>
|
|
Class which describes the algorithm for a hill climbing.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="mo_h_c_8h-source.html#l00026">26</a> of file <a class="el" href="mo_h_c_8h-source.html">moHC.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="6cafe093f86a80c225827884cb9dc5b7"></a><!-- doxytag: member="moHC::moHC" ref="6cafe093f86a80c225827884cb9dc5b7" args="(moMoveInit< M > &__move_init, moNextMove< M > &__next_move, moMoveIncrEval< M > &__incr_eval, moMoveSelect< M > &__move_select, eoEvalFunc< EOT > &__full_eval)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmo_h_c.html">moHC</a>< M >::<a class="el" href="classmo_h_c.html">moHC</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_init.html">moMoveInit</a>< M > & </td>
|
|
<td class="paramname"> <em>__move_init</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_next_move.html">moNextMove</a>< M > & </td>
|
|
<td class="paramname"> <em>__next_move</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_incr_eval.html">moMoveIncrEval</a>< M > & </td>
|
|
<td class="paramname"> <em>__incr_eval</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_select.html">moMoveSelect</a>< M > & </td>
|
|
<td class="paramname"> <em>__move_select</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> > & </td>
|
|
<td class="paramname"> <em>__full_eval</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Full constructor.
|
|
<p>
|
|
All the boxes are given in order the HC to use a <a class="el" href="classmo_h_c_move_loop_expl.html">moHCMoveLoopExpl</a>.<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_init</em> </td><td>a move initialiser. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__next_move</em> </td><td>a neighborhood explorer. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__incr_eval</em> </td><td>a (generally) efficient evaluation function. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__move_select</em> </td><td>a move selector. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__full_eval</em> </td><td>a full evaluation function. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="mo_h_c_8h-source.html#l00053">53</a> of file <a class="el" href="mo_h_c_8h-source.html">moHC.h</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="45f27309792e584a27fa6dcb86ccda65"></a><!-- doxytag: member="moHC::moHC" ref="45f27309792e584a27fa6dcb86ccda65" args="(moMoveExpl< M > &__move_expl, eoEvalFunc< EOT > &__full_eval)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class M> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="classmo_h_c.html">moHC</a>< M >::<a class="el" href="classmo_h_c.html">moHC</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > & </td>
|
|
<td class="paramname"> <em>__move_expl</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> > & </td>
|
|
<td class="paramname"> <em>__full_eval</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Light constructor.
|
|
<p>
|
|
This constructor allow to use another <a class="el" href="classmo_move_expl.html">moMoveExpl</a> (generally not a <a class="el" href="classmo_h_c_move_loop_expl.html">moHCMoveLoopExpl</a>).<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_expl</em> </td><td>a complete explorer. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>__full_eval</em> </td><td>a full evaluation function. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="mo_h_c_8h-source.html#l00067">67</a> of file <a class="el" href="mo_h_c_8h-source.html">moHC.h</a>.
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="ed4e273c420efa6386c5975a696a5010"></a><!-- doxytag: member="moHC::operator()" ref="ed4e273c420efa6386c5975a696a5010" args="(EOT &__sol)" -->
|
|
<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_h_c.html">moHC</a>< M >::operator() </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_h_c.html#d219296ede03c679646bce2fe8ff96cb">EOT</a> & </td>
|
|
<td class="paramname"> <em>__sol</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/struct_function.html">Function</a> which launches the HC.
|
|
<p>
|
|
The HC has to improve a current solution. As the <a class="el" href="classmo_s_a.html">moSA</a> and the mo TS, it can be used for HYBRIDATION in an evolutionnary algorithm.<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>__sol</em> </td><td>a current solution to improve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl compact><dt><b>Returns:</b></dt><dd>TRUE. </dd></dl>
|
|
|
|
<p>
|
|
Implements <a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_u_f.html#786e028409366dc273e19104f17ba68a">eoUF< M::EOType &, bool ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="mo_h_c_8h-source.html#l00082">82</a> of file <a class="el" href="mo_h_c_8h-source.html">moHC.h</a>.
|
|
<p>
|
|
References <a class="el" href="mo_h_c_8h-source.html#l00130">moHC< M >::full_eval</a>, and <a class="el" href="mo_h_c_8h-source.html#l00127">moHC< M >::move_expl</a>.
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="mo_h_c_8h-source.html">moHC.h</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 12:04:05 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.4.7 </small></address>
|
|
</body>
|
|
</html>
|