paradiseo/trunk/paradiseo-moeo/docs/html/moeoHybridMOLS_8h-source.html
legrand 176eeafc0f Links to paradiseo-eo/mo doc added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@119 331e1502-861f-0410-8da2-ba01fb791d7f
2006-12-22 08:41:14 +00:00

84 lines
7.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ParadisEO-MOEO: moeoHybridMOLS.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul></div>
<h1>moeoHybridMOLS.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
<a name="l00002"></a>00002
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
<a name="l00004"></a>00004 <span class="comment">// moeoHybridMOLS.h</span>
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2006</span>
<a name="l00006"></a>00006 <span class="comment">/*</span>
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
<a name="l00008"></a>00008 <span class="comment"></span>
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
<a name="l00010"></a>00010 <span class="comment"> */</span>
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
<a name="l00012"></a>00012
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef MOEOHYBRIDMOLS_H_</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define MOEOHYBRIDMOLS_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;eoContinue.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;eoPop.h&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;eoUpdater.h&gt;</span>
<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;eoSelect.h&gt;</span>
<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;moeoArchive.h&gt;</span>
<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;moeoMOLS.h&gt;</span>
<a name="l00022"></a>00022
<a name="l00027"></a><a class="code" href="classmoeoHybridMOLS.html">00027</a> <span class="keyword">template</span> &lt; <span class="keyword">class</span> EOT &gt; <span class="keyword">class </span><a class="code" href="classmoeoHybridMOLS.html">moeoHybridMOLS</a>:<span class="keyword">public</span> <a class="codeRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_updater.html">eoUpdater</a>
<a name="l00028"></a>00028 {
<a name="l00029"></a>00029 <span class="keyword">public</span>:
<a name="l00030"></a>00030
<a name="l00038"></a><a class="code" href="classmoeoHybridMOLS.html#ced4b6d35035bfe3339dd571646e570d">00038</a> <a class="code" href="classmoeoHybridMOLS.html#ced4b6d35035bfe3339dd571646e570d">eoHybridMOLS</a> (eoContinue &lt; EOT &gt; &amp;_term, eoSelect &lt; EOT &gt; &amp;_select, moeoMOLS &lt; EOT &gt; &amp;_mols, moeoArchive &lt; EOT &gt; &amp;_arch):<a class="code" href="classmoeoHybridMOLS.html#cd05dc1c82febb819945663c3b5c6a75">term</a> (_term), <a class="code" href="classmoeoHybridMOLS.html#b47c4d1bce77c5648b437a5884a7c41f">select</a> (_select), <a class="code" href="classmoeoHybridMOLS.html#5ecf318c321a71857c11da1ff5000092">mols</a> (_mols),
<a name="l00039"></a>00039 <a class="code" href="classmoeoHybridMOLS.html#4aecb1f300f2f09b8d45998cc140576b">arch</a>
<a name="l00040"></a>00040 (_arch)
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043
<a name="l00047"></a><a class="code" href="classmoeoHybridMOLS.html#f62b4221d0ec094e39b73b386b508fc1">00047</a> <span class="keywordtype">void</span> <a class="code" href="classmoeoHybridMOLS.html#f62b4221d0ec094e39b73b386b508fc1">operator () </a>()
<a name="l00048"></a>00048 {
<a name="l00049"></a>00049 <span class="keywordflow">if</span> (!cont (<a class="code" href="classmoeoHybridMOLS.html#4aecb1f300f2f09b8d45998cc140576b">arch</a>))
<a name="l00050"></a>00050 {
<a name="l00051"></a>00051 <span class="comment">// selection of solutions</span>
<a name="l00052"></a>00052 eoPop &lt; EOT &gt; selectedSolutions;
<a name="l00053"></a>00053 <a class="code" href="classmoeoHybridMOLS.html#b47c4d1bce77c5648b437a5884a7c41f">select</a> (arch, selectedSolutions);
<a name="l00054"></a>00054 <span class="comment">// apply the local search to every selected solution</span>
<a name="l00055"></a>00055 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; selectedSolutions.size (); i++)
<a name="l00056"></a>00056 <a class="code" href="classmoeoHybridMOLS.html#5ecf318c321a71857c11da1ff5000092">mols</a> (selectedSolutions[i], arch);
<a name="l00057"></a>00057 }
<a name="l00058"></a>00058 }
<a name="l00059"></a>00059
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="keyword">private</span>:
<a name="l00062"></a>00062
<a name="l00064"></a><a class="code" href="classmoeoHybridMOLS.html#cd05dc1c82febb819945663c3b5c6a75">00064</a> eoContinue &lt; EOT &gt; &amp;<a class="code" href="classmoeoHybridMOLS.html#cd05dc1c82febb819945663c3b5c6a75">term</a>;
<a name="l00066"></a><a class="code" href="classmoeoHybridMOLS.html#b47c4d1bce77c5648b437a5884a7c41f">00066</a> eoSelect &lt; EOT &gt; &amp;<a class="code" href="classmoeoHybridMOLS.html#b47c4d1bce77c5648b437a5884a7c41f">select</a>;
<a name="l00068"></a><a class="code" href="classmoeoHybridMOLS.html#5ecf318c321a71857c11da1ff5000092">00068</a> moeoMOLS &lt; EOT &gt; &amp;<a class="code" href="classmoeoHybridMOLS.html#5ecf318c321a71857c11da1ff5000092">mols</a>;
<a name="l00070"></a><a class="code" href="classmoeoHybridMOLS.html#4aecb1f300f2f09b8d45998cc140576b">00070</a> moeoArchive &lt; EOT &gt; &amp;<a class="code" href="classmoeoHybridMOLS.html#4aecb1f300f2f09b8d45998cc140576b">arch</a>;
<a name="l00071"></a>00071
<a name="l00072"></a>00072 };
<a name="l00073"></a>00073
<a name="l00074"></a>00074 <span class="preprocessor">#endif </span><span class="comment">/*MOEOHYBRIDMOLS_H_ */</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Dec 22 09:37:11 2006 for ParadisEO-MOEO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>