class_easylocal__neighborhoodexplorer.html
来自「一个tabu search算法框架」· HTML 代码 · 共 1,464 行 · 第 1/4 页
HTML
1,464 行
<td>
</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>
</td><td>
the state </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the best move found </td></tr>
<tr><td valign=top><em>samples</em>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
fvalue easylocal::NeighborhoodExplorer< Input, State, Move >::SampleNonProhibitedMove (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
Move & <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> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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>
</td><td>
the state </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the best non prohibited move found </td></tr>
<tr><td valign=top><em>samples</em>
</td><td>
the number of sampled moves </td></tr>
<tr><td valign=top><em>curr</em>
</td><td>
the cost of the state st </td></tr>
<tr><td valign=top><em>best</em>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::NeighborhoodExplorer< Input, State, Move >::SetInput (
</b></td>
<td valign="bottom"><b>
Input * <em>in</em> )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::NeighborhoodExplorer< Input, State, Move >::SetProhibitionManager (
</b></td>
<td valign="bottom"><b>
<a class="el" href="class_easylocal__ProhibitionManager.html">ProhibitionManager</a>< Move > * <em>pm</em> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
Move easylocal::NeighborhoodExplorer<Input, State, Move>::best_move<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
Input * easylocal::NeighborhoodExplorer<Input, State, Move>::p_in<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
<a class="el" href="class_easylocal__ProhibitionManager.html">ProhibitionManager</a>< Move > * easylocal::NeighborhoodExplorer<Input, State, Move>::p_pm<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
<a class="el" href="class_easylocal__StateManager.html">StateManager</a>< Input, State > * easylocal::NeighborhoodExplorer<Input, State, Move>::p_sm<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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<class Input, class State, class Move> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
Move easylocal::NeighborhoodExplorer<Input, State, Move>::start_move<code> [protected]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</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> </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 + -
显示快捷键?