class_easylocal__multirunnersolver.html

来自「一个tabu search算法框架」· HTML 代码 · 共 415 行 · 第 1/2 页

HTML
415
字号
<!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:28 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::MultiRunnerSolver  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::MultiRunnerSolver<p><center><img src="class_easylocal__MultiRunnerSolver_inherit_graph.gif" border="0" usemap="#easylocal::MultiRunnerSolver_inherit_map" alt="Inheritance graph"></center>
<map name="easylocal::MultiRunnerSolver_inherit_map">
<area href="class_easylocal__ComparativeSolver.html" shape="rect" coords="0,266,173,285">
<area href="class_easylocal__TokenRingSolver.html" shape="rect" coords="197,266,363,285">
<area href="class_easylocal__LocalSearchSolver.html" shape="rect" coords="33,133,332,152">
<area href="class_easylocal__Solver.html" shape="rect" coords="84,66,281,85">
<area href="class_easylocal__AbstractSolver.html" shape="rect" coords="108,0,257,18">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for easylocal::MultiRunnerSolver:<p><center><img src="class_easylocal__MultiRunnerSolver_coll_graph.gif" border="0" usemap="#easylocal::MultiRunnerSolver_coll_map" alt="Collaboration graph"></center>
<map name="easylocal::MultiRunnerSolver_coll_map">
<area href="class_easylocal__LocalSearchSolver.html" shape="rect" coords="96,165,395,183">
<area href="class_easylocal__Solver.html" shape="rect" coords="0,82,197,101">
<area href="class_easylocal__AbstractSolver.html" shape="rect" coords="24,-1,173,18">
<area href="class_easylocal__StateManager.html" shape="rect" coords="232,-1,459,18">
<area href="class_easylocal__OutputManager.html" shape="rect" coords="312,82,592,101">
<area href="class_easylocal__Runner.html" shape="rect" coords="419,165,611,183">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__MultiRunnerSolver-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li>void <a class="el" href="class_easylocal__MultiRunnerSolver.html#a0">ClearRunners</a> ()
<li>void <a class="el" href="class_easylocal__MultiRunnerSolver.html#a1">AddRunner</a> (<a class="el" href="class_easylocal__Runner.html">Runner</a>&lt; Input, State &gt; *r)
<li>void <a class="el" href="class_easylocal__MultiRunnerSolver.html#a2">SetRunner</a> (<a class="el" href="class_easylocal__Runner.html">Runner</a>&lt; Input, State &gt; *r, unsigned int i)
</ul>
<h2>Protected Methods</h2>
<ul>
<li><a class="el" href="class_easylocal__MultiRunnerSolver.html#b0">MultiRunnerSolver</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>unsigned long <a class="el" href="class_easylocal__MultiRunnerSolver.html#b1">NumberOfIterations</a> () const
</ul>
<h2>Protected Attributes</h2>
<ul>
<li>unsigned long <a class="el" href="class_easylocal__MultiRunnerSolver.html#n0">total_iterations</a>
<li>unsigned int <a class="el" href="class_easylocal__MultiRunnerSolver.html#n1">start_runner</a>
<li>std::vector&lt;<a class="el" href="class_easylocal__Runner.html">Runner</a>&lt;Input,State&gt;* &gt; <a class="el" href="class_easylocal__MultiRunnerSolver.html#n2">runners</a>
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class Input, class Output, class State&gt;  class easylocal::MultiRunnerSolver</h3>

A Multi <a class="el" href="class_easylocal__Runner.html">Runner</a> solver handles a set of runners. 
<p>

<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00887">887</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::MultiRunnerSolver::MultiRunnerSolver"></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::MultiRunnerSolver&lt; Input, Output, State &gt;::MultiRunnerSolver&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> [protected]</code>
          </b></td>
        </tr>

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

<p>
Constructs a multi runner 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="EasyLocalTemplates_cpp-source.html#l01821">1821</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a1" doxytag="easylocal::MultiRunnerSolver::AddRunner"></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::MultiRunnerSolver&lt; Input, Output, State &gt;::AddRunner (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_easylocal__Runner.html">Runner</a>&lt; Input, State &gt; * <em>r</em>&nbsp;)
          </b></td>
        </tr>

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

<p>
Adds the given runner to the list of the managed runners.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>r</em>
&nbsp;</td><td>
 a pointer to a compatible runner to add </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01845">1845</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a0" doxytag="easylocal::MultiRunnerSolver::ClearRunners"></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::MultiRunnerSolver&lt; Input, Output, State &gt;::ClearRunners (
          </b></td>
          <td valign="bottom"><b>
)
          </b></td>
        </tr>

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

⌨️ 快捷键说明

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