class_easylocal__localsearchsolver.html

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

HTML
782
字号
          <td nowrap valign="top"><b> 
unsigned long easylocal::LocalSearchSolver&lt;Input, Output, State&gt;::NumberOfIterations (
          </b></td>
          <td valign="bottom"><b>
) const<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>
Returns the number of iterations performed in the search. 
<p>
Reimplemented in <a class="el" href="class_easylocal__SimpleLocalSearch.html#b3">easylocal::SimpleLocalSearch</a>, and <a class="el" href="class_easylocal__MultiRunnerSolver.html#b1">easylocal::MultiRunnerSolver</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="easylocal::LocalSearchSolver::ReSolve"></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::LocalSearchSolver&lt; Input, Output, State &gt;::ReSolve (
          </b></td>
          <td valign="bottom"><b>
)<code> [virtual]</code>
          </b></td>
        </tr>

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

<p>
Uses the final state of previous (Re)Solve execution as  the initial one This is useful for running on a set of continuously changing  instances. 
<p>
Reimplemented from <a class="el" href="class_easylocal__AbstractSolver.html#a2">easylocal::AbstractSolver</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01769">1769</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="b1" doxytag="easylocal::LocalSearchSolver::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::LocalSearchSolver&lt;Input, Output, State&gt;::Run (
          </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>
Lets all the managed runners Go, and then it collects the best state found. 
<p>
Reimplemented in <a class="el" href="class_easylocal__SimpleLocalSearch.html#b2">easylocal::SimpleLocalSearch</a>, <a class="el" href="class_easylocal__ComparativeSolver.html#b1">easylocal::ComparativeSolver</a>, and <a class="el" href="class_easylocal__TokenRingSolver.html#b1">easylocal::TokenRingSolver</a>.
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l01782">MultiStartSolve</a>(), <a class="el" href="EasyLocalTemplates_cpp-source.html#l01769">ReSolve</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l01757">Solve</a>().    </td>
  </tr>
</table>
<a name="a0" doxytag="easylocal::LocalSearchSolver::SetInitTrials"></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::LocalSearchSolver&lt; Input, Output, State &gt;::SetInitTrials (
          </b></td>
          <td valign="bottom"><b>
int <em>t</em>&nbsp;)
          </b></td>
        </tr>

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

<p>
Set the number of states which should be tried in  the initialization phase. 
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01610">1610</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a4" doxytag="easylocal::LocalSearchSolver::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 Output, class State&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::LocalSearchSolver&lt; Input, Output, State &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__Solver.html#a1">easylocal::Solver</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01619">1619</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="easylocal::LocalSearchSolver::Solve"></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::LocalSearchSolver&lt; Input, Output, State &gt;::Solve (
          </b></td>
          <td valign="bottom"><b>
)<code> [virtual]</code>
          </b></td>
        </tr>

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

<p>
Performs a full solving procedure by finding an initial state,  running the attached runner and delivering the output. 
<p>
Reimplemented from <a class="el" href="class_easylocal__Solver.html#a0">easylocal::Solver</a>.
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l01757">1757</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="n3" doxytag="easylocal::LocalSearchSolver::internal_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::LocalSearchSolver&lt;Input, Output, State&gt;::internal_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 internal state of the solver. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00857">857</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n2" doxytag="easylocal::LocalSearchSolver::internal_state_cost"></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> 
fvalue easylocal::LocalSearchSolver&lt;Input, Output, State&gt;::internal_state_cost<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
The cost of the internal state. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00856">856</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n4" doxytag="easylocal::LocalSearchSolver::number_of_init_trials"></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> 
unsigned int easylocal::LocalSearchSolver&lt;Input, Output, State&gt;::number_of_init_trials<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
Number of different initial  states tested for a run. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00858">858</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n1" doxytag="easylocal::LocalSearchSolver::p_om"></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> 
<a class="el" href="class_easylocal__OutputManager.html">OutputManager</a>&lt; Input, Output, State &gt; * easylocal::LocalSearchSolver&lt;Input, Output, State&gt;::p_om<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
A pointer to the attached output manager. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00854">854</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n0" doxytag="easylocal::LocalSearchSolver::p_sm"></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> 
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>&lt; Input, State &gt; * easylocal::LocalSearchSolver&lt;Input, Output, State&gt;::p_sm<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
A pointer to the attached  state manager. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00852">852</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 + -
显示快捷键?