class_easylocal__statemanager.html
来自「一个tabu search算法框架」· HTML 代码 · 共 640 行 · 第 1/2 页
HTML
640 行
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00138">138</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#l00099">CostFunction</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00108">PrintState</a>(). </td>
</tr>
</table>
<a name="a7" doxytag="easylocal::StateManager::PrintState"></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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateManager< Input, State >::PrintState (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em> ) const<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Outputs some informations about the state passed as parameter.<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 be inspected </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00108">108</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a0" doxytag="easylocal::StateManager::RandomState"></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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateManager<Input, State>::RandomState (
</b></td>
<td valign="bottom"><b>
State & <em>st</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 state. <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 generated </td></tr>
</table>
</dl>
<p>
Referenced by <a class="el" href="EasyLocalTemplates_cpp-source.html#l00061">ImprovedSampleState</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00029">SampleState</a>(). </td>
</tr>
</table>
<a name="a2" doxytag="easylocal::StateManager::SampleState"></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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
fvalue easylocal::StateManager< Input, State >::SampleState (
</b></td>
<td valign="bottom"><b>
State & <em>st</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>
<td>
</td>
<td>
<p>
Looks for the best state out of a given number of sampled states.<dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>st</em>
</td><td>
the best state found </td></tr>
<tr><td valign=top><em>samples</em>
</td><td>
the number of sampled states </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00029">29</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a9" doxytag="easylocal::StateManager::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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateManager< Input, State >::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 object </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00150">150</a> of file <a class="el" href="EasyLocalTemplates_cpp-source.html">EasyLocalTemplates.cpp</a>. </td>
</tr>
</table>
<a name="a1" doxytag="easylocal::StateManager::UpdateRedundantStateData"></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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
void easylocal::StateManager<Input, State>::UpdateRedundantStateData (
</b></td>
<td valign="bottom"><b>
State & <em>st</em> )<code> [inline, virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Possibly updates redundant state data. It is used by the output manager to make the state consistent. <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 be updated </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00128">128</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>. </td>
</tr>
</table>
<a name="a6" doxytag="easylocal::StateManager::Violations"></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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
fvalue easylocal::StateManager< Input, State >::Violations (
</b></td>
<td valign="bottom"><b>
const State & <em>st</em> ) const<code> [virtual]</code>
</b></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
A tentative definition of the violation function: by default, it simply returns 0 and outputs a warning message.<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 be evaluated </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
the value of the violations function in the given state </dl>
<p>
Definition at line <a class="el" href="EasyLocalTemplates_cpp-source.html#l00124">124</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#l00099">CostFunction</a>(), and <a class="el" href="EasyLocalTemplates_cpp-source.html#l00108">PrintState</a>(). </td>
</tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n0" doxytag="easylocal::StateManager::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> </b></td>
</tr>
<tr>
<td nowrap valign="top"><b>
Input * easylocal::StateManager<Input, State>::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#l00146">146</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 + -
显示快捷键?