class_easylocal__neighborhoodexplorer.html

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

HTML
1,464
字号
    <td>
      &nbsp;
    </td>
    <td>

<p>
Returns the best move found out of a number of sampled moves from a given state.<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 </td></tr>
<tr><td valign=top><em>mv</em>
&nbsp;</td><td>
 the best move found </td></tr>
<tr><td valign=top><em>samples</em>
&nbsp;</td><td>
 the number of sampled moves </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
 the cost of the move mv </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00514">514</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a7" doxytag="easylocal::NeighborhoodExplorer::SampleNonProhibitedMove"></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> 
fvalue easylocal::NeighborhoodExplorer&lt; Input, State, Move &gt;::SampleNonProhibitedMove (
          </b></td>
          <td valign="bottom"><b>
const State &amp; <em>st</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
Move &amp; <em>mv</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
int <em>samples</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
fvalue <em>curr</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
fvalue <em>best</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>
Returns the best non prohibited move found out of a number of sampled  moves from a given state.<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 </td></tr>
<tr><td valign=top><em>mv</em>
&nbsp;</td><td>
 the best non prohibited move found </td></tr>
<tr><td valign=top><em>samples</em>
&nbsp;</td><td>
 the number of sampled moves </td></tr>
<tr><td valign=top><em>curr</em>
&nbsp;</td><td>
 the cost of the state st </td></tr>
<tr><td valign=top><em>best</em>
&nbsp;</td><td>
 the cost of the best state found so far </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
 the cost of the move mv </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00590">590</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a16" doxytag="easylocal::NeighborhoodExplorer::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::NeighborhoodExplorer&lt; Input, State, Move &gt;::SetInput (
          </b></td>
          <td valign="bottom"><b>
Input * <em>in</em>&nbsp;)
          </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>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00657">657</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>.    </td>
  </tr>
</table>
<a name="a10" doxytag="easylocal::NeighborhoodExplorer::SetProhibitionManager"></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::NeighborhoodExplorer&lt; Input, State, Move &gt;::SetProhibitionManager (
          </b></td>
          <td valign="bottom"><b>
<a class="el" href="class_easylocal__ProhibitionManager.html">ProhibitionManager</a>&lt; Move &gt; * <em>pm</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 prohibition manager to the value passed as input.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>pm</em>
&nbsp;</td><td>
 a pointer to a prohibition manager </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00413">413</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="n2" doxytag="easylocal::NeighborhoodExplorer::best_move"></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> 
Move easylocal::NeighborhoodExplorer&lt;Input, State, Move&gt;::best_move<code> [protected]</code>
          </b></td>
        </tr>

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

<p>
The best move found in the exploration of the neighborhood (used from the neighborhood enumerating functions such as BestMove). 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00415">415</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n1" doxytag="easylocal::NeighborhoodExplorer::p_in"></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> 
Input * easylocal::NeighborhoodExplorer&lt;Input, State, Move&gt;::p_in<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 input object. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00410">410</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n4" doxytag="easylocal::NeighborhoodExplorer::p_pm"></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> 
<a class="el" href="class_easylocal__ProhibitionManager.html">ProhibitionManager</a>&lt; Move &gt; * easylocal::NeighborhoodExplorer&lt;Input, State, Move&gt;::p_pm<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 prohibition manager (used in case of memory based strategy. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00422">422</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n0" doxytag="easylocal::NeighborhoodExplorer::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 State, class Move&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::NeighborhoodExplorer&lt;Input, State, Move&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#l00408">408</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="n3" doxytag="easylocal::NeighborhoodExplorer::start_move"></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> 
Move easylocal::NeighborhoodExplorer&lt;Input, State, Move&gt;::start_move<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 move in the exploration of  the neighborhood. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00419">419</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 + -
显示快捷键?