class_easylocal__comparativesolver.html

来自「一个tabu search算法框架」· HTML 代码 · 共 215 行

HTML
215
字号
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>EasyLocal++ Documentation</title>
  <link href="local.css" rel="stylesheet" type="text/css">
</head>

<body lang="en">

<table width="100%" border="0">
  <tbody>
    <tr>
      <td colspan="2"><h1 class="nojustify">EasyLocal++ Documentation</h1>
        <hr>
      </td>
    </tr>
    <tr>
      <td width="30" align="center">&nbsp;</td>
      <td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 18:59:21 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>easylocal::ComparativeSolver  Class Template Reference</h1><code>#include &lt;<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>&gt;</code>
<p>
Inheritance diagram for easylocal::ComparativeSolver<p><center><img src="class_easylocal__ComparativeSolver_inherit_graph.gif" border="0" usemap="#easylocal::ComparativeSolver_inherit_map" alt="Inheritance graph"></center>
<map name="easylocal::ComparativeSolver_inherit_map">
<area href="class_easylocal__MultiRunnerSolver.html" shape="rect" coords="0,200,301,218">
<area href="class_easylocal__LocalSearchSolver.html" shape="rect" coords="1,133,300,152">
<area href="class_easylocal__Solver.html" shape="rect" coords="52,66,249,85">
<area href="class_easylocal__AbstractSolver.html" shape="rect" coords="76,0,225,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for easylocal::ComparativeSolver:<p><center><img src="class_easylocal__ComparativeSolver_coll_graph.gif" border="0" usemap="#easylocal::ComparativeSolver_coll_map" alt="Collaboration graph"></center>
<map name="easylocal::ComparativeSolver_coll_map">
<area href="class_easylocal__MultiRunnerSolver.html" shape="rect" coords="296,248,597,267">
<area href="class_easylocal__LocalSearchSolver.html" shape="rect" coords="96,165,395,184">
<area href="class_easylocal__Solver.html" shape="rect" coords="0,83,197,101">
<area href="class_easylocal__AbstractSolver.html" shape="rect" coords="24,0,173,19">
<area href="class_easylocal__StateManager.html" shape="rect" coords="232,0,459,19">
<area href="class_easylocal__OutputManager.html" shape="rect" coords="312,83,592,101">
<area href="class_easylocal__Runner.html" shape="rect" coords="419,165,611,184">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__ComparativeSolver-members.html">List of all members.</a><h2>Protected Methods</h2>
<ul>
<li><a class="el" href="class_easylocal__ComparativeSolver.html#b0">ComparativeSolver</a> (<a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt; Input, State &gt; *sm, <a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt; Input, Output, State &gt; *om, Input *in=NULL, Output *out=NULL)
<li>void <a class="el" href="class_easylocal__ComparativeSolver.html#b1">Run</a> ()
</ul>
<h2>Protected Attributes</h2>
<ul>
<li>State <a class="el" href="class_easylocal__ComparativeSolver.html#n0">start_state</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class Input, class Output, class State&gt;  class easylocal::ComparativeSolver</h3>

A Comparative <a class="el" href="class_easylocal__Solver.html">Solver</a> applies different runners to the same instances (and the same initial solutions). 
<p>

<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00911">911</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="b0" doxytag="easylocal::ComparativeSolver::ComparativeSolver"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td colspan="2"><b>
template&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
easylocal::ComparativeSolver&lt;Input, Output, State&gt;::ComparativeSolver&lt;Input, Output, State&gt; (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt; Input, State &gt; * <em>sm</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
<a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt; Input, Output, State &gt; * <em>om</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
Input * <em>in</em> = NULL, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
Output * <em>out</em> = NULL&nbsp;)<code> [inline, protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Constructs a comparative solver by providing it links to a state manager, an output manager, an input, and an output object.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>sm</em>
&nbsp;</td><td>
 a pointer to a compatible state manager </td></tr>
<tr><td valign=top><em>om</em>
&nbsp;</td><td>
 a pointer to a compatible output manager </td></tr>
<tr><td valign=top><em>in</em>
&nbsp;</td><td>
 a pointer to an input object </td></tr>
<tr><td valign=top><em>out</em>
&nbsp;</td><td>
 a pointer to an output object </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00922">922</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="b1" doxytag="easylocal::ComparativeSolver::Run"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td colspan="2"><b>
template&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::ComparativeSolver&lt; Input, Output, State &gt;::Run (
          </b></td>
          <td valign="bottom"><b>
)<code> [protected, virtual]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Lets all the managed runners Go, and then it collects the best state found. 
<p>
Reimplemented from <a class="el" href="class_easylocal__LocalSearchSolver.html#b1">easylocal::LocalSearchSolver</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01860">1860</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n0" doxytag="easylocal::ComparativeSolver::start_state"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td colspan="2"><b>
template&lt;class Input, class Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
State easylocal::ComparativeSolver&lt;Input, Output, State&gt;::start_state<code> [protected]</code>
          </b></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
The start state is equal for each runner used and is kept in this variable. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00927">927</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a><li><a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a></ul>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><hr>
        <span class="mark">Go to:</span> the <a href="index.html">Main Page</a> of the documentation.
      </td>
    </tr>
  </tbody>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?