class_easylocal__neighborhoodexplorer.html
来自「一个tabu search算法框架」· HTML 代码 · 共 1,464 行 · 第 1/4 页
HTML
1,464 行
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the start state </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the move read from the input stream </td></tr>
<tr><td valign=top><em>is</em>
</td><td>
the input stream </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00399">399</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>. </td>
</tr>
</table>
<a name="a8" doxytag="easylocal::NeighborhoodExplorer::LastMoveDone"></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>
bool easylocal::NeighborhoodExplorer< Input, State, Move >::LastMoveDone (
</b></td>
<td valign="bottom"><b>
const Move & <em>mv</em> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Checks whether the whole neighborhood has been explored. The tentative definition verifies is the move passed as parameter coincides with the start move.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>mv</em>
</td><td>
the move to check </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
true if the whole neighborhood has been explored, false otherwise </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00724">724</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#l00427">BestMove</a>(), <a class="el" href="EasyLocalTemplates_cpp-source.html#l00547">BestNonProhibitedMove</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00459">NeighborhoodStatistics</a>(). </td>
</tr>
</table>
<a name="a11" doxytag="easylocal::NeighborhoodExplorer::MakeMove"></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>::MakeMove (
</b></td>
<td valign="bottom"><b>
State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const Move & <em>mv</em> )<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Modifies the state passed as parameter by applying a given move upon it.
<p>
<dl compact><dt>
<b>Note: </b><dd>
@bf To be implemented in the application. </dl><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 to modify </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the move to be applied </td></tr>
</table>
</dl>
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00708">DeltaObjective</a>(), <a class="el" href="EasyLocalTemplates_cpp-source.html#l00689">DeltaViolations</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00631">PrintMoveInfo</a>(). </td>
</tr>
</table>
<a name="a13" doxytag="easylocal::NeighborhoodExplorer::NeighborhoodStatistics"></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 >::NeighborhoodStatistics (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Outputs some statistics about the neighborhood of the given state. In detail it prints out the number of neighbors, the number of improving/non-improving/worsening moves and their percentages.<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 to inspect </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00459">459</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a2" doxytag="easylocal::NeighborhoodExplorer::NextMove"></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>::NextMove (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
Move & <em>mv</em> )<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Generates the move that follows mv in the exploration of the neighborhood of the state st. It returns the generated move in the same variable mv.
<p>
<dl compact><dt>
<b>Note: </b><dd>
@bf To be implemented in the application. </dl><dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the start state </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the move </td></tr>
</table>
</dl>
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00427">BestMove</a>(), <a class="el" href="EasyLocalTemplates_cpp-source.html#l00547">BestNonProhibitedMove</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00459">NeighborhoodStatistics</a>(). </td>
</tr>
</table>
<a name="a14" doxytag="easylocal::NeighborhoodExplorer::PrintMoveInfo"></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 >::PrintMoveInfo (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
const Move & <em>mv</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
std::ostream & <em>os</em> = std::cout )
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Outputs some informations about a move in a given state on a stream.<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 move </td></tr>
<tr><td valign=top><em>os</em>
</td><td>
an output stream </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00631">631</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a3" doxytag="easylocal::NeighborhoodExplorer::RandomMove"></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>::RandomMove (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em>,
</b></td>
</tr>
<tr>
<td></td>
<td><b>
Move & <em>mv</em> )<code> [pure virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Generates a random move in the neighborhood of a given state.
<p>
<dl compact><dt>
<b>Note: </b><dd>
@bf To be implemented in the application. </dl><dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the start state </td></tr>
<tr><td valign=top><em>mv</em>
</td><td>
the generated move </td></tr>
</table>
</dl>
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00498">FirstMove</a>(), <a class="el" href="EasyLocalTemplates_cpp-source.html#l00514">SampleMove</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00590">SampleNonProhibitedMove</a>(). </td>
</tr>
</table>
<a name="a5" doxytag="easylocal::NeighborhoodExplorer::SampleMove"></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 >::SampleMove (
</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> )<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?