⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_easylocal__runner.html

📁 一个tabu search算法框架
💻 HTML
📖 第 1 页 / 共 3 页
字号:
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::Runner&lt;Input, State&gt;::SetCurrentState (
          </b></td>
          <td valign="bottom"><b>
const State &amp; <em>s</em>&nbsp;)<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Sets the internal state of the runner to be equal to the parameter. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
&nbsp;</td><td>
 the state to become the new internal state </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__MoveRunner.html#a3">easylocal::MoveRunner</a>.    </td>
  </tr>
</table>
<a name="a17" doxytag="easylocal::Runner::SetInput"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::Runner&lt;Input, State&gt;::SetInput (
          </b></td>
          <td valign="bottom"><b>
Input * <em>in</em>&nbsp;)<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Sets the internal input pointer to the new value passed as parameter. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>in</em>
&nbsp;</td><td>
 the new input object </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__MoveRunner.html#a13">easylocal::MoveRunner</a>, and <a class="el" href="class_easylocal__TabuSearch.html#a2">easylocal::TabuSearch</a>.    </td>
  </tr>
</table>
<a name="a16" doxytag="easylocal::Runner::SetName"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::Runner&lt; Input, State &gt;::SetName (
          </b></td>
          <td valign="bottom"><b>
std::string <em>s</em>&nbsp;)
          </b></td>
        </tr>

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

<p>
Sets the name of the runner to the given parameter.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>s</em>
&nbsp;</td><td>
 the name to give to the runner </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00764">764</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a20" doxytag="easylocal::Runner::SetParameters"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::Runner&lt;Input, State&gt;::SetParameters (
          </b></td>
          <td valign="bottom"><b>
const <a class="el" href="class_easylocal__ParameterBox.html">ParameterBox</a> &amp; <em>pb</em>&nbsp;)<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Sets the runner parameters, passed through a parameter box. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pb</em>
&nbsp;</td><td>
 the object containing the parameter setting  for the runner </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__MoveRunner.html#a16">easylocal::MoveRunner</a>, <a class="el" href="class_easylocal__TabuSearch.html#a3">easylocal::TabuSearch</a>, and <a class="el" href="class_easylocal__SimulatedAnnealing.html#a1">easylocal::SimulatedAnnealing</a>.    </td>
  </tr>
</table>
<a name="a3" doxytag="easylocal::Runner::Step"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::Runner&lt;Input, State&gt;::Step (
          </b></td>
          <td valign="bottom"><b>
unsigned int <em>n</em>&nbsp;)<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Performs a given number of steps of the search method. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>n</em>
&nbsp;</td><td>
 the number of steps to make </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__MoveRunner.html#a2">easylocal::MoveRunner</a>.    </td>
  </tr>
</table>
<a name="a15" doxytag="easylocal::Runner::Type"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
std::string easylocal::Runner&lt; Input, State &gt;::Type (
          </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>

<p>
Inspects the type of the runner.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 the type of the runner </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00755">755</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::Runner::name"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
std::string easylocal::Runner&lt;Input, State&gt;::name<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
The name of the runner. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00554">554</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n1" doxytag="easylocal::Runner::type"></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 State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
std::string easylocal::Runner&lt;Input, State&gt;::type<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
The type of the runner. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00554">554</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -