git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1277 331e1502-861f-0410-8da2-ba01fb791d7f
256 lines
18 KiB
HTML
256 lines
18 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-MOMovingObjects: moTS< 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.4 -->
|
|
<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>moTS< M > Class Template Reference</h1><!-- doxytag: class="moTS" --><!-- doxytag: inherits="moAlgo< M::EOType >" -->Tabu Search (TS).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="mo_t_s_8h-source.html">moTS.h</a>></code>
|
|
<p>
|
|
Inherits <a class="el" href="classmo_algo.html">moAlgo< M::EOType ></a>.
|
|
<p>
|
|
|
|
<p>
|
|
<a href="classmo_t_s-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_t_s.html#336408ddf8b7a29ffa8e01e9c18d8e10">moTS</a> (<a class="el" href="classmo_move_init.html">moMoveInit</a>< M > &_move_initializer, <a class="el" href="classmo_next_move.html">moNextMove</a>< M > &_next_move_generator, <a class="el" href="classmo_move_incr_eval.html">moMoveIncrEval</a>< M > &_incremental_evaluation, <a class="el" href="classmo_tabu_list.html">moTabuList</a>< M > &_tabu_list, <a class="el" href="classmo_aspir_crit.html">moAspirCrit</a>< M > &_aspiration_criterion, <a class="el" href="classmo_sol_continue.html">moSolContinue</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > &_continue, <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > &_full_evaluation)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor of a <a class="el" href="classmo_t_s.html" title="Tabu Search (TS).">moTS</a> specifying all the boxes. <a href="#336408ddf8b7a29ffa8e01e9c18d8e10"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#7e435fac1b8d5a410b7374d114e005e2">moTS</a> (<a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > &_move_explorer, <a class="el" href="classmo_sol_continue.html">moSolContinue</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > &_continue, <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > &_full_evaluation)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor with less parameters. <a href="#7e435fac1b8d5a410b7374d114e005e2"></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_t_s.html#2a011779723e24a5132a37593775bf56">operator()</a> (<a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> &_solution)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/struct_function.html">Function</a> which launchs the Tabu Search. <a href="#2a011779723e24a5132a37593775bf56"></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="90d19d468c12ab5bd796948ce1ce79b1"></a><!-- doxytag: member="moTS::EOT" ref="90d19d468c12ab5bd796948ce1ce79b1" args="" -->
|
|
typedef M::EOType </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">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="aa0eefbb17111422e495d1255f876fca"></a><!-- doxytag: member="moTS::Fitness" ref="aa0eefbb17111422e495d1255f876fca" args="" -->
|
|
typedef EOT::Fitness </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#aa0eefbb17111422e495d1255f876fca">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="9fd948a2c586f1991f5a1eee927af8a6"></a><!-- doxytag: member="moTS::move_explorer" ref="9fd948a2c586f1991f5a1eee927af8a6" args="" -->
|
|
<a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#9fd948a2c586f1991f5a1eee927af8a6">move_explorer</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Neighborhood explorer. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="962a37393faf5239e657388d375cd9b3"></a><!-- doxytag: member="moTS::continu" ref="962a37393faf5239e657388d375cd9b3" args="" -->
|
|
<a class="el" href="classmo_sol_continue.html">moSolContinue</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#962a37393faf5239e657388d375cd9b3">continu</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Stop criterion. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f44bb408007e2bff99f7a201842e8e48"></a><!-- doxytag: member="moTS::full_evaluation" ref="f44bb408007e2bff99f7a201842e8e48" args="" -->
|
|
<a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classmo_t_s.html#f44bb408007e2bff99f7a201842e8e48">full_evaluation</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Full evaluation function. <br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class M><br>
|
|
class moTS< M ></h3>
|
|
|
|
Tabu Search (TS).
|
|
<p>
|
|
Generic algorithm that describes a tabu search.
|
|
<p>Definition at line <a class="el" href="mo_t_s_8h-source.html#l00050">50</a> of file <a class="el" href="mo_t_s_8h-source.html">moTS.h</a>.</p>
|
|
<hr><h2>Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" name="336408ddf8b7a29ffa8e01e9c18d8e10"></a><!-- doxytag: member="moTS::moTS" ref="336408ddf8b7a29ffa8e01e9c18d8e10" args="(moMoveInit< M > &_move_initializer, moNextMove< M > &_next_move_generator, moMoveIncrEval< M > &_incremental_evaluation, moTabuList< M > &_tabu_list, moAspirCrit< M > &_aspiration_criterion, moSolContinue< EOT > &_continue, eoEvalFunc< EOT > &_full_evaluation)" -->
|
|
<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_t_s.html">moTS</a>< M >::<a class="el" href="classmo_t_s.html">moTS</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_init.html">moMoveInit</a>< M > & </td>
|
|
<td class="paramname"> <em>_move_initializer</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_generator</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>_incremental_evaluation</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_tabu_list.html">moTabuList</a>< M > & </td>
|
|
<td class="paramname"> <em>_tabu_list</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_aspir_crit.html">moAspirCrit</a>< M > & </td>
|
|
<td class="paramname"> <em>_aspiration_criterion</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_sol_continue.html">moSolContinue</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td>
|
|
<td class="paramname"> <em>_continue</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td>
|
|
<td class="paramname"> <em>_full_evaluation</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>
|
|
Constructor of a <a class="el" href="classmo_t_s.html" title="Tabu Search (TS).">moTS</a> specifying all the boxes.
|
|
<p>
|
|
In this constructor, a <a class="el" href="classmo_t_s_move_loop_expl.html" title="Explorer for a Tabu Search algorithm.">moTSMoveLoopExpl</a> is instanciated.<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_initializer</em> </td><td>The move initializer. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_next_move_generator</em> </td><td>The neighbourhood explorer. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_incremental_evaluation</em> </td><td>The (generally) efficient evaluation. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_tabu_list</em> </td><td>The tabu list. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_aspiration_criterion</em> </td><td>An aspiration criterion. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_continue</em> </td><td>The stopping criterion. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_full_evaluation</em> </td><td>A full evaluation function. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="mo_t_s_8h-source.html#l00072">72</a> of file <a class="el" href="mo_t_s_8h-source.html">moTS.h</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="7e435fac1b8d5a410b7374d114e005e2"></a><!-- doxytag: member="moTS::moTS" ref="7e435fac1b8d5a410b7374d114e005e2" args="(moMoveExpl< M > &_move_explorer, moSolContinue< EOT > &_continue, eoEvalFunc< EOT > &_full_evaluation)" -->
|
|
<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_t_s.html">moTS</a>< M >::<a class="el" href="classmo_t_s.html">moTS</a> </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_move_expl.html">moMoveExpl</a>< M > & </td>
|
|
<td class="paramname"> <em>_move_explorer</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="el" href="classmo_sol_continue.html">moSolContinue</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td>
|
|
<td class="paramname"> <em>_continue</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_eval_func.html">eoEvalFunc</a>< <a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> > & </td>
|
|
<td class="paramname"> <em>_full_evaluation</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>
|
|
Constructor with less parameters.
|
|
<p>
|
|
The explorer is given in the parameters.<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_explorer</em> </td><td>The explorer (generally different that a <a class="el" href="classmo_t_s_move_loop_expl.html" title="Explorer for a Tabu Search algorithm.">moTSMoveLoopExpl</a>). </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_continue</em> </td><td>The stopping criterion. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_full_evaluation</em> </td><td>A full evaluation function. </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>Definition at line <a class="el" href="mo_t_s_8h-source.html#l00089">89</a> of file <a class="el" href="mo_t_s_8h-source.html">moTS.h</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="2a011779723e24a5132a37593775bf56"></a><!-- doxytag: member="moTS::operator()" ref="2a011779723e24a5132a37593775bf56" args="(EOT &_solution)" -->
|
|
<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_t_s.html">moTS</a>< M >::operator() </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classmo_t_s.html#90d19d468c12ab5bd796948ce1ce79b1">EOT</a> & </td>
|
|
<td class="paramname"> <em>_solution</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:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/struct_function.html">Function</a> which launchs the Tabu Search.
|
|
<p>
|
|
Algorithm of the tabu search. As a <a class="el" href="classmo_s_a.html" title="Simulated Annealing (SA).">moSA</a> or a <a class="el" href="classmo_h_c.html" title="Hill Climbing (HC).">moHC</a>, it can be used for HYBRIDATION in an evolutionary algorithm. For security a lock (pthread_mutex_t) is closed during the 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>_solution</em> </td><td>a solution to improve. </td></tr>
|
|
</table>
|
|
</dl>
|
|
<dl class="return" compact><dt><b>Returns:</b></dt><dd>TRUE. </dd></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_u_f.html#786e028409366dc273e19104f17ba68a">eoUF< M::EOType &, bool ></a>.</p>
|
|
|
|
<p>Definition at line <a class="el" href="mo_t_s_8h-source.html#l00102">102</a> of file <a class="el" href="mo_t_s_8h-source.html">moTS.h</a>.</p>
|
|
|
|
<p>References <a class="el" href="mo_t_s_8h-source.html#l00145">moTS< M >::continu</a>, <a class="el" href="mo_t_s_8h-source.html#l00148">moTS< M >::full_evaluation</a>, and <a class="el" href="mo_t_s_8h-source.html#l00142">moTS< M >::move_explorer</a>.</p>
|
|
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="mo_t_s_8h-source.html">moTS.h</a></ul>
|
|
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jan 16 15:50:41 2008 for ParadisEO-MOMovingObjects by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.4 </small></address>
|
|
</body>
|
|
</html>
|