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

📄 class_easylocal__moverunner.html

📁 一个tabu search算法框架
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the maximum value of iterations allowed for the runner.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 the maximum value of iterations allowed </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00915">915</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="b5" doxytag="easylocal::MoveRunner::MaxIterationExpired"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
bool easylocal::MoveRunner&lt; Input, State, Move &gt;::MaxIterationExpired (
          </b></td>
          <td valign="bottom"><b>
)<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
Verifies whether the upper bound on the number of iterations allowed for the strategy has been reached.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 true if the maximum number of iteration has been reached, false otherwise </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01046">1046</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00942">Go</a>().    </td>
  </tr>
</table>
<a name="a10" doxytag="easylocal::MoveRunner::NumberOfIterations"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
unsigned long easylocal::MoveRunner&lt; Input, State, Move &gt;::NumberOfIterations (
          </b></td>
          <td valign="bottom"><b>
) const<code> [virtual]</code>
          </b></td>
        </tr>

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

<p>
Returns the number of iterations elapsed.
<p>
<dl compact><dt>
<b>Returns: </b><dd>
 the number of iterations performed by the runner </dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__Runner.html#a12">easylocal::Runner</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00906">906</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a15" doxytag="easylocal::MoveRunner::Print"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt; Input, State, Move &gt;::Print (
          </b></td>
          <td valign="bottom"><b>
std::ostream &amp; <em>os</em> = std::cout&nbsp;) const<code> [virtual]</code>
          </b></td>
        </tr>

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

<p>
Outputs the name of the runner on a given output stream.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>os</em>
&nbsp;</td><td>
 the output stream </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__Runner.html#a4">easylocal::Runner</a>.
<p>
Reimplemented in <a class="el" href="class_easylocal__SteepestDescent.html#a0">easylocal::SteepestDescent</a>, <a class="el" href="class_easylocal__HillClimbing.html#a0">easylocal::HillClimbing</a>, <a class="el" href="class_easylocal__TabuSearch.html#a1">easylocal::TabuSearch</a>, and <a class="el" href="class_easylocal__SimulatedAnnealing.html#a2">easylocal::SimulatedAnnealing</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00818">818</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00942">Go</a>().    </td>
  </tr>
</table>
<a name="b7" doxytag="easylocal::MoveRunner::SelectMove"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt;Input, State, Move&gt;::SelectMove (
          </b></td>
          <td valign="bottom"><b>
)<code> [protected, pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Encodes the criterion used to select the move at each step. 
<p>
Reimplemented in <a class="el" href="class_easylocal__SteepestDescent.html#b5">easylocal::SteepestDescent</a>, <a class="el" href="class_easylocal__HillClimbing.html#b6">easylocal::HillClimbing</a>, <a class="el" href="class_easylocal__TabuSearch.html#b4">easylocal::TabuSearch</a>, and <a class="el" href="class_easylocal__SimulatedAnnealing.html#b5">easylocal::SimulatedAnnealing</a>.
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00942">Go</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l01006">Step</a>().    </td>
  </tr>
</table>
<a name="a3" doxytag="easylocal::MoveRunner::SetCurrentState"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt; Input, State, Move &gt;::SetCurrentState (
          </b></td>
          <td valign="bottom"><b>
const State &amp; <em>s</em>&nbsp;)<code> [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 the value passed as 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 state to become the current state of the runner </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__Runner.html#a5">easylocal::Runner</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00840">840</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a13" doxytag="easylocal::MoveRunner::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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt; Input, State, Move &gt;::SetInput (
          </b></td>
          <td valign="bottom"><b>
Input * <em>in</em>&nbsp;)<code> [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. </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__Runner.html#a17">easylocal::Runner</a>.
<p>
Reimplemented in <a class="el" href="class_easylocal__TabuSearch.html#a2">easylocal::TabuSearch</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00795">795</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a12" doxytag="easylocal::MoveRunner::SetMaxIteration"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt; Input, State, Move &gt;::SetMaxIteration (
          </b></td>
          <td valign="bottom"><b>
unsigned long <em>max</em>&nbsp;)
          </b></td>
        </tr>

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

<p>
Sets a bound on the maximum number of iterations allowed for the runner.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>max</em>
&nbsp;</td><td>
 the maximum number of iterations allowed </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00923">923</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a16" doxytag="easylocal::MoveRunner::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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt; Input, State, Move &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> [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 algorithm </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="class_easylocal__Runner.html#a20">easylocal::Runner</a>.
<p>
Reimplemented in <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>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00932">932</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a17" doxytag="easylocal::MoveRunner::SetPlotStream"></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, class Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::MoveRunner&lt;Input, State, Move&gt;::SetPlotStream (
          </b></td>

⌨️ 快捷键说明

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