⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_easylocal__prohibitionmanager.html

📁 一个tabu search算法框架
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>EasyLocal++ Documentation</title>
  <link href="local.css" rel="stylesheet" type="text/css">
</head>

<body lang="en">

<table width="100%" border="0">
  <tbody>
    <tr>
      <td colspan="2"><h1 class="nojustify">EasyLocal++ Documentation</h1>
        <hr>
      </td>
    </tr>
    <tr>
      <td width="30" align="center">&nbsp;</td>
      <td>
<!-- Generated by Doxygen 1.2.5 on Sat Jun 9 18:59:31 2001 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>easylocal::ProhibitionManager  Class Template Reference</h1><code>#include &lt;<a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>&gt;</code>
<p>
Inheritance diagram for easylocal::ProhibitionManager<p><center><img src="class_easylocal__ProhibitionManager_inherit_graph.gif" border="0" usemap="#easylocal::ProhibitionManager_inherit_map" alt="Inheritance graph"></center>
<map name="easylocal::ProhibitionManager_inherit_map">
<area href="class_easylocal__TabuListManager.html" shape="rect" coords="5,66,171,85">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_easylocal__ProhibitionManager-members.html">List of all members.</a><h2>Public Methods</h2>
<ul>
<li>virtual void <a class="el" href="class_easylocal__ProhibitionManager.html#a0">InsertMove</a> (const Move &amp;mv, fvalue mv_cost, fvalue curr, fvalue best)=0
<li>virtual bool <a class="el" href="class_easylocal__ProhibitionManager.html#a1">ProhibitedMove</a> (const Move &amp;mv, fvalue mv_cost, fvalue curr, fvalue best) const=0
<li>virtual void <a class="el" href="class_easylocal__ProhibitionManager.html#a2">Clean</a> ()=0
<li>virtual void <a class="el" href="class_easylocal__ProhibitionManager.html#a3">Check</a> ()
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class Move&gt;  class easylocal::ProhibitionManager</h3>

The Prohibition Manager deals with move prohibition mechanisms that prevents cycling and allows for diversification.
<p>
This class is at the top of the hierarchy: we have also a more specific prohibition manager, which maintains a list of <code>Move</code> elements according to the prohibition mechanisms of tabu search. 
<p>

<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00198">198</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.<hr><h2>Member Function Documentation</h2>
<a name="a3" doxytag="easylocal::ProhibitionManager::Check"></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 Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::ProhibitionManager&lt;Move&gt;::Check (
          </b></td>
          <td valign="bottom"><b>
)<code> [inline, virtual]</code>
          </b></td>
        </tr>

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

<p>
Checks whether the state of the prohibition manager is consistent with the attached objects. 
<p>
Definition at line <a class="el" href="EasyLocal_h-source.html#l00220">220</a> of file <a class="el" href="EasyLocal_h-source.html">EasyLocal.h</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="easylocal::ProhibitionManager::Clean"></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 Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::ProhibitionManager&lt;Move&gt;::Clean (
          </b></td>
          <td valign="bottom"><b>
)<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Resets the prohibition manager mechanisms. 
<p>
Reimplemented in <a class="el" href="class_easylocal__TabuListManager.html#a3">easylocal::TabuListManager</a>.    </td>
  </tr>
</table>
<a name="a0" doxytag="easylocal::ProhibitionManager::InsertMove"></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 Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
void easylocal::ProhibitionManager&lt;Move&gt;::InsertMove (
          </b></td>
          <td valign="bottom"><b>
const Move &amp; <em>mv</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
fvalue <em>mv_cost</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> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Marks a given move as prohibited, according to the prohibition strategy. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>mv</em>
&nbsp;</td><td>
 the move </td></tr>
<tr><td valign=top><em>mv_cost</em>
&nbsp;</td><td>
 the cost of the move </td></tr>
<tr><td valign=top><em>curr</em>
&nbsp;</td><td>
 the cost of the current solution </td></tr>
<tr><td valign=top><em>best</em>
&nbsp;</td><td>
 the cost of the best solution found so far </td></tr>
</table>
</dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__TabuListManager.html#a0">easylocal::TabuListManager</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="easylocal::ProhibitionManager::ProhibitedMove"></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 Move&gt;           </b></td>
        </tr>
        <tr>
          <td nowrap valign="top"><b> 
bool easylocal::ProhibitionManager&lt;Move&gt;::ProhibitedMove (
          </b></td>
          <td valign="bottom"><b>
const Move &amp; <em>mv</em>, 
          </b></td>
        </tr>
        <tr>
          <td></td>
          <td><b>
fvalue <em>mv_cost</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;) const<code> [pure virtual]</code>
          </b></td>
        </tr>

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

<p>
Checks whether the given move is prohibited, according to the prohibition strategy. <dl compact><dt>
<b>Parameters: </b><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>mv</em>
&nbsp;</td><td>
 the move </td></tr>
<tr><td valign=top><em>mv_cost</em>
&nbsp;</td><td>
 the cost of the move </td></tr>
<tr><td valign=top><em>curr</em>
&nbsp;</td><td>
 the cost of the current solution </td></tr>
<tr><td valign=top><em>best</em>
&nbsp;</td><td>
 the cost of the best solution found so far </td></tr>
</table>
</dl><dl compact><dt>
<b>Returns: </b><dd>
 true if the move is prohibited, false otherwise </dl>
<p>
Reimplemented in <a class="el" href="class_easylocal__TabuListManager.html#a1">easylocal::TabuListManager</a>.    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="EasyLocal_h-source.html">EasyLocal.h</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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -