git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@138 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
atantar 2007-01-07 22:35:16 +00:00
commit 10148ec375
471 changed files with 0 additions and 33268 deletions

View file

@ -1,51 +0,0 @@
<!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-PEO - Lessons: Class List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li id="current"><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>ParadisEO-PEO - Lessons Class List</h1>Here are the classes, structs, unions and interfaces with brief descriptions:<table>
<tr><td class="indexkey"><a class="el" href="classCitySwap.html">CitySwap</a></td><td class="indexvalue">Its swaps two vertices randomly choosen </td></tr>
<tr><td class="indexkey"><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td class="indexvalue">Edge Crossover </td></tr>
<tr><td class="indexkey"><a class="el" href="classMergeRouteEval.html">MergeRouteEval</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classOrderXover.html">OrderXover</a></td><td class="indexvalue">Order Crossover </td></tr>
<tr><td class="indexkey"><a class="el" href="classPartialMappedXover.html">PartialMappedXover</a></td><td class="indexvalue">Partial Mapped Crossover </td></tr>
<tr><td class="indexkey"><a class="el" href="classPartRouteEval.html">PartRouteEval</a></td><td class="indexvalue">Route Evaluator </td></tr>
<tr><td class="indexkey"><a class="el" href="classRouteEval.html">RouteEval</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classRouteInit.html">RouteInit</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTwoOpt.html">TwoOpt</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTwoOptIncrEval.html">TwoOptIncrEval</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTwoOptInit.html">TwoOptInit</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTwoOptNext.html">TwoOptNext</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><a class="el" href="classTwoOptRand.html">TwoOptRand</a></td><td class="indexvalue"></td></tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,64 +0,0 @@
<!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-PEO - Lessons: city_swap.cpp 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.7 -->
<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>city_swap.cpp</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">// "city_swap.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2002</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include "city_swap.h"</span>
<a name="l00027"></a>00027
<a name="l00028"></a><a class="code" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">00028</a> <span class="keywordtype">bool</span> <a class="code" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">CitySwap :: operator () </a>(Route &amp; __route) {
<a name="l00029"></a>00029
<a name="l00030"></a>00030 std :: swap (__route [rng.random (__route.size ())],
<a name="l00031"></a>00031 __route [rng.random (__route.size ())]) ;
<a name="l00032"></a>00032
<a name="l00033"></a>00033 __route.invalidate () ;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordflow">return</span> true ;
<a name="l00036"></a>00036 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,67 +0,0 @@
<!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-PEO - Lessons: city_swap.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.7 -->
<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>city_swap.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">// "city_swap.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2002</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef city_swap_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define city_swap_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoOp.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00033"></a><a class="code" href="classCitySwap.html">00033</a> <span class="keyword">class </span><a class="code" href="classCitySwap.html">CitySwap</a> : <span class="keyword">public</span> eoMonOp &lt;Route&gt; {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">public</span> :
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keywordtype">bool</span> <a class="code" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">operator () </a>(Route &amp; __route) ;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 } ;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>CitySwap Member List</h1>This is the complete list of members for <a class="el" href="classCitySwap.html">CitySwap</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">operator()</a>(Route &amp;__route)</td><td><a class="el" href="classCitySwap.html">CitySwap</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,54 +0,0 @@
<!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-PEO - Lessons: CitySwap Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>CitySwap Class Reference</h1><!-- doxytag: class="CitySwap" -->Its swaps two vertices randomly choosen.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="city__swap_8h-source.html">city_swap.h</a>&gt;</code>
<p>
<a href="classCitySwap-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7e6958b62048c89604cbf046b86bdf2d"></a><!-- doxytag: member="CitySwap::operator()" ref="7e6958b62048c89604cbf046b86bdf2d" args="(Route &amp;__route)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">operator()</a> (Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Its swaps two vertices randomly choosen.
<p>
<p>
Definition at line <a class="el" href="city__swap_8h-source.html#l00033">33</a> of file <a class="el" href="city__swap_8h-source.html">city_swap.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="city__swap_8h-source.html">city_swap.h</a><li><a class="el" href="city__swap_8cpp-source.html">city_swap.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,39 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>DisplayBestRoute Member List</h1>This is the complete list of members for <a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute</a>(eoPop&lt; Route &gt; &amp;__pop)</td><td><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">operator()</a>()</td><td><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">pop</a></td><td><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a></td><td><code> [private]</code></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,56 +0,0 @@
<!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-PEO - Lessons: DisplayBestRoute Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>DisplayBestRoute Class Reference</h1><!-- doxytag: class="DisplayBestRoute" --><a href="classDisplayBestRoute-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db263e38f1e82174f811bf62f323f87f"></a><!-- doxytag: member="DisplayBestRoute::DisplayBestRoute" ref="db263e38f1e82174f811bf62f323f87f" args="(eoPop&lt; Route &gt; &amp;__pop)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute</a> (eoPop&lt; Route &gt; &amp;__pop)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee879344a6d8b81a04d4eabbed2c7a04"></a><!-- doxytag: member="DisplayBestRoute::operator()" ref="ee879344a6d8b81a04d4eabbed2c7a04" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">operator()</a> ()</td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5270aabbf294d2deca9878934216eb89"></a><!-- doxytag: member="DisplayBestRoute::pop" ref="5270aabbf294d2deca9878934216eb89" args="" -->
eoPop&lt; Route &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">pop</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="display__best__route_8h-source.html#l00033">33</a> of file <a class="el" href="display__best__route_8h-source.html">display_best_route.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="display__best__route_8h-source.html">display_best_route.h</a><li><a class="el" href="display__best__route_8cpp-source.html">display_best_route.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,43 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>EdgeXover Member List</h1>This is the complete list of members for <a class="el" href="classEdgeXover.html">EdgeXover</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a></td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">add_vertex</a>(unsigned __vertex, Route &amp;__child)</td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">build_map</a>(const Route &amp;__par1, const Route &amp;__par2)</td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">cross</a>(const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)</td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">operator()</a>(Route &amp;__route1, Route &amp;__route2)</td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">remove_entry</a>(unsigned __vertex, std::vector&lt; std::set&lt; unsigned &gt; &gt; &amp;__map)</td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a></td><td><a class="el" href="classEdgeXover.html">EdgeXover</a></td><td><code> [private]</code></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,74 +0,0 @@
<!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-PEO - Lessons: EdgeXover Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>EdgeXover Class Reference</h1><!-- doxytag: class="EdgeXover" -->Edge Crossover.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="edge__xover_8h-source.html">edge_xover.h</a>&gt;</code>
<p>
<a href="classEdgeXover-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cb1c0a103106a4d3319540cb23163a79"></a><!-- doxytag: member="EdgeXover::operator()" ref="cb1c0a103106a4d3319540cb23163a79" args="(Route &amp;__route1, Route &amp;__route2)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">operator()</a> (Route &amp;__route1, Route &amp;__route2)</td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="88c2d4c9a878454a32d56010f3dddc27"></a><!-- doxytag: member="EdgeXover::cross" ref="88c2d4c9a878454a32d56010f3dddc27" args="(const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">cross</a> (const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1b3a4c75dd9a034c81af6d89d85d30f5"></a><!-- doxytag: member="EdgeXover::remove_entry" ref="1b3a4c75dd9a034c81af6d89d85d30f5" args="(unsigned __vertex, std::vector&lt; std::set&lt; unsigned &gt; &gt; &amp;__map)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">remove_entry</a> (unsigned __vertex, std::vector&lt; std::set&lt; unsigned &gt; &gt; &amp;__map)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="04de96aa1016836e0ba5f4b952a5fa16"></a><!-- doxytag: member="EdgeXover::build_map" ref="04de96aa1016836e0ba5f4b952a5fa16" args="(const Route &amp;__par1, const Route &amp;__par2)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">build_map</a> (const Route &amp;__par1, const Route &amp;__par2)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2d3045ef503d8b16a27e11fdc23ca11c"></a><!-- doxytag: member="EdgeXover::add_vertex" ref="2d3045ef503d8b16a27e11fdc23ca11c" args="(unsigned __vertex, Route &amp;__child)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">add_vertex</a> (unsigned __vertex, Route &amp;__child)</td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d41399c6effb54ee48c722f1e19cb3c3"></a><!-- doxytag: member="EdgeXover::_map" ref="d41399c6effb54ee48c722f1e19cb3c3" args="" -->
std::vector&lt; std::set&lt; unsigned &gt; &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="46d4d4724cf6d660b1a7ab4a346573d4"></a><!-- doxytag: member="EdgeXover::visited" ref="46d4d4724cf6d660b1a7ab4a346573d4" args="" -->
std::vector&lt; bool &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Edge Crossover.
<p>
<p>
Definition at line <a class="el" href="edge__xover_8h-source.html#l00035">35</a> of file <a class="el" href="edge__xover_8h-source.html">edge_xover.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="edge__xover_8h-source.html">edge_xover.h</a><li><a class="el" href="edge__xover_8cpp-source.html">edge_xover.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>MergeRouteEval Member List</h1>This is the complete list of members for <a class="el" href="classMergeRouteEval.html">MergeRouteEval</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">operator()</a>(Route &amp;__route, const int &amp;__part_fit)</td><td><a class="el" href="classMergeRouteEval.html">MergeRouteEval</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,54 +0,0 @@
<!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-PEO - Lessons: MergeRouteEval Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>MergeRouteEval Class Reference</h1><!-- doxytag: class="MergeRouteEval" --><!-- doxytag: inherits="peoAggEvalFunc" --><p>Inheritance diagram for MergeRouteEval:
<p><center><img src="classMergeRouteEval.png" usemap="#MergeRouteEval_map" border="0" alt=""></center>
<map name="MergeRouteEval_map">
<area doxygen="paradiseo-peo.doxytag:../..//" href="../..//classpeoAggEvalFunc.html" alt="peoAggEvalFunc< EOT >" shape="rect" coords="0,0,159,24">
</map>
<a href="classMergeRouteEval-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="29cb0028ac0df4b2cee3a809c8f35dea"></a><!-- doxytag: member="MergeRouteEval::operator()" ref="29cb0028ac0df4b2cee3a809c8f35dea" args="(Route &amp;__route, const int &amp;__part_fit)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">operator()</a> (Route &amp;__route, const int &amp;__part_fit)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="merge__route__eval_8h-source.html#l00031">31</a> of file <a class="el" href="merge__route__eval_8h-source.html">merge_route_eval.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="merge__route__eval_8h-source.html">merge_route_eval.h</a><li><a class="el" href="merge__route__eval_8cpp-source.html">merge_route_eval.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

View file

@ -1,38 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>OrderXover Member List</h1>This is the complete list of members for <a class="el" href="classOrderXover.html">OrderXover</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">cross</a>(const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)</td><td><a class="el" href="classOrderXover.html">OrderXover</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">operator()</a>(Route &amp;__route1, Route &amp;__route2)</td><td><a class="el" href="classOrderXover.html">OrderXover</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,58 +0,0 @@
<!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-PEO - Lessons: OrderXover Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>OrderXover Class Reference</h1><!-- doxytag: class="OrderXover" -->Order Crossover.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="order__xover_8h-source.html">order_xover.h</a>&gt;</code>
<p>
<a href="classOrderXover-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0ff6aada669eb8173322ed68cda1ac61"></a><!-- doxytag: member="OrderXover::operator()" ref="0ff6aada669eb8173322ed68cda1ac61" args="(Route &amp;__route1, Route &amp;__route2)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">operator()</a> (Route &amp;__route1, Route &amp;__route2)</td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2bf90b5f46ac4a344777e17bc5f364d"></a><!-- doxytag: member="OrderXover::cross" ref="d2bf90b5f46ac4a344777e17bc5f364d" args="(const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">cross</a> (const Route &amp;__par1, const Route &amp;__par2, Route &amp;__child)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Order Crossover.
<p>
<p>
Definition at line <a class="el" href="order__xover_8h-source.html#l00032">32</a> of file <a class="el" href="order__xover_8h-source.html">order_xover.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="order__xover_8h-source.html">order_xover.h</a><li><a class="el" href="order__xover_8cpp-source.html">order_xover.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,40 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>PartRouteEval Member List</h1>This is the complete list of members for <a class="el" href="classPartRouteEval.html">PartRouteEval</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">from</a></td><td><a class="el" href="classPartRouteEval.html">PartRouteEval</a></td><td><code> [private]</code></td></tr>
<tr class="memlist"><td><a class="el" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">operator()</a>(Route &amp;__route)</td><td><a class="el" href="classPartRouteEval.html">PartRouteEval</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval</a>(float __from, float __to)</td><td><a class="el" href="classPartRouteEval.html">PartRouteEval</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">to</a></td><td><a class="el" href="classPartRouteEval.html">PartRouteEval</a></td><td><code> [private]</code></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,65 +0,0 @@
<!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-PEO - Lessons: PartRouteEval Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>PartRouteEval Class Reference</h1><!-- doxytag: class="PartRouteEval" -->Route Evaluator.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="part__route__eval_8h-source.html">part_route_eval.h</a>&gt;</code>
<p>
<a href="classPartRouteEval-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a331566b29bc3227f377004232f05491"></a><!-- doxytag: member="PartRouteEval::PartRouteEval" ref="a331566b29bc3227f377004232f05491" args="(float __from, float __to)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval</a> (float __from, float __to)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="965fab875fb601f17934a6ece761beae"></a><!-- doxytag: member="PartRouteEval::operator()" ref="965fab875fb601f17934a6ece761beae" args="(Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">operator()</a> (Route &amp;__route)</td></tr>
<tr><td colspan="2"><br><h2>Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5bde722e66378b2570ae6c4b4f8df58e"></a><!-- doxytag: member="PartRouteEval::from" ref="5bde722e66378b2570ae6c4b4f8df58e" args="" -->
float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">from</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="de53cc919faa498663f327b72c357da3"></a><!-- doxytag: member="PartRouteEval::to" ref="de53cc919faa498663f327b72c357da3" args="" -->
float&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">to</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Route Evaluator.
<p>
<p>
Definition at line <a class="el" href="part__route__eval_8h-source.html#l00032">32</a> of file <a class="el" href="part__route__eval_8h-source.html">part_route_eval.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="part__route__eval_8h-source.html">part_route_eval.h</a><li><a class="el" href="part__route__eval_8cpp-source.html">part_route_eval.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,38 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>PartialMappedXover Member List</h1>This is the complete list of members for <a class="el" href="classPartialMappedXover.html">PartialMappedXover</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">operator()</a>(Route &amp;__route1, Route &amp;__route2)</td><td><a class="el" href="classPartialMappedXover.html">PartialMappedXover</a></td><td></td></tr>
<tr class="memlist"><td><a class="el" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">repair</a>(Route &amp;__route, unsigned __cut1, unsigned __cut2)</td><td><a class="el" href="classPartialMappedXover.html">PartialMappedXover</a></td><td><code> [private]</code></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,58 +0,0 @@
<!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-PEO - Lessons: PartialMappedXover Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>PartialMappedXover Class Reference</h1><!-- doxytag: class="PartialMappedXover" -->Partial Mapped Crossover.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="partial__mapped__xover_8h-source.html">partial_mapped_xover.h</a>&gt;</code>
<p>
<a href="classPartialMappedXover-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1cda6ea86ca36e5de0125f4ba5cfc695"></a><!-- doxytag: member="PartialMappedXover::operator()" ref="1cda6ea86ca36e5de0125f4ba5cfc695" args="(Route &amp;__route1, Route &amp;__route2)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">operator()</a> (Route &amp;__route1, Route &amp;__route2)</td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6d4035544aff3b2b3fe4b0eeea185a2"></a><!-- doxytag: member="PartialMappedXover::repair" ref="b6d4035544aff3b2b3fe4b0eeea185a2" args="(Route &amp;__route, unsigned __cut1, unsigned __cut2)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">repair</a> (Route &amp;__route, unsigned __cut1, unsigned __cut2)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Partial Mapped Crossover.
<p>
<p>
Definition at line <a class="el" href="partial__mapped__xover_8h-source.html#l00032">32</a> of file <a class="el" href="partial__mapped__xover_8h-source.html">partial_mapped_xover.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="partial__mapped__xover_8h-source.html">partial_mapped_xover.h</a><li><a class="el" href="partial__mapped__xover_8cpp-source.html">partial_mapped_xover.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>RouteEval Member List</h1>This is the complete list of members for <a class="el" href="classRouteEval.html">RouteEval</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">operator()</a>(Route &amp;__route)</td><td><a class="el" href="classRouteEval.html">RouteEval</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: RouteEval Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>RouteEval Class Reference</h1><!-- doxytag: class="RouteEval" --><a href="classRouteEval-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e10bbe6f792e6f44405953de4f703901"></a><!-- doxytag: member="RouteEval::operator()" ref="e10bbe6f792e6f44405953de4f703901" args="(Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">operator()</a> (Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="route__eval_8h-source.html#l00031">31</a> of file <a class="el" href="route__eval_8h-source.html">route_eval.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="route__eval_8h-source.html">route_eval.h</a><li><a class="el" href="route__eval_8cpp-source.html">route_eval.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>RouteInit Member List</h1>This is the complete list of members for <a class="el" href="classRouteInit.html">RouteInit</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">operator()</a>(Route &amp;__route)</td><td><a class="el" href="classRouteInit.html">RouteInit</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: RouteInit Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>RouteInit Class Reference</h1><!-- doxytag: class="RouteInit" --><a href="classRouteInit-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b65a7137e114458faadb6a5510c001f7"></a><!-- doxytag: member="RouteInit::operator()" ref="b65a7137e114458faadb6a5510c001f7" args="(Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">operator()</a> (Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="route__init_8h-source.html#l00031">31</a> of file <a class="el" href="route__init_8h-source.html">route_init.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="route__init_8h-source.html">route_init.h</a><li><a class="el" href="route__init_8cpp-source.html">route_init.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOpt Member List</h1>This is the complete list of members for <a class="el" href="classTwoOpt.html">TwoOpt</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">operator()</a>(Route &amp;__route)</td><td><a class="el" href="classTwoOpt.html">TwoOpt</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: TwoOpt Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOpt Class Reference</h1><!-- doxytag: class="TwoOpt" --><a href="classTwoOpt-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ff87d1649a33d42a6d64e8d314ed1af0"></a><!-- doxytag: member="TwoOpt::operator()" ref="ff87d1649a33d42a6d64e8d314ed1af0" args="(Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">operator()</a> (Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="two__opt_8h-source.html#l00032">32</a> of file <a class="el" href="two__opt_8h-source.html">two_opt.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="two__opt_8h-source.html">two_opt.h</a><li><a class="el" href="two__opt_8cpp-source.html">two_opt.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptIncrEval Member List</h1>This is the complete list of members for <a class="el" href="classTwoOptIncrEval.html">TwoOptIncrEval</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">operator()</a>(const TwoOpt &amp;__move, const Route &amp;__route)</td><td><a class="el" href="classTwoOptIncrEval.html">TwoOptIncrEval</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: TwoOptIncrEval Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptIncrEval Class Reference</h1><!-- doxytag: class="TwoOptIncrEval" --><a href="classTwoOptIncrEval-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="48500077e651c4c6152daef8a396be39"></a><!-- doxytag: member="TwoOptIncrEval::operator()" ref="48500077e651c4c6152daef8a396be39" args="(const TwoOpt &amp;__move, const Route &amp;__route)" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">operator()</a> (const <a class="el" href="classTwoOpt.html">TwoOpt</a> &amp;__move, const Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="two__opt__incr__eval_8h-source.html#l00030">30</a> of file <a class="el" href="two__opt__incr__eval_8h-source.html">two_opt_incr_eval.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="two__opt__incr__eval_8h-source.html">two_opt_incr_eval.h</a><li><a class="el" href="two__opt__incr__eval_8cpp-source.html">two_opt_incr_eval.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptInit Member List</h1>This is the complete list of members for <a class="el" href="classTwoOptInit.html">TwoOptInit</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">operator()</a>(TwoOpt &amp;__move, const Route &amp;__route)</td><td><a class="el" href="classTwoOptInit.html">TwoOptInit</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: TwoOptInit Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptInit Class Reference</h1><!-- doxytag: class="TwoOptInit" --><a href="classTwoOptInit-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5bf6af064d37ebd955ffb5a623e78e1b"></a><!-- doxytag: member="TwoOptInit::operator()" ref="5bf6af064d37ebd955ffb5a623e78e1b" args="(TwoOpt &amp;__move, const Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">operator()</a> (<a class="el" href="classTwoOpt.html">TwoOpt</a> &amp;__move, const Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="two__opt__init_8h-source.html#l00032">32</a> of file <a class="el" href="two__opt__init_8h-source.html">two_opt_init.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="two__opt__init_8h-source.html">two_opt_init.h</a><li><a class="el" href="two__opt__init_8cpp-source.html">two_opt_init.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptNext Member List</h1>This is the complete list of members for <a class="el" href="classTwoOptNext.html">TwoOptNext</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">operator()</a>(TwoOpt &amp;__move, const Route &amp;__route)</td><td><a class="el" href="classTwoOptNext.html">TwoOptNext</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: TwoOptNext Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptNext Class Reference</h1><!-- doxytag: class="TwoOptNext" --><a href="classTwoOptNext-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="baf229b2e056f39ab971cf2ac66a833e"></a><!-- doxytag: member="TwoOptNext::operator()" ref="baf229b2e056f39ab971cf2ac66a833e" args="(TwoOpt &amp;__move, const Route &amp;__route)" -->
bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">operator()</a> (<a class="el" href="classTwoOpt.html">TwoOpt</a> &amp;__move, const Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="two__opt__next_8h-source.html#l00031">31</a> of file <a class="el" href="two__opt__next_8h-source.html">two_opt_next.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="two__opt__next_8h-source.html">two_opt_next.h</a><li><a class="el" href="two__opt__next_8cpp-source.html">two_opt_next.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,37 +0,0 @@
<!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-PEO - Lessons: Member List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptRand Member List</h1>This is the complete list of members for <a class="el" href="classTwoOptRand.html">TwoOptRand</a>, including all inherited members.<p><table>
<tr class="memlist"><td><a class="el" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">operator()</a>(TwoOpt &amp;__move, const Route &amp;__route)</td><td><a class="el" href="classTwoOptRand.html">TwoOptRand</a></td><td></td></tr>
</table><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,49 +0,0 @@
<!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-PEO - Lessons: TwoOptRand Class Reference</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>TwoOptRand Class Reference</h1><!-- doxytag: class="TwoOptRand" --><a href="classTwoOptRand-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e2f362f359517c027f6f22fba0aab375"></a><!-- doxytag: member="TwoOptRand::operator()" ref="e2f362f359517c027f6f22fba0aab375" args="(TwoOpt &amp;__move, const Route &amp;__route)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">operator()</a> (<a class="el" href="classTwoOpt.html">TwoOpt</a> &amp;__move, const Route &amp;__route)</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
<p>
Definition at line <a class="el" href="two__opt__rand_8h-source.html#l00031">31</a> of file <a class="el" href="two__opt__rand_8h-source.html">two_opt_rand.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="two__opt__rand_8h-source.html">two_opt_rand.h</a><li><a class="el" href="two__opt__rand_8cpp-source.html">two_opt_rand.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,46 +0,0 @@
<!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-PEO - Lessons: Alphabetical List</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li id="current"><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>ParadisEO-PEO - Lessons Class Index</h1><p><div class="qindex"><a class="qindex" href="#letter_C">C</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_D">D</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_E">E</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_M">M</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_O">O</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_P">P</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_R">R</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_T">T</a></div><p>
<table align="center" width="95%" border="0" cellspacing="0" cellpadding="0">
<tr><td><a name="letter_C"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;C&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_O"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;O&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classRouteInit.html">RouteInit</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classCitySwap.html">CitySwap</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classOrderXover.html">OrderXover</a>&nbsp;&nbsp;&nbsp;</td><td><a name="letter_T"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;T&nbsp;&nbsp;</div></td></tr></table>
</td></tr><tr><td><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;D&nbsp;&nbsp;</div></td></tr></table>
</td><td><a name="letter_P"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;P&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classTwoOpt.html">TwoOpt</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classPartialMappedXover.html">PartialMappedXover</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classTwoOptIncrEval.html">TwoOptIncrEval</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a name="letter_E"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;E&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classPartRouteEval.html">PartRouteEval</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classTwoOptInit.html">TwoOptInit</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classEdgeXover.html">EdgeXover</a>&nbsp;&nbsp;&nbsp;</td><td><a name="letter_R"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;R&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classTwoOptNext.html">TwoOptNext</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a name="letter_M"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&nbsp;&nbsp;M&nbsp;&nbsp;</div></td></tr></table>
</td><td><a class="el" href="classRouteEval.html">RouteEval</a>&nbsp;&nbsp;&nbsp;</td><td><a class="el" href="classTwoOptRand.html">TwoOptRand</a>&nbsp;&nbsp;&nbsp;</td></tr><tr><td><a class="el" href="classMergeRouteEval.html">MergeRouteEval</a>&nbsp;&nbsp;&nbsp;</td></tr></table><p><div class="qindex"><a class="qindex" href="#letter_C">C</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_D">D</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_E">E</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_M">M</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_O">O</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_P">P</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_R">R</a>&nbsp;|&nbsp;<a class="qindex" href="#letter_T">T</a></div><p>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,141 +0,0 @@
<!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-PEO - Lessons: data.cpp 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.7 -->
<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>data.cpp</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">// "data.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;utils/eoParser.h&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#include "data.h"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "node.h"</span>
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="preprocessor">#define MAX_TRASH_LENGTH 1000</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#define MAX_FIELD_LENGTH 1000</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define MAX_LINE_LENGTH 1000</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="keyword">static</span> <span class="keywordtype">void</span> getNextField (FILE * __f, <span class="keywordtype">char</span> * __buff) {
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="keywordtype">char</span> trash [MAX_TRASH_LENGTH];
<a name="l00041"></a>00041
<a name="l00042"></a>00042 fscanf (__f, <span class="stringliteral">"%[ \t:\n]"</span>, trash); <span class="comment">/* Discarding sep. */</span>
<a name="l00043"></a>00043 fscanf (__f, <span class="stringliteral">"%[^:\n]"</span>, __buff); <span class="comment">/* Reading the field */</span>
<a name="l00044"></a>00044 fgetc (__f);
<a name="l00045"></a>00045 }
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keyword">static</span> <span class="keywordtype">void</span> getLine (FILE * __f, <span class="keywordtype">char</span> * __buff) {
<a name="l00048"></a>00048
<a name="l00049"></a>00049 <span class="keywordtype">char</span> trash [MAX_TRASH_LENGTH];
<a name="l00050"></a>00050
<a name="l00051"></a>00051 fscanf (__f, <span class="stringliteral">"%[ \t:\n]"</span>, trash); <span class="comment">/* Discarding sep. */</span>
<a name="l00052"></a>00052 fscanf (__f, <span class="stringliteral">"%[^\n]"</span>, __buff); <span class="comment">/* Reading the line */</span>
<a name="l00053"></a>00053 }
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="keywordtype">void</span> loadData (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename) {
<a name="l00056"></a>00056
<a name="l00057"></a>00057 FILE * f = fopen (__filename, <span class="stringliteral">"r"</span>);
<a name="l00058"></a>00058
<a name="l00059"></a>00059 <span class="keywordflow">if</span> (f) {
<a name="l00060"></a>00060
<a name="l00061"></a>00061 printf (<span class="stringliteral">"Loading '%s'.\n"</span>, __filename);
<a name="l00062"></a>00062
<a name="l00063"></a>00063 <span class="keywordtype">char</span> field [MAX_FIELD_LENGTH];
<a name="l00064"></a>00064
<a name="l00065"></a>00065 getNextField (f, field); <span class="comment">/* Name */</span>
<a name="l00066"></a>00066 assert (strstr (field, <span class="stringliteral">"NAME"</span>));
<a name="l00067"></a>00067 getNextField (f, field);
<a name="l00068"></a>00068 printf (<span class="stringliteral">"NAME: %s.\n"</span>, field);
<a name="l00069"></a>00069
<a name="l00070"></a>00070 getNextField (f, field); <span class="comment">/* Comment */</span>
<a name="l00071"></a>00071 assert (strstr (field, <span class="stringliteral">"COMMENT"</span>));
<a name="l00072"></a>00072 getLine (f, field);
<a name="l00073"></a>00073 printf (<span class="stringliteral">"COMMENT: %s.\n"</span>, field);
<a name="l00074"></a>00074
<a name="l00075"></a>00075 getNextField (f, field); <span class="comment">/* Type */</span>
<a name="l00076"></a>00076 assert (strstr (field, <span class="stringliteral">"TYPE"</span>));
<a name="l00077"></a>00077 getNextField (f, field);
<a name="l00078"></a>00078 printf (<span class="stringliteral">"TYPE: %s.\n"</span>, field);
<a name="l00079"></a>00079
<a name="l00080"></a>00080 getNextField (f, field); <span class="comment">/* Dimension */</span>
<a name="l00081"></a>00081 assert (strstr (field, <span class="stringliteral">"DIMENSION"</span>));
<a name="l00082"></a>00082 getNextField (f, field);
<a name="l00083"></a>00083 printf (<span class="stringliteral">"DIMENSION: %s.\n"</span>, field);
<a name="l00084"></a>00084 numNodes = atoi (field);
<a name="l00085"></a>00085
<a name="l00086"></a>00086 getNextField (f, field); <span class="comment">/* Edge weight type */</span>
<a name="l00087"></a>00087 assert (strstr (field, <span class="stringliteral">"EDGE_WEIGHT_TYPE"</span>));
<a name="l00088"></a>00088 getNextField (f, field);
<a name="l00089"></a>00089 printf (<span class="stringliteral">"EDGE_WEIGHT_TYPE: %s.\n"</span>, field);
<a name="l00090"></a>00090
<a name="l00091"></a>00091 getNextField (f, field); <span class="comment">/* Node coord section */</span>
<a name="l00092"></a>00092 assert (strstr (field, <span class="stringliteral">"NODE_COORD_SECTION"</span>));
<a name="l00093"></a>00093 loadNodes (f);
<a name="l00094"></a>00094
<a name="l00095"></a>00095 getNextField (f, field); <span class="comment">/* End of file */</span>
<a name="l00096"></a>00096 assert (strstr (field, <span class="stringliteral">"EOF"</span>));
<a name="l00097"></a>00097 printf (<span class="stringliteral">"EOF.\n"</span>);
<a name="l00098"></a>00098 }
<a name="l00099"></a>00099 <span class="keywordflow">else</span> {
<a name="l00100"></a>00100
<a name="l00101"></a>00101 fprintf (stderr, <span class="stringliteral">"Can't open '%s'.\n"</span>, __filename);
<a name="l00102"></a>00102 exit (1);
<a name="l00103"></a>00103 }
<a name="l00104"></a>00104 }
<a name="l00105"></a>00105
<a name="l00106"></a>00106 <span class="keywordtype">void</span> loadData (eoParser &amp; __parser) {
<a name="l00107"></a>00107
<a name="l00108"></a>00108 <span class="comment">/* Getting the path of the instance */</span>
<a name="l00109"></a>00109
<a name="l00110"></a>00110 eoValueParam &lt;std :: string&gt; param (<span class="stringliteral">""</span>, <span class="stringliteral">"inst"</span>, <span class="stringliteral">"Path of the instance"</span>) ;
<a name="l00111"></a>00111 __parser.processParam (param) ;
<a name="l00112"></a>00112 loadData (param.value ().c_str ());
<a name="l00113"></a>00113 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,61 +0,0 @@
<!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-PEO - Lessons: data.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.7 -->
<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>data.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">// "data.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __data_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __data_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;utils/eoParser.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">extern</span> <span class="keywordtype">void</span> loadData (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename);
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">extern</span> <span class="keywordtype">void</span> loadData (eoParser &amp; __parser);
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,160 +0,0 @@
<!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-PEO - Lessons: display.cpp 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.7 -->
<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>display.cpp</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">// "display.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;iostream&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;fstream&gt;</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;X11/Xlib.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "display.h"</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include "node.h"</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "opt_route.h"</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="preprocessor">#define BORDER 20</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span><span class="preprocessor">#define RATIO 0.5</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#define screen_width 1024</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define screen_height 768</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span>
<a name="l00039"></a>00039 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span> * filename;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="comment">/* Computed coordinates */</span>
<a name="l00042"></a>00042 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> * X_new_coord, * Y_new_coord ;
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="comment">/* this variable will contain the handle to the returned graphics context. */</span>
<a name="l00045"></a>00045 <span class="keyword">static</span> GC gc;
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="comment">/* this variable will contain the pointer to the Display structure */</span>
<a name="l00048"></a>00048 <span class="keyword">static</span> Display* disp;
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="comment">/* this variable will store the ID of the newly created window. */</span>
<a name="l00051"></a>00051 <span class="keyword">static</span> Window win;
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="keyword">static</span> <span class="keywordtype">int</span> screen;
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="comment">/* Create a new backing pixmap of the appropriate size */</span>
<a name="l00056"></a>00056
<a name="l00057"></a>00057 <span class="comment">/* Best tour */</span>
<a name="l00058"></a>00058 <span class="comment">/*</span>
<a name="l00059"></a>00059 <span class="comment"> gdk_gc_set_line_attributes (gc, 2, GDK_LINE_ON_OFF_DASH, GDK_CAP_NOT_LAST, GDK_JOIN_MITER) ;</span>
<a name="l00060"></a>00060 <span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment"> gdk_gc_set_foreground (gc, &amp; color_green) ; </span>
<a name="l00062"></a>00062 <span class="comment"></span>
<a name="l00063"></a>00063 <span class="comment"> for (int i = 0 ; i &lt; (int) numNodes ; i ++) {</span>
<a name="l00064"></a>00064 <span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment"> gdk_draw_line (pixmap, gc,</span>
<a name="l00066"></a>00066 <span class="comment"> X_new_coord [opt_route [i]],</span>
<a name="l00067"></a>00067 <span class="comment"> Y_new_coord [opt_route [i]],</span>
<a name="l00068"></a>00068 <span class="comment"> X_new_coord [opt_route [(i + 1) % numNodes]],</span>
<a name="l00069"></a>00069 <span class="comment"> Y_new_coord [opt_route [(i + 1) % numNodes]]);</span>
<a name="l00070"></a>00070 <span class="comment"> </span>
<a name="l00071"></a>00071 <span class="comment"> }*/</span>
<a name="l00072"></a>00072
<a name="l00073"></a>00073 <span class="keywordtype">void</span> openMainWindow (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename) {
<a name="l00074"></a>00074
<a name="l00075"></a>00075 filename = __filename;
<a name="l00076"></a>00076
<a name="l00077"></a>00077 <span class="comment">/* Map */</span>
<a name="l00078"></a>00078 <span class="keywordtype">int</span> map_width = (int) (X_max - X_min);
<a name="l00079"></a>00079 <span class="keywordtype">int</span> map_height = (int) (Y_max - Y_min);
<a name="l00080"></a>00080 <span class="keywordtype">int</span> map_side = std :: max (map_width, map_height);
<a name="l00081"></a>00081
<a name="l00082"></a>00082 <span class="comment">/* Calculate the window's width and height. */</span>
<a name="l00083"></a>00083 <span class="keywordtype">int</span> win_width = (int) (screen_width * RATIO * map_width / map_side);
<a name="l00084"></a>00084 <span class="keywordtype">int</span> win_height = (int) (screen_height * RATIO * map_height / map_side);
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="comment">/* Computing the coordinates */</span>
<a name="l00087"></a>00087 X_new_coord = <span class="keyword">new</span> <span class="keywordtype">unsigned</span> [numNodes];
<a name="l00088"></a>00088 Y_new_coord = <span class="keyword">new</span> <span class="keywordtype">unsigned</span> [numNodes];
<a name="l00089"></a>00089
<a name="l00090"></a>00090 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes; i ++) {
<a name="l00091"></a>00091 X_new_coord [i] = (<span class="keywordtype">unsigned</span>) (win_width * (1.0 - (X_coord [i] - X_min) / map_width) + BORDER);
<a name="l00092"></a>00092 Y_new_coord [i] = (unsigned) (win_height * (1.0 - (Y_coord [i] - Y_min) / map_height) + BORDER);
<a name="l00093"></a>00093 }
<a name="l00094"></a>00094
<a name="l00095"></a>00095 <span class="comment">/* Initialisation */</span>
<a name="l00096"></a>00096 XGCValues val ;
<a name="l00097"></a>00097
<a name="l00098"></a>00098 disp = XOpenDisplay (NULL) ;
<a name="l00099"></a>00099 screen = DefaultScreen (disp) ;
<a name="l00100"></a>00100 win = XCreateSimpleWindow (disp, RootWindow (disp, screen), 0, 0, win_width + 2 * BORDER, win_height + 2 * BORDER, 2, BlackPixel (disp, screen), WhitePixel (disp, screen)) ;
<a name="l00101"></a>00101 val.foreground = BlackPixel(disp, screen) ;
<a name="l00102"></a>00102 val.background = WhitePixel(disp, screen) ;
<a name="l00103"></a>00103 gc = XCreateGC (disp, win, GCForeground | GCBackground, &amp; val) ;
<a name="l00104"></a>00104
<a name="l00105"></a>00105 XMapWindow (disp, win) ;
<a name="l00106"></a>00106 XFlush (disp) ;
<a name="l00107"></a>00107
<a name="l00108"></a>00108 <span class="keywordflow">while</span> (<span class="keyword">true</span>) {
<a name="l00109"></a>00109 XClearWindow (disp, win) ;
<a name="l00110"></a>00110
<a name="l00111"></a>00111 <span class="comment">/* Vertices as circles */</span>
<a name="l00112"></a>00112 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 1 ; i &lt; numNodes ; i ++)
<a name="l00113"></a>00113 XDrawArc (disp, win, gc, X_new_coord [i] - 1, Y_new_coord [i] - 1, 3, 3, 0, 364 * 64) ;
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <span class="comment">/* New tour */</span>
<a name="l00116"></a>00116 std :: ifstream f (filename);
<a name="l00117"></a>00117 <span class="keywordflow">if</span> (f) {
<a name="l00118"></a>00118 Route route;
<a name="l00119"></a>00119 f &gt;&gt; route;
<a name="l00120"></a>00120 f.close ();
<a name="l00121"></a>00121
<a name="l00122"></a>00122 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; (int) numNodes; i ++)
<a name="l00123"></a>00123 XDrawLine (disp, win, gc,
<a name="l00124"></a>00124 X_new_coord [route [i]],
<a name="l00125"></a>00125 Y_new_coord [route [i]],
<a name="l00126"></a>00126 X_new_coord [route [(i + 1) % numNodes]],
<a name="l00127"></a>00127 Y_new_coord [route [(i + 1) % numNodes]]);
<a name="l00128"></a>00128 }
<a name="l00129"></a>00129 XFlush (disp) ;
<a name="l00130"></a>00130 sleep (1) ;
<a name="l00131"></a>00131 }
<a name="l00132"></a>00132 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,59 +0,0 @@
<!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-PEO - Lessons: display.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.7 -->
<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>display.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">// "display.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __display_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __display_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "route.h"</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">extern</span> <span class="keywordtype">void</span> openMainWindow (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename);
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,65 +0,0 @@
<!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-PEO - Lessons: display_best_route.cpp 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.7 -->
<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>display_best_route.cpp</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">// "display_best_route.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "display_best_route.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "display.h"</span>
<a name="l00026"></a>00026
<a name="l00027"></a><a class="code" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">00027</a> <a class="code" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute :: DisplayBestRoute</a> (eoPop &lt;Route&gt; &amp; __pop
<a name="l00028"></a>00028 ) : pop (__pop) {
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032
<a name="l00033"></a><a class="code" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">00033</a> <span class="keywordtype">void</span> <a class="code" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">DisplayBestRoute :: operator () </a>() {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 displayRoute (<a class="code" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">pop</a>.best_element ());
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,75 +0,0 @@
<!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-PEO - Lessons: display_best_route.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.7 -->
<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>display_best_route.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">// "display_best_route.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __display_best_route_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __display_best_route_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;utils/eoUpdater.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;eoPop.h&gt;</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#include "route.h"</span>
<a name="l00032"></a>00032
<a name="l00033"></a><a class="code" href="classDisplayBestRoute.html">00033</a> <span class="keyword">class </span><a class="code" href="classDisplayBestRoute.html">DisplayBestRoute</a> : <span class="keyword">public</span> eoUpdater {
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">public</span> :
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <a class="code" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute</a> (eoPop &lt;Route&gt; &amp; __pop);
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">operator () </a>();
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keyword">private</span> :
<a name="l00042"></a>00042
<a name="l00043"></a><a class="code" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">00043</a> eoPop &lt;Route&gt; &amp; <a class="code" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">pop</a>;
<a name="l00044"></a>00044
<a name="l00045"></a>00045 };
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,358 +0,0 @@
BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
BODY,TD {
font-size: 90%;
}
H1 {
text-align: center;
font-size: 160%;
}
H2 {
font-size: 120%;
}
H3 {
font-size: 100%;
}
CAPTION { font-weight: bold }
DIV.qindex {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.nav {
width: 100%;
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
padding: 2px;
line-height: 140%;
}
DIV.navtab {
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px;
}
TD.navtab {
font-size: 70%;
}
A.qindex {
text-decoration: none;
font-weight: bold;
color: #1A419D;
}
A.qindex:visited {
text-decoration: none;
font-weight: bold;
color: #1A419D
}
A.qindex:hover {
text-decoration: none;
background-color: #ddddff;
}
A.qindexHL {
text-decoration: none;
font-weight: bold;
background-color: #6666cc;
color: #ffffff;
border: 1px double #9295C2;
}
A.qindexHL:hover {
text-decoration: none;
background-color: #6666cc;
color: #ffffff;
}
A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }
A.el { text-decoration: none; font-weight: bold }
A.elRef { font-weight: bold }
A.code:link { text-decoration: none; font-weight: normal; color: #0000FF}
A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF}
A.codeRef:link { font-weight: normal; color: #0000FF}
A.codeRef:visited { font-weight: normal; color: #0000FF}
A:hover { text-decoration: none; background-color: #f2f2ff }
DL.el { margin-left: -1cm }
.fragment {
font-family: monospace, fixed;
font-size: 95%;
}
PRE.fragment {
border: 1px solid #CCCCCC;
background-color: #f5f5f5;
margin-top: 4px;
margin-bottom: 4px;
margin-left: 2px;
margin-right: 8px;
padding-left: 6px;
padding-right: 6px;
padding-top: 4px;
padding-bottom: 4px;
}
DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
DIV.groupHeader {
margin-left: 16px;
margin-top: 12px;
margin-bottom: 6px;
font-weight: bold;
}
DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% }
BODY {
background: white;
color: black;
margin-right: 20px;
margin-left: 20px;
}
TD.indexkey {
background-color: #e8eef2;
font-weight: bold;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TD.indexvalue {
background-color: #e8eef2;
font-style: italic;
padding-right : 10px;
padding-top : 2px;
padding-left : 10px;
padding-bottom : 2px;
margin-left : 0px;
margin-right : 0px;
margin-top : 2px;
margin-bottom : 2px;
border: 1px solid #CCCCCC;
}
TR.memlist {
background-color: #f0f0f0;
}
P.formulaDsp { text-align: center; }
IMG.formulaDsp { }
IMG.formulaInl { vertical-align: middle; }
SPAN.keyword { color: #008000 }
SPAN.keywordtype { color: #604020 }
SPAN.keywordflow { color: #e08000 }
SPAN.comment { color: #800000 }
SPAN.preprocessor { color: #806020 }
SPAN.stringliteral { color: #002080 }
SPAN.charliteral { color: #008080 }
.mdescLeft {
padding: 0px 8px 4px 8px;
font-size: 80%;
font-style: italic;
background-color: #FAFAFA;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
}
.mdescRight {
padding: 0px 8px 4px 8px;
font-size: 80%;
font-style: italic;
background-color: #FAFAFA;
border-top: 1px none #E0E0E0;
border-right: 1px none #E0E0E0;
border-bottom: 1px none #E0E0E0;
border-left: 1px none #E0E0E0;
margin: 0px;
}
.memItemLeft {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: solid;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-size: 80%;
}
.memItemRight {
padding: 1px 8px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: solid;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-size: 80%;
}
.memTemplItemLeft {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-size: 80%;
}
.memTemplItemRight {
padding: 1px 8px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
background-color: #FAFAFA;
font-size: 80%;
}
.memTemplParams {
padding: 1px 0px 0px 8px;
margin: 4px;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-top-color: #E0E0E0;
border-right-color: #E0E0E0;
border-bottom-color: #E0E0E0;
border-left-color: #E0E0E0;
border-top-style: solid;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
color: #606060;
background-color: #FAFAFA;
font-size: 80%;
}
.search { color: #003399;
font-weight: bold;
}
FORM.search {
margin-bottom: 0px;
margin-top: 0px;
}
INPUT.search { font-size: 75%;
color: #000080;
font-weight: normal;
background-color: #e8eef2;
}
TD.tiny { font-size: 75%;
}
a {
color: #1A41A8;
}
a:visited {
color: #2A3798;
}
.dirtab { padding: 4px;
border-collapse: collapse;
border: 1px solid #84b0c7;
}
TH.dirtab { background: #e8eef2;
font-weight: bold;
}
HR { height: 1px;
border: none;
border-top: 1px solid black;
}
/* Style for detailed member documentation */
.memtemplate {
font-size: 80%;
color: #606060;
font-weight: normal;
}
.memnav {
background-color: #e8eef2;
border: 1px solid #84b0c7;
text-align: center;
margin: 2px;
margin-right: 15px;
padding: 2px;
}
.memitem {
padding: 4px;
background-color: #eef3f5;
border-width: 1px;
border-style: solid;
border-color: #dedeee;
-moz-border-radius: 8px 8px 8px 8px;
}
.memname {
white-space: nowrap;
font-weight: bold;
}
.memdoc{
padding-left: 10px;
}
.memproto {
background-color: #d5e1e8;
width: 100%;
border-width: 1px;
border-style: solid;
border-color: #84b0c7;
font-weight: bold;
-moz-border-radius: 8px 8px 8px 8px;
}
.paramkey {
text-align: right;
}
.paramtype {
white-space: nowrap;
}
.paramname {
color: #602020;
font-style: italic;
}
/* End Styling for detailed member documentation */
/* for the tree view */
.ftvtree {
font-family: sans-serif;
margin:0.5em;
}
.directory { font-size: 9pt; font-weight: bold; }
.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; }
.directory > h3 { margin-top: 0; }
.directory p { margin: 0px; white-space: nowrap; }
.directory div { display: none; margin: 0px; }
.directory img { vertical-align: -30%; }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -1,161 +0,0 @@
<!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-PEO - Lessons: edge_xover.cpp 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.7 -->
<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>edge_xover.cpp</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">// "edge_xover.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;values.h&gt;</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "edge_xover.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">00031</a> <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">EdgeXover :: build_map</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2) {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordtype">unsigned</span> len = __par1.size () ;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="comment">/* Initialization */</span>
<a name="l00036"></a>00036 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a>.clear () ;
<a name="l00037"></a>00037 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a>.resize (len) ;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; len ; i ++) {
<a name="l00040"></a>00040 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [__par1 [i]].insert (__par1 [(i + 1) % len]) ;
<a name="l00041"></a>00041 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [__par2 [i]].insert (__par2 [(i + 1) % len]) ;
<a name="l00042"></a>00042 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [__par1 [i]].insert (__par1 [(i - 1 + len) % len]) ;
<a name="l00043"></a>00043 <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [__par2 [i]].insert (__par2 [(i - 1 + len) % len]) ;
<a name="l00044"></a>00044 }
<a name="l00045"></a>00045
<a name="l00046"></a>00046 <a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a>.clear () ;
<a name="l00047"></a>00047 <a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a>.resize (len, <span class="keyword">false</span>) ;
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049
<a name="l00050"></a><a class="code" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">00050</a> <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">EdgeXover :: remove_entry</a> (<span class="keywordtype">unsigned</span> __vertex, std :: vector &lt;std :: set &lt;unsigned&gt; &gt; &amp; __map) {
<a name="l00051"></a>00051
<a name="l00052"></a>00052 std :: set &lt;unsigned&gt; &amp; neigh = __map [__vertex] ;
<a name="l00053"></a>00053
<a name="l00054"></a>00054 <span class="keywordflow">for</span> (std :: set &lt;unsigned&gt; :: iterator it = neigh.begin () ;
<a name="l00055"></a>00055 it != neigh.end () ;
<a name="l00056"></a>00056 it ++)
<a name="l00057"></a>00057 __map [* it].erase (__vertex) ;
<a name="l00058"></a>00058
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060
<a name="l00061"></a><a class="code" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">00061</a> <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">EdgeXover :: add_vertex</a> (<span class="keywordtype">unsigned</span> __vertex, Route &amp; __child) {
<a name="l00062"></a>00062
<a name="l00063"></a>00063 <a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a> [__vertex] = true ;
<a name="l00064"></a>00064 __child.push_back (__vertex) ;
<a name="l00065"></a>00065 <a class="code" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">remove_entry</a> (__vertex, <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a>) ; <span class="comment">/* Removing entries */</span>
<a name="l00066"></a>00066 }
<a name="l00067"></a>00067
<a name="l00068"></a><a class="code" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">00068</a> <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">EdgeXover :: cross</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2, Route &amp; __child) {
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <a class="code" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">build_map</a> (__par1, __par2) ;
<a name="l00071"></a>00071
<a name="l00072"></a>00072 <span class="keywordtype">unsigned</span> len = __par1.size () ;
<a name="l00073"></a>00073
<a name="l00074"></a>00074 <span class="comment">/* Go ! */</span>
<a name="l00075"></a>00075 __child.clear () ;
<a name="l00076"></a>00076
<a name="l00077"></a>00077 <span class="keywordtype">unsigned</span> cur_vertex = rng.random (len) ;
<a name="l00078"></a>00078
<a name="l00079"></a>00079 <a class="code" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">add_vertex</a> (cur_vertex, __child) ;
<a name="l00080"></a>00080
<a name="l00081"></a>00081 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 1 ; i &lt; len ; i ++) {
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="keywordtype">unsigned</span> len_min_entry = MAXINT ;
<a name="l00084"></a>00084
<a name="l00085"></a>00085 std :: set &lt;unsigned&gt; &amp; neigh = <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [cur_vertex] ;
<a name="l00086"></a>00086
<a name="l00087"></a>00087 <span class="keywordflow">for</span> (std :: set &lt;unsigned&gt; :: iterator it = neigh.begin () ;
<a name="l00088"></a>00088 it != neigh.end () ;
<a name="l00089"></a>00089 it ++) {
<a name="l00090"></a>00090 <span class="keywordtype">unsigned</span> l = <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [* it].size () ;
<a name="l00091"></a>00091 <span class="keywordflow">if</span> (len_min_entry &gt; l)
<a name="l00092"></a>00092 len_min_entry = l ;
<a name="l00093"></a>00093 }
<a name="l00094"></a>00094
<a name="l00095"></a>00095 std :: vector &lt;unsigned&gt; cand ; <span class="comment">/* Candidates */</span>
<a name="l00096"></a>00096
<a name="l00097"></a>00097 <span class="keywordflow">for</span> (std :: set &lt;unsigned&gt; :: iterator it = neigh.begin () ;
<a name="l00098"></a>00098 it != neigh.end () ;
<a name="l00099"></a>00099 it ++) {
<a name="l00100"></a>00100 <span class="keywordtype">unsigned</span> l = <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> [* it].size () ;
<a name="l00101"></a>00101 <span class="keywordflow">if</span> (len_min_entry == l)
<a name="l00102"></a>00102 cand.push_back (* it) ;
<a name="l00103"></a>00103 }
<a name="l00104"></a>00104
<a name="l00105"></a>00105 <span class="keywordflow">if</span> (! cand.size ()) {
<a name="l00106"></a>00106
<a name="l00107"></a>00107 <span class="comment">/* Oh no ! Implicit mutation */</span>
<a name="l00108"></a>00108 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> j = 0 ; j &lt; len ; j ++)
<a name="l00109"></a>00109 <span class="keywordflow">if</span> (! <a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a> [j])
<a name="l00110"></a>00110 cand.push_back (j) ;
<a name="l00111"></a>00111 }
<a name="l00112"></a>00112
<a name="l00113"></a>00113 cur_vertex = cand [rng.random (cand.size ())] ;
<a name="l00114"></a>00114
<a name="l00115"></a>00115 <a class="code" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">add_vertex</a> (cur_vertex, __child) ;
<a name="l00116"></a>00116 }
<a name="l00117"></a>00117 }
<a name="l00118"></a>00118
<a name="l00119"></a><a class="code" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">00119</a> <span class="keywordtype">bool</span> <a class="code" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">EdgeXover :: operator () </a>(Route &amp; __route1, Route &amp; __route2) {
<a name="l00120"></a>00120
<a name="l00121"></a>00121 <span class="comment">// Init. copy</span>
<a name="l00122"></a>00122 Route par [2] ;
<a name="l00123"></a>00123 par [0] = __route1 ;
<a name="l00124"></a>00124 par [1] = __route2 ;
<a name="l00125"></a>00125
<a name="l00126"></a>00126 <a class="code" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">cross</a> (par [0], par [1], __route1) ;
<a name="l00127"></a>00127 <a class="code" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">cross</a> (par [1], par [0], __route2) ;
<a name="l00128"></a>00128
<a name="l00129"></a>00129 __route1.invalidate () ;
<a name="l00130"></a>00130 __route2.invalidate () ;
<a name="l00131"></a>00131
<a name="l00132"></a>00132 <span class="keywordflow">return</span> true ;
<a name="l00133"></a>00133 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,85 +0,0 @@
<!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-PEO - Lessons: edge_xover.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.7 -->
<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>edge_xover.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">// "edge_xover.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef edge_xover_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define edge_xover_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;set&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;eoOp.h&gt;</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include "route.h"</span>
<a name="l00033"></a>00033
<a name="l00035"></a><a class="code" href="classEdgeXover.html">00035</a> <span class="keyword">class </span><a class="code" href="classEdgeXover.html">EdgeXover</a> : <span class="keyword">public</span> eoQuadOp &lt;Route&gt; {
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">public</span> :
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keywordtype">bool</span> <a class="code" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">operator () </a>(Route &amp; __route1, Route &amp; __route2) ;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keyword">private</span> :
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">cross</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2, Route &amp; __child) ; <span class="comment">/* Binary */</span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">remove_entry</a> (<span class="keywordtype">unsigned</span> __vertex, std :: vector &lt;std :: set &lt;unsigned&gt; &gt; &amp; __map) ;
<a name="l00046"></a>00046 <span class="comment">/* Updating the map of entries */</span>
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">build_map</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2) ;
<a name="l00049"></a>00049
<a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">add_vertex</a> (<span class="keywordtype">unsigned</span> __vertex, Route &amp; __child) ;
<a name="l00051"></a>00051
<a name="l00052"></a><a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">00052</a> std :: vector &lt;std :: set &lt;unsigned&gt; &gt; <a class="code" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">_map</a> ; <span class="comment">/* The handled map */</span>
<a name="l00053"></a>00053
<a name="l00054"></a><a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">00054</a> std :: vector &lt;bool&gt; <a class="code" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">visited</a> ; <span class="comment">/* Vertices that are already visited */</span>
<a name="l00055"></a>00055
<a name="l00056"></a>00056 } ;
<a name="l00057"></a>00057
<a name="l00058"></a>00058 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,71 +0,0 @@
<!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-PEO - Lessons: File Index</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.7 -->
<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>ParadisEO-PEO - Lessons File List</h1>Here is a list of all documented files with brief descriptions:<table>
<tr><td class="indexkey"><b>city_swap.cpp</b> <a href="city__swap_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>city_swap.h</b> <a href="city__swap_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>data.cpp</b> <a href="data_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>data.h</b> <a href="data_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>display.cpp</b> <a href="display_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>display.h</b> <a href="display_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>display_best_route.cpp</b> <a href="display__best__route_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>display_best_route.h</b> <a href="display__best__route_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>edge_xover.cpp</b> <a href="edge__xover_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>edge_xover.h</b> <a href="edge__xover_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>merge_route_eval.cpp</b> <a href="merge__route__eval_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>merge_route_eval.h</b> <a href="merge__route__eval_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>mix.h</b> <a href="mix_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>node.cpp</b> <a href="node_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>node.h</b> <a href="node_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>opt_route.cpp</b> <a href="opt__route_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>opt_route.h</b> <a href="opt__route_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>order_xover.cpp</b> <a href="order__xover_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>order_xover.h</b> <a href="order__xover_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>param.cpp</b> <a href="param_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>param.h</b> <a href="param_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>part_route_eval.cpp</b> <a href="part__route__eval_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>part_route_eval.h</b> <a href="part__route__eval_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>partial_mapped_xover.cpp</b> <a href="partial__mapped__xover_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>partial_mapped_xover.h</b> <a href="partial__mapped__xover_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route.cpp</b> <a href="route_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route.h</b> <a href="route_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route_eval.cpp</b> <a href="route__eval_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route_eval.h</b> <a href="route__eval_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route_init.cpp</b> <a href="route__init_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>route_init.h</b> <a href="route__init_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt.cpp</b> <a href="two__opt_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt.h</b> <a href="two__opt_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_incr_eval.cpp</b> <a href="two__opt__incr__eval_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_incr_eval.h</b> <a href="two__opt__incr__eval_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_init.cpp</b> <a href="two__opt__init_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_init.h</b> <a href="two__opt__init_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_next.cpp</b> <a href="two__opt__next_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_next.h</b> <a href="two__opt__next_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_rand.cpp</b> <a href="two__opt__rand_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
<tr><td class="indexkey"><b>two_opt_rand.h</b> <a href="two__opt__rand_8h-source.html">[code]</a></td><td class="indexvalue"></td></tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 229 B

View file

@ -1,59 +0,0 @@
<!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-PEO - Lessons: Class Members</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li id="current"><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li id="current"><a href="functions.html"><span>All</span></a></li>
<li><a href="functions_func.html"><span>Functions</span></a></li>
<li><a href="functions_vars.html"><span>Variables</span></a></li>
</ul>
</div>
Here is a list of all documented class members with links to the class documentation for each member:
<p>
<ul>
<li>_map
: <a class="el" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">EdgeXover</a><li>add_vertex()
: <a class="el" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">EdgeXover</a><li>build_map()
: <a class="el" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">EdgeXover</a><li>cross()
: <a class="el" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">OrderXover</a>, <a class="el" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">EdgeXover</a><li>DisplayBestRoute()
: <a class="el" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute</a><li>from
: <a class="el" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">PartRouteEval</a><li>operator()()
: <a class="el" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">TwoOptRand</a>, <a class="el" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">TwoOptNext</a>, <a class="el" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">TwoOptInit</a>, <a class="el" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">TwoOptIncrEval</a>, <a class="el" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">TwoOpt</a>, <a class="el" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">RouteInit</a>, <a class="el" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">RouteEval</a>, <a class="el" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">PartialMappedXover</a>, <a class="el" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">PartRouteEval</a>, <a class="el" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">OrderXover</a>, <a class="el" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">MergeRouteEval</a>, <a class="el" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">EdgeXover</a>, <a class="el" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">DisplayBestRoute</a>, <a class="el" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">CitySwap</a><li>PartRouteEval()
: <a class="el" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval</a><li>pop
: <a class="el" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">DisplayBestRoute</a><li>remove_entry()
: <a class="el" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">EdgeXover</a><li>repair()
: <a class="el" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">PartialMappedXover</a><li>to
: <a class="el" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">PartRouteEval</a><li>visited
: <a class="el" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">EdgeXover</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,54 +0,0 @@
<!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-PEO - Lessons: Class Members - Functions</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li id="current"><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="functions.html"><span>All</span></a></li>
<li id="current"><a href="functions_func.html"><span>Functions</span></a></li>
<li><a href="functions_vars.html"><span>Variables</span></a></li>
</ul>
</div>
&nbsp;
<p>
<ul>
<li>add_vertex()
: <a class="el" href="classEdgeXover.html#2d3045ef503d8b16a27e11fdc23ca11c">EdgeXover</a><li>build_map()
: <a class="el" href="classEdgeXover.html#04de96aa1016836e0ba5f4b952a5fa16">EdgeXover</a><li>cross()
: <a class="el" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">OrderXover</a>, <a class="el" href="classEdgeXover.html#88c2d4c9a878454a32d56010f3dddc27">EdgeXover</a><li>DisplayBestRoute()
: <a class="el" href="classDisplayBestRoute.html#db263e38f1e82174f811bf62f323f87f">DisplayBestRoute</a><li>operator()()
: <a class="el" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">TwoOptRand</a>, <a class="el" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">TwoOptNext</a>, <a class="el" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">TwoOptInit</a>, <a class="el" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">TwoOptIncrEval</a>, <a class="el" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">TwoOpt</a>, <a class="el" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">RouteInit</a>, <a class="el" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">RouteEval</a>, <a class="el" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">PartialMappedXover</a>, <a class="el" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">PartRouteEval</a>, <a class="el" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">OrderXover</a>, <a class="el" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">MergeRouteEval</a>, <a class="el" href="classEdgeXover.html#cb1c0a103106a4d3319540cb23163a79">EdgeXover</a>, <a class="el" href="classDisplayBestRoute.html#ee879344a6d8b81a04d4eabbed2c7a04">DisplayBestRoute</a>, <a class="el" href="classCitySwap.html#7e6958b62048c89604cbf046b86bdf2d">CitySwap</a><li>PartRouteEval()
: <a class="el" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval</a><li>remove_entry()
: <a class="el" href="classEdgeXover.html#1b3a4c75dd9a034c81af6d89d85d30f5">EdgeXover</a><li>repair()
: <a class="el" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">PartialMappedXover</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,51 +0,0 @@
<!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-PEO - Lessons: Class Members - Variables</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li id="current"><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="functions.html"><span>All</span></a></li>
<li><a href="functions_func.html"><span>Functions</span></a></li>
<li id="current"><a href="functions_vars.html"><span>Variables</span></a></li>
</ul>
</div>
&nbsp;
<p>
<ul>
<li>_map
: <a class="el" href="classEdgeXover.html#d41399c6effb54ee48c722f1e19cb3c3">EdgeXover</a><li>from
: <a class="el" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">PartRouteEval</a><li>pop
: <a class="el" href="classDisplayBestRoute.html#5270aabbf294d2deca9878934216eb89">DisplayBestRoute</a><li>to
: <a class="el" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">PartRouteEval</a><li>visited
: <a class="el" href="classEdgeXover.html#46d4d4724cf6d660b1a7ab4a346573d4">EdgeXover</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,54 +0,0 @@
<!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-PEO - Lessons: Hierarchical Index</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.7 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><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>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
<li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
<li id="current"><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
</ul></div>
<h1>ParadisEO-PEO - Lessons Class Hierarchy</h1>This inheritance list is sorted roughly, but not completely, alphabetically:<ul>
<li><a class="el" href="classCitySwap.html">CitySwap</a>
<li><a class="el" href="classDisplayBestRoute.html">DisplayBestRoute</a>
<li><a class="el" href="classEdgeXover.html">EdgeXover</a>
<li><a class="el" href="classOrderXover.html">OrderXover</a>
<li><a class="el" href="classPartialMappedXover.html">PartialMappedXover</a>
<li><a class="el" href="classPartRouteEval.html">PartRouteEval</a>
<li><a class="elRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//classpeoAggEvalFunc.html">peoAggEvalFunc&lt; EOT &gt;</a>
<code> [external]</code><ul>
<li><a class="el" href="classMergeRouteEval.html">MergeRouteEval</a>
</ul>
<li><a class="el" href="classRouteEval.html">RouteEval</a>
<li><a class="el" href="classRouteInit.html">RouteInit</a>
<li><a class="el" href="classTwoOpt.html">TwoOpt</a>
<li><a class="el" href="classTwoOptIncrEval.html">TwoOptIncrEval</a>
<li><a class="el" href="classTwoOptInit.html">TwoOptInit</a>
<li><a class="el" href="classTwoOptNext.html">TwoOptNext</a>
<li><a class="el" href="classTwoOptRand.html">TwoOptRand</a>
</ul>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,8 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ParadisEO-PEO - Lessons</title></head>
<frameset cols="250,*">
<frame src="tree.html" name="treefrm">
<frame src="main.html" name="basefrm">
</frameset>
</html>

View file

@ -1,117 +0,0 @@
#!/usr/bin/perl
%subst = ( "eo.doxytag", "", "mo.doxytag", "", "paradiseo-peo.doxytag", "");
$quiet = 0;
if (open(F,"search.cfg"))
{
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_doc"} = $_;
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_cgi"} = $_;
}
while ( @ARGV ) {
$_ = shift @ARGV;
if ( s/^-// ) {
if ( /^l(.*)/ ) {
$v = ($1 eq "") ? shift @ARGV : $1;
($v =~ /\/$/) || ($v .= "/");
$_ = $v;
if ( /(.+)\@(.+)/ ) {
if ( exists $subst{$1} ) {
$subst{$1} = $2;
} else {
print STDERR "Unknown tag file $1 given with option -l\n";
&usage();
}
} else {
print STDERR "Argument $_ is invalid for option -l\n";
&usage();
}
}
elsif ( /^q/ ) {
$quiet = 1;
}
elsif ( /^\?|^h/ ) {
&usage();
}
else {
print STDERR "Illegal option -$_\n";
&usage();
}
}
else {
push (@files, $_ );
}
}
foreach $sub (keys %subst)
{
if ( $subst{$sub} eq "" )
{
print STDERR "No substitute given for tag file `$sub'\n";
&usage();
}
elsif ( ! $quiet && $sub ne "_doc" && $sub ne "_cgi" )
{
print "Substituting $subst{$sub} for each occurence of tag file $sub\n";
}
}
if ( ! @files ) {
if (opendir(D,".")) {
foreach $file ( readdir(D) ) {
$match = ".html";
next if ( $file =~ /^\.\.?$/ );
($file =~ /$match/) && (push @files, $file);
($file =~ "tree.js") && (push @files, $file);
}
closedir(D);
}
}
if ( ! @files ) {
print STDERR "Warning: No input files given and none found!\n";
}
foreach $f (@files)
{
if ( ! $quiet ) {
print "Editing: $f...\n";
}
$oldf = $f;
$f .= ".bak";
unless (rename $oldf,$f) {
print STDERR "Error: cannot rename file $oldf\n";
exit 1;
}
if (open(F,"<$f")) {
unless (open(G,">$oldf")) {
print STDERR "Error: opening file $oldf for writing\n";
exit 1;
}
if ($oldf ne "tree.js") {
while (<F>) {
s/doxygen\=\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\" (href|src)=\"\2/doxygen\=\"$1:$subst{$1}\" \3=\"$subst{$1}/g;
print G "$_";
}
}
else {
while (<F>) {
s/\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\", \"\2/\"$1:$subst{$1}\" ,\"$subst{$1}/g;
print G "$_";
}
}
}
else {
print STDERR "Warning file $f does not exist\n";
}
unlink $f;
}
sub usage {
print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n";
print STDERR "Options:\n";
print STDERR " -l tagfile\@linkName tag file + URL or directory \n";
print STDERR " -q Quiet mode\n\n";
exit 1;
}

View file

@ -1,30 +0,0 @@
<!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-PEO - Lessons: Main Page</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.7 -->
<div class="tabs">
<ul>
<li id="current"><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li><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>ParadisEO-PEO - Lessons Documentation</h1>
<p>
<h3 align="center">0.1 </h3><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,60 +0,0 @@
<!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-PEO - Lessons: merge_route_eval.cpp 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.7 -->
<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>merge_route_eval.cpp</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">// "merge_route_eval.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2005</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "merge_route_eval.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a><a class="code" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">00026</a> <span class="keywordtype">void</span> <a class="code" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">MergeRouteEval :: operator () </a>(Route &amp; __route, <span class="keyword">const</span> <span class="keywordtype">int</span> &amp; __part_fit) {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="keywordtype">int</span> len = __route.fitness ();
<a name="l00029"></a>00029 len += __part_fit;
<a name="l00030"></a>00030 __route.fitness (len);
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,67 +0,0 @@
<!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-PEO - Lessons: merge_route_eval.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.7 -->
<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>merge_route_eval.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">// "merge_route_eval.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2005</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __merge_route_eval_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __merge_route_eval_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;peoAggEvalFunc.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classMergeRouteEval.html">00031</a> <span class="keyword">class </span><a class="code" href="classMergeRouteEval.html">MergeRouteEval</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//classpeoAggEvalFunc.html">peoAggEvalFunc</a> &lt;Route&gt; {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">public</span> :
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classMergeRouteEval.html#29cb0028ac0df4b2cee3a809c8f35dea">operator () </a>(Route &amp; __route, <span class="keyword">const</span> <span class="keywordtype">int</span> &amp; __part_fit) ;
<a name="l00036"></a>00036
<a name="l00037"></a>00037 };
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,53 +0,0 @@
<!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-PEO - Lessons: mix.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.7 -->
<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>mix.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"> file: 'mix.h' </span>
<a name="l00005"></a>00005 <span class="comment"> author: S. CAHON</span>
<a name="l00006"></a>00006 <span class="comment"> mail: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00007"></a>00007 <span class="comment"> date: dec. 2005 </span>
<a name="l00008"></a>00008 <span class="comment">*/</span>
<a name="l00009"></a>00009
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef __mix_h</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define __mix_h</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00014"></a>00014
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00016"></a>00016
<a name="l00017"></a>00017 <span class="keyword">template</span> &lt;<span class="keyword">class</span> T&gt; <span class="keywordtype">void</span> mix (std :: vector &lt;T&gt; &amp; __v) {
<a name="l00018"></a>00018
<a name="l00019"></a>00019 <span class="keywordtype">unsigned</span> len = __v.size () ;
<a name="l00020"></a>00020
<a name="l00021"></a>00021 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; len ; i ++)
<a name="l00022"></a>00022 std :: swap (__v [i], __v [rng.random (len)]) ;
<a name="l00023"></a>00023 }
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,120 +0,0 @@
<!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-PEO - Lessons: node.cpp 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.7 -->
<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>node.cpp</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">// "node.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;values.h&gt;</span>
<a name="l00026"></a>00026
<a name="l00027"></a>00027 <span class="preprocessor">#include "node.h"</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keywordtype">unsigned</span> numNodes; <span class="comment">/* Number of nodes */</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="comment">//static unsigned * * dist; /* Square matrix of distances */</span>
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordtype">double</span> * X_coord, * Y_coord;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">double</span> X_min = MAXDOUBLE, X_max = MINDOUBLE, Y_min = MAXDOUBLE, Y_max = MINDOUBLE;
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keywordtype">void</span> loadNodes (FILE * __f) {
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="comment">/* Coord */</span>
<a name="l00040"></a>00040
<a name="l00041"></a>00041 X_coord = <span class="keyword">new</span> <span class="keywordtype">double</span> [numNodes];
<a name="l00042"></a>00042
<a name="l00043"></a>00043 Y_coord = <span class="keyword">new</span> <span class="keywordtype">double</span> [numNodes];
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="keywordtype">unsigned</span> num;
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes; i ++) {
<a name="l00048"></a>00048
<a name="l00049"></a>00049 fscanf (__f, <span class="stringliteral">"%u%lf%lf"</span>, &amp; num, X_coord + i, Y_coord + i);
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="keywordflow">if</span> (X_coord [i] &lt; X_min)
<a name="l00052"></a>00052 X_min = X_coord [i];
<a name="l00053"></a>00053 <span class="keywordflow">if</span> (X_coord [i] &gt; X_max)
<a name="l00054"></a>00054 X_max = X_coord [i];
<a name="l00055"></a>00055 <span class="keywordflow">if</span> (Y_coord [i] &lt; Y_min)
<a name="l00056"></a>00056 Y_min = Y_coord [i];
<a name="l00057"></a>00057 <span class="keywordflow">if</span> (Y_coord [i] &gt; Y_max)
<a name="l00058"></a>00058 Y_max = Y_coord [i];
<a name="l00059"></a>00059 }
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="comment">/* Allocation */</span>
<a name="l00062"></a>00062 <span class="comment">/*</span>
<a name="l00063"></a>00063 <span class="comment"> dist = new unsigned * [numNodes];</span>
<a name="l00064"></a>00064 <span class="comment"> </span>
<a name="l00065"></a>00065 <span class="comment"> for (unsigned i = 0; i &lt; numNodes; i ++)</span>
<a name="l00066"></a>00066 <span class="comment"> dist [i] = new unsigned [numNodes];</span>
<a name="l00067"></a>00067 <span class="comment"> */</span>
<a name="l00068"></a>00068 <span class="comment">/* Computation of the distances */</span>
<a name="l00069"></a>00069
<a name="l00070"></a>00070 <span class="comment">/*</span>
<a name="l00071"></a>00071 <span class="comment"> for (unsigned i = 0; i &lt; numNodes; i ++) {</span>
<a name="l00072"></a>00072 <span class="comment"></span>
<a name="l00073"></a>00073 <span class="comment"> dist [i] [i] = 0;</span>
<a name="l00074"></a>00074 <span class="comment"></span>
<a name="l00075"></a>00075 <span class="comment"> for (unsigned j = 0; j &lt; numNodes; j ++) {</span>
<a name="l00076"></a>00076 <span class="comment"> </span>
<a name="l00077"></a>00077 <span class="comment"> double dx = X_coord [i] - X_coord [j], dy = Y_coord [i] - Y_coord [j];</span>
<a name="l00078"></a>00078 <span class="comment"> </span>
<a name="l00079"></a>00079 <span class="comment"> dist [i] [j] = dist [j] [i] = (unsigned) (sqrt (dx * dx + dy * dy) + 0.5) ;</span>
<a name="l00080"></a>00080 <span class="comment"> }</span>
<a name="l00081"></a>00081 <span class="comment"> }*/</span>
<a name="l00082"></a>00082 }
<a name="l00083"></a>00083
<a name="l00084"></a>00084 <span class="keywordtype">unsigned</span> distance (<a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> __from, <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> __to) {
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="comment">// return dist [__from] [__to];</span>
<a name="l00087"></a>00087
<a name="l00088"></a>00088 <span class="keywordtype">double</span> dx = X_coord [__from] - X_coord [__to], dy = Y_coord [__from] - Y_coord [__to];
<a name="l00089"></a>00089
<a name="l00090"></a>00090 <span class="keywordflow">return</span> (<span class="keywordtype">unsigned</span>) (sqrt (dx * dx + dy * dy) + 0.5) ;
<a name="l00091"></a>00091 }
<a name="l00092"></a>00092
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,69 +0,0 @@
<!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-PEO - Lessons: node.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.7 -->
<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>node.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">// "node.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __node_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __node_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a>;
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">extern</span> <span class="keywordtype">double</span> X_min, X_max, Y_min, Y_max;
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">extern</span> <span class="keywordtype">double</span> * X_coord, * Y_coord;
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> numNodes; <span class="comment">/* Number of nodes */</span>
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keyword">extern</span> <span class="keywordtype">void</span> loadNodes (FILE * __f);
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keyword">extern</span> <span class="keywordtype">unsigned</span> distance (<a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> __from, <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> __to);
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,150 +0,0 @@
<!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-PEO - Lessons: opt_route.cpp 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.7 -->
<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>opt_route.cpp</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">// "opt_route.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "opt_route.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#define MAX_TRASH_LENGTH 1000</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span><span class="preprocessor">#define MAX_FIELD_LENGTH 1000</span>
<a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define MAX_LINE_LENGTH 1000</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00030"></a>00030 <span class="keyword">static</span> <span class="keywordtype">void</span> getNextField (FILE * __f, <span class="keywordtype">char</span> * __buff) {
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keywordtype">char</span> trash [MAX_TRASH_LENGTH];
<a name="l00033"></a>00033
<a name="l00034"></a>00034 fscanf (__f, <span class="stringliteral">"%[ \t:\n]"</span>, trash); <span class="comment">/* Discarding sep. */</span>
<a name="l00035"></a>00035 fscanf (__f, <span class="stringliteral">"%[^:\n]"</span>, __buff); <span class="comment">/* Reading the field */</span>
<a name="l00036"></a>00036 fgetc (__f);
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keyword">static</span> <span class="keywordtype">void</span> getLine (FILE * __f, <span class="keywordtype">char</span> * __buff) {
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keywordtype">char</span> trash [MAX_TRASH_LENGTH];
<a name="l00042"></a>00042
<a name="l00043"></a>00043 fscanf (__f, <span class="stringliteral">"%[ \t:\n]"</span>, trash); <span class="comment">/* Discarding sep. */</span>
<a name="l00044"></a>00044 fscanf (__f, <span class="stringliteral">"%[^\n]"</span>, __buff); <span class="comment">/* Reading the line */</span>
<a name="l00045"></a>00045 }
<a name="l00046"></a>00046
<a name="l00047"></a>00047 <span class="keyword">static</span> <span class="keywordtype">void</span> loadBestRoute (FILE * __f) {
<a name="l00048"></a>00048
<a name="l00049"></a>00049 opt_route.clear ();
<a name="l00050"></a>00050
<a name="l00051"></a>00051 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes; i ++) {
<a name="l00052"></a>00052 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> node;
<a name="l00053"></a>00053 fscanf (__f, <span class="stringliteral">"%u"</span>, &amp; node);
<a name="l00054"></a>00054 opt_route.push_back (node - 1);
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056 <span class="keywordtype">int</span> d; <span class="comment">/* -1 ! */</span>
<a name="l00057"></a>00057 fscanf (__f, <span class="stringliteral">"%d"</span>, &amp; d);
<a name="l00058"></a>00058 }
<a name="l00059"></a>00059
<a name="l00060"></a>00060 <span class="keywordtype">void</span> loadOptimumRoute (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename) {
<a name="l00061"></a>00061
<a name="l00062"></a>00062 FILE * f = fopen (__filename, <span class="stringliteral">"r"</span>);
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="keywordflow">if</span> (f) {
<a name="l00065"></a>00065
<a name="l00066"></a>00066 printf (<span class="stringliteral">"Loading '%s'.\n"</span>, __filename);
<a name="l00067"></a>00067
<a name="l00068"></a>00068 <span class="keywordtype">char</span> field [MAX_FIELD_LENGTH];
<a name="l00069"></a>00069
<a name="l00070"></a>00070 getNextField (f, field); <span class="comment">/* Name */</span>
<a name="l00071"></a>00071 assert (strstr (field, <span class="stringliteral">"NAME"</span>));
<a name="l00072"></a>00072 getNextField (f, field);
<a name="l00073"></a>00073 <span class="comment">//printf ("NAME: %s.\n", field);</span>
<a name="l00074"></a>00074
<a name="l00075"></a>00075 getNextField (f, field); <span class="comment">/* Comment */</span>
<a name="l00076"></a>00076 assert (strstr (field, <span class="stringliteral">"COMMENT"</span>));
<a name="l00077"></a>00077 getLine (f, field);
<a name="l00078"></a>00078 <span class="comment">// printf ("COMMENT: %s.\n", field);</span>
<a name="l00079"></a>00079
<a name="l00080"></a>00080 getNextField (f, field); <span class="comment">/* Type */</span>
<a name="l00081"></a>00081 assert (strstr (field, <span class="stringliteral">"TYPE"</span>));
<a name="l00082"></a>00082 getNextField (f, field);
<a name="l00083"></a>00083 <span class="comment">//printf ("TYPE: %s.\n", field);</span>
<a name="l00084"></a>00084
<a name="l00085"></a>00085 getNextField (f, field); <span class="comment">/* Dimension */</span>
<a name="l00086"></a>00086 assert (strstr (field, <span class="stringliteral">"DIMENSION"</span>));
<a name="l00087"></a>00087 getNextField (f, field);
<a name="l00088"></a>00088 <span class="comment">// printf ("DIMENSION: %s.\n", field);</span>
<a name="l00089"></a>00089 numNodes = atoi (field);
<a name="l00090"></a>00090
<a name="l00091"></a>00091 getNextField (f, field); <span class="comment">/* Tour section */</span>
<a name="l00092"></a>00092 assert (strstr (field, <span class="stringliteral">"TOUR_SECTION"</span>));
<a name="l00093"></a>00093 loadBestRoute (f);
<a name="l00094"></a>00094
<a name="l00095"></a>00095 getNextField (f, field); <span class="comment">/* End of file */</span>
<a name="l00096"></a>00096 assert (strstr (field, <span class="stringliteral">"EOF"</span>));
<a name="l00097"></a>00097 <span class="comment">//printf ("EOF.\n");</span>
<a name="l00098"></a>00098
<a name="l00099"></a>00099 printf (<span class="stringliteral">"The length of the best route is %u.\n"</span>, length (opt_route));
<a name="l00100"></a>00100 }
<a name="l00101"></a>00101 <span class="keywordflow">else</span> {
<a name="l00102"></a>00102
<a name="l00103"></a>00103 fprintf (stderr, <span class="stringliteral">"Can't open '%s'.\n"</span>, __filename);
<a name="l00104"></a>00104 exit (1);
<a name="l00105"></a>00105 }
<a name="l00106"></a>00106 }
<a name="l00107"></a>00107
<a name="l00108"></a>00108 <span class="keywordtype">void</span> loadOptimumRoute (eoParser &amp; __parser) {
<a name="l00109"></a>00109
<a name="l00110"></a>00110 <span class="comment">/* Getting the path of the instance */</span>
<a name="l00111"></a>00111
<a name="l00112"></a>00112 eoValueParam &lt;std :: string&gt; param (<span class="stringliteral">""</span>, <span class="stringliteral">"optimumTour"</span>, <span class="stringliteral">"Optimum tour"</span>) ;
<a name="l00113"></a>00113 __parser.processParam (param) ;
<a name="l00114"></a>00114 <span class="keywordflow">if</span> (strlen (param.value ().c_str ()))
<a name="l00115"></a>00115 loadOptimumRoute (param.value ().c_str ());
<a name="l00116"></a>00116 <span class="keywordflow">else</span>
<a name="l00117"></a>00117 opt_route.fitness (0);
<a name="l00118"></a>00118 }
<a name="l00119"></a>00119
<a name="l00120"></a>00120 Route opt_route; <span class="comment">/* Optimum route */</span>
<a name="l00121"></a>00121
<a name="l00122"></a>00122
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: opt_route.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.7 -->
<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>opt_route.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">// "opt_route.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __opt_route_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __opt_route_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;utils/eoParser.h&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include "route.h"</span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">extern</span> <span class="keywordtype">void</span> loadOptimumRoute (<span class="keyword">const</span> <span class="keywordtype">char</span> * __filename);
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">extern</span> <span class="keywordtype">void</span> loadOptimumRoute (eoParser &amp; __parser);
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keyword">extern</span> Route opt_route; <span class="comment">/* Optimum route */</span>
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,107 +0,0 @@
<!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-PEO - Lessons: order_xover.cpp 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.7 -->
<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>order_xover.cpp</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">// "order_xover.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2002</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="preprocessor">#include "order_xover.h"</span>
<a name="l00029"></a>00029
<a name="l00030"></a><a class="code" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">00030</a> <span class="keywordtype">void</span> <a class="code" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">OrderXover :: cross</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2, Route &amp; __child) {
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keywordtype">unsigned</span> cut2 = 1 + rng.random (numNodes) ;
<a name="l00033"></a>00033 <span class="keywordtype">unsigned</span> cut1 = rng.random (cut2);
<a name="l00034"></a>00034 <span class="keywordtype">unsigned</span> l = 0;
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="comment">/* To store vertices that have already been crossed */</span>
<a name="l00037"></a>00037 std :: vector &lt;bool&gt; v (numNodes, <span class="keyword">false</span>);
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="comment">/* Copy of the left partial route of the first parent */</span>
<a name="l00040"></a>00040 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = cut1 ; i &lt; cut2 ; i ++) {
<a name="l00041"></a>00041 __child [l ++] = __par1 [i] ;
<a name="l00042"></a>00042 v [__par1 [i]] = true ;
<a name="l00043"></a>00043 }
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="comment">/* Searching the vertex of the second path, that ended the previous first one */</span>
<a name="l00046"></a>00046 <span class="keywordtype">unsigned</span> from = 0 ;
<a name="l00047"></a>00047 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes; i ++)
<a name="l00048"></a>00048 <span class="keywordflow">if</span> (__par2 [i] == __child [cut2 - 1]) {
<a name="l00049"></a>00049 from = i ;
<a name="l00050"></a>00050 break ;
<a name="l00051"></a>00051 }
<a name="l00052"></a>00052
<a name="l00053"></a>00053 <span class="comment">/* Selecting a direction (Left or Right) */</span>
<a name="l00054"></a>00054 <span class="keywordtype">char</span> direct = rng.flip () ? 1 : -1 ;
<a name="l00055"></a>00055
<a name="l00056"></a>00056 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes + 1; i ++) {
<a name="l00057"></a>00057 <span class="keywordtype">unsigned</span> bidule = (direct * i + from + numNodes) % numNodes;
<a name="l00058"></a>00058 <span class="keywordflow">if</span> (! v [__par2 [bidule]]) {
<a name="l00059"></a>00059 __child [l ++] = __par2 [bidule] ;
<a name="l00060"></a>00060 v [__par2 [bidule]] = true ;
<a name="l00061"></a>00061 }
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 }
<a name="l00064"></a>00064
<a name="l00065"></a><a class="code" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">00065</a> <span class="keywordtype">bool</span> <a class="code" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">OrderXover :: operator () </a>(Route &amp; __route1, Route &amp; __route2) {
<a name="l00066"></a>00066
<a name="l00067"></a>00067 <span class="comment">// Init. copy</span>
<a name="l00068"></a>00068 Route par [2] ;
<a name="l00069"></a>00069 par [0] = __route1 ;
<a name="l00070"></a>00070 par [1] = __route2 ;
<a name="l00071"></a>00071
<a name="l00072"></a>00072 <a class="code" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">cross</a> (par [0], par [1], __route1) ;
<a name="l00073"></a>00073 <a class="code" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">cross</a> (par [1], par [0], __route2) ;
<a name="l00074"></a>00074
<a name="l00075"></a>00075 __route1.invalidate () ;
<a name="l00076"></a>00076 __route2.invalidate () ;
<a name="l00077"></a>00077
<a name="l00078"></a>00078 <span class="keywordflow">return</span> true ;
<a name="l00079"></a>00079 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,70 +0,0 @@
<!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-PEO - Lessons: order_xover.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.7 -->
<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>order_xover.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">// "order_xover.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef order_xover_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define order_xover_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoOp.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00032"></a><a class="code" href="classOrderXover.html">00032</a> <span class="keyword">class </span><a class="code" href="classOrderXover.html">OrderXover</a> : <span class="keyword">public</span> eoQuadOp &lt;Route&gt; {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span> :
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keywordtype">bool</span> <a class="code" href="classOrderXover.html#0ff6aada669eb8173322ed68cda1ac61">operator () </a>(Route &amp; __route1, Route &amp; __route2) ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="keyword">private</span> :
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classOrderXover.html#d2bf90b5f46ac4a344777e17bc5f364d">cross</a> (<span class="keyword">const</span> Route &amp; __par1, <span class="keyword">const</span> Route &amp; __par2, Route &amp; __child) ;
<a name="l00041"></a>00041 } ;
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: param.cpp 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.7 -->
<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>param.cpp</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">// "param.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;utils/eoParser.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include "data.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "opt_route.h"</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#2b496ee9b81d9ae322ae6edb9a93dc71">loadParameters</a> (<span class="keywordtype">int</span> __argc, <span class="keywordtype">char</span> * * __argv) {
<a name="l00030"></a>00030
<a name="l00031"></a>00031 eoParser parser (__argc, __argv);
<a name="l00032"></a>00032
<a name="l00033"></a>00033 loadData (parser);
<a name="l00034"></a>00034
<a name="l00035"></a>00035 loadOptimumRoute (parser);
<a name="l00036"></a>00036 }
<a name="l00037"></a>00037
<a name="l00038"></a>00038
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,57 +0,0 @@
<!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-PEO - Lessons: param.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.7 -->
<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>param.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">// "param.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __param_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __param_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="keyword">extern</span> <span class="keywordtype">void</span> <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#2b496ee9b81d9ae322ae6edb9a93dc71">loadParameters</a> (<span class="keywordtype">int</span> __argc, <span class="keywordtype">char</span> * * __argv);
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,73 +0,0 @@
<!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-PEO - Lessons: part_route_eval.cpp 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.7 -->
<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>part_route_eval.cpp</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">// "part_route_eval.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "part_route_eval.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "node.h"</span>
<a name="l00026"></a>00026
<a name="l00027"></a><a class="code" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">00027</a> <a class="code" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval :: PartRouteEval</a> (<span class="keywordtype">float</span> __from,
<a name="l00028"></a>00028 <span class="keywordtype">float</span> __to
<a name="l00029"></a>00029 ) : from (__from),
<a name="l00030"></a>00030 to (__to) {
<a name="l00031"></a>00031
<a name="l00032"></a>00032 }
<a name="l00033"></a>00033
<a name="l00034"></a><a class="code" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">00034</a> <span class="keywordtype">void</span> <a class="code" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">PartRouteEval :: operator () </a>(Route &amp; __route) {
<a name="l00035"></a>00035
<a name="l00036"></a>00036
<a name="l00037"></a>00037 <span class="keywordtype">unsigned</span> len = 0 ;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = (<span class="keywordtype">unsigned</span>) (__route.size () * <a class="code" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">from</a>) ;
<a name="l00040"></a>00040 i &lt; (unsigned) (__route.size () * <a class="code" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">to</a>) ;
<a name="l00041"></a>00041 i ++)
<a name="l00042"></a>00042 len += distance (__route [i], __route [(i + 1) % numNodes]) ;
<a name="l00043"></a>00043
<a name="l00044"></a>00044 __route.fitness (- (<span class="keywordtype">int</span>) len) ;
<a name="l00045"></a>00045 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,74 +0,0 @@
<!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-PEO - Lessons: part_route_eval.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.7 -->
<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>part_route_eval.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">// "part_route_eval.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2005</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __part_route_eval_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __part_route_eval_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoEvalFunc.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00032"></a><a class="code" href="classPartRouteEval.html">00032</a> <span class="keyword">class </span><a class="code" href="classPartRouteEval.html">PartRouteEval</a> : <span class="keyword">public</span> eoEvalFunc &lt;Route&gt; {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span> :
<a name="l00035"></a>00035
<a name="l00037"></a>00037 <a class="code" href="classPartRouteEval.html#a331566b29bc3227f377004232f05491">PartRouteEval</a> (<span class="keywordtype">float</span> __from, <span class="keywordtype">float</span> __to) ;
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="classPartRouteEval.html#965fab875fb601f17934a6ece761beae">operator () </a>(Route &amp; __route) ;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 <span class="keyword">private</span> :
<a name="l00042"></a>00042
<a name="l00043"></a><a class="code" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">00043</a> <span class="keywordtype">float</span> <a class="code" href="classPartRouteEval.html#5bde722e66378b2570ae6c4b4f8df58e">from</a>, <a class="code" href="classPartRouteEval.html#de53cc919faa498663f327b72c357da3">to</a> ;
<a name="l00044"></a>00044
<a name="l00045"></a>00045 } ;
<a name="l00046"></a>00046
<a name="l00047"></a>00047
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,104 +0,0 @@
<!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-PEO - Lessons: partial_mapped_xover.cpp 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.7 -->
<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>partial_mapped_xover.cpp</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">// "partial_mapped_xover.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="preprocessor">#include "partial_mapped_xover.h"</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include "mix.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">00031</a> <span class="keywordtype">void</span> <a class="code" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">PartialMappedXover :: repair</a> (Route &amp; __route, <span class="keywordtype">unsigned</span> __cut1, <span class="keywordtype">unsigned</span> __cut2) {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordtype">unsigned</span> v [__route.size ()] ; <span class="comment">// Number of times a cities are visited ...</span>
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; __route.size () ; i ++)
<a name="l00036"></a>00036 v [i] = 0 ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; __route.size () ; i ++)
<a name="l00039"></a>00039 v [__route [i]] ++ ;
<a name="l00040"></a>00040
<a name="l00041"></a>00041 std :: vector &lt;unsigned&gt; vert ;
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; __route.size () ; i ++)
<a name="l00044"></a>00044 <span class="keywordflow">if</span> (! v [i])
<a name="l00045"></a>00045 vert.push_back (i) ;
<a name="l00046"></a>00046
<a name="l00047"></a>00047 mix (vert) ;
<a name="l00048"></a>00048
<a name="l00049"></a>00049 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; __route.size () ; i ++)
<a name="l00050"></a>00050 <span class="keywordflow">if</span> (i &lt; __cut1 || i &gt;= __cut2)
<a name="l00051"></a>00051 <span class="keywordflow">if</span> (v [__route [i]] &gt; 1) {
<a name="l00052"></a>00052 __route [i] = vert.back () ;
<a name="l00053"></a>00053 vert.pop_back () ;
<a name="l00054"></a>00054 }
<a name="l00055"></a>00055 }
<a name="l00056"></a>00056
<a name="l00057"></a><a class="code" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">00057</a> <span class="keywordtype">bool</span> <a class="code" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">PartialMappedXover :: operator () </a>(Route &amp; __route1, Route &amp; __route2) {
<a name="l00058"></a>00058
<a name="l00059"></a>00059 <span class="keywordtype">unsigned</span> cut1 = rng.random (__route1.size ()), cut2 = rng.random (__route2.size ()) ;
<a name="l00060"></a>00060
<a name="l00061"></a>00061 <span class="keywordflow">if</span> (cut2 &lt; cut1)
<a name="l00062"></a>00062 std :: swap (cut1, cut2) ;
<a name="l00063"></a>00063
<a name="l00064"></a>00064 <span class="comment">// Between the cuts</span>
<a name="l00065"></a>00065 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = cut1 ; i &lt; cut2 ; i ++)
<a name="l00066"></a>00066 std :: swap (__route1 [i], __route2 [i]) ;
<a name="l00067"></a>00067
<a name="l00068"></a>00068 <span class="comment">// Outside the cuts</span>
<a name="l00069"></a>00069 <a class="code" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">repair</a> (__route1, cut1, cut2) ;
<a name="l00070"></a>00070 <a class="code" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">repair</a> (__route2, cut1, cut2) ;
<a name="l00071"></a>00071
<a name="l00072"></a>00072 __route1.invalidate () ;
<a name="l00073"></a>00073 __route2.invalidate () ;
<a name="l00074"></a>00074
<a name="l00075"></a>00075 <span class="keywordflow">return</span> true ;
<a name="l00076"></a>00076 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,70 +0,0 @@
<!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-PEO - Lessons: partial_mapped_xover.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.7 -->
<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>partial_mapped_xover.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">// "partial_mapped_xover.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef partial_mapped_xover_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define partial_mapped_xover_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoOp.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00032"></a><a class="code" href="classPartialMappedXover.html">00032</a> <span class="keyword">class </span><a class="code" href="classPartialMappedXover.html">PartialMappedXover</a> : <span class="keyword">public</span> eoQuadOp &lt;Route&gt; {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span> :
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keywordtype">bool</span> <a class="code" href="classPartialMappedXover.html#1cda6ea86ca36e5de0125f4ba5cfc695">operator () </a>(Route &amp; __route1, Route &amp; __route2) ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="keyword">private</span> :
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="keywordtype">void</span> <a class="code" href="classPartialMappedXover.html#b6d4035544aff3b2b3fe4b0eeea185a2">repair</a> (Route &amp; __route, <span class="keywordtype">unsigned</span> __cut1, <span class="keywordtype">unsigned</span> __cut2) ;
<a name="l00041"></a>00041 } ;
<a name="l00042"></a>00042
<a name="l00043"></a>00043 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,64 +0,0 @@
<!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-PEO - Lessons: route.cpp 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.7 -->
<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>route.cpp</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">// "route.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "route.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="keywordtype">unsigned</span> length (<span class="keyword">const</span> Route &amp; __route) {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="keywordtype">unsigned</span> len = 0 ;
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0; i &lt; numNodes; i ++)
<a name="l00031"></a>00031 len += distance (__route [i], __route [(i + 1) % numNodes]) ;
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordflow">return</span> len;
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035
<a name="l00036"></a>00036
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,63 +0,0 @@
<!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-PEO - Lessons: route.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.7 -->
<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>route.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">// "route.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __route_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __route_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoVector.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "node.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="keyword">typedef</span> eoVector &lt;int, Node&gt; Route;
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordtype">unsigned</span> length (<span class="keyword">const</span> Route &amp; __route);
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,57 +0,0 @@
<!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-PEO - Lessons: route_eval.cpp 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.7 -->
<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>route_eval.cpp</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">// "route_eval.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "route_eval.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a><a class="code" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">00026</a> <span class="keywordtype">void</span> <a class="code" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">RouteEval :: operator () </a>(Route &amp; __route) {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 __route.fitness (- (<span class="keywordtype">int</span>) length (__route));
<a name="l00029"></a>00029 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: route_eval.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.7 -->
<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>route_eval.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">// "route_eval.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __route_eval_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __route_eval_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoEvalFunc.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classRouteEval.html">00031</a> <span class="keyword">class </span><a class="code" href="classRouteEval.html">RouteEval</a> : <span class="keyword">public</span> eoEvalFunc &lt;Route&gt; {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">public</span> :
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classRouteEval.html#e10bbe6f792e6f44405953de4f703901">operator () </a>(Route &amp; __route) ;
<a name="l00036"></a>00036 } ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: route_init.cpp 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.7 -->
<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>route_init.cpp</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">// "route_init.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include "route_init.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "node.h"</span>
<a name="l00028"></a>00028
<a name="l00029"></a><a class="code" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">00029</a> <span class="keywordtype">void</span> <a class="code" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">RouteInit :: operator () </a>(Route &amp; __route) {
<a name="l00030"></a>00030
<a name="l00031"></a>00031 __route.clear ();
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; numNodes ; i ++)
<a name="l00034"></a>00034 __route.push_back (i);
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 0 ; i &lt; numNodes ; i ++)
<a name="l00037"></a>00037 std :: swap (__route [i], __route [rng.random (numNodes)]);
<a name="l00038"></a>00038 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: route_init.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.7 -->
<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>route_init.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">// "route_init.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __route_init_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __route_init_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;eoInit.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "route.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classRouteInit.html">00031</a> <span class="keyword">class </span><a class="code" href="classRouteInit.html">RouteInit</a> : <span class="keyword">public</span> eoInit &lt;Route&gt; {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">public</span> :
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">void</span> <a class="code" href="classRouteInit.html#b65a7137e114458faadb6a5510c001f7">operator () </a>(Route &amp; __route);
<a name="l00036"></a>00036 } ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,381 +0,0 @@
<!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>Search</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.7 -->
<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><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>
<?php
function search_results()
{
return "Search Results";
}
function matches_text($num)
{
if ($num==0)
{
return "Sorry, no documents matching your query.";
}
else if ($num==1)
{
return "Found <b>1</b> document matching your query.";
}
else // $num>1
{
return "Found <b>$num</b> documents matching your query. Showing best matches first.";
}
}
function report_matches()
{
return "Matches: ";
}
function end_form($value)
{
echo " <td><input type=\"text\" name=\"query\" value=\"$value\" size=\"20\" accesskey=\"s\"/></td>\n </tr>\n </table>\n </form>\n </li>\n </ul>\n</div>\n";
}
function readInt($file)
{
$b1 = ord(fgetc($file)); $b2 = ord(fgetc($file));
$b3 = ord(fgetc($file)); $b4 = ord(fgetc($file));
return ($b1<<24)|($b2<<16)|($b3<<8)|$b4;
}
function readString($file)
{
$result="";
while (ord($c=fgetc($file))) $result.=$c;
return $result;
}
function readHeader($file)
{
$header =fgetc($file); $header.=fgetc($file);
$header.=fgetc($file); $header.=fgetc($file);
return $header;
}
function computeIndex($word)
{
// Fast string hashing
//$lword = strtolower($word);
//$l = strlen($lword);
//for ($i=0;$i<$l;$i++)
//{
// $c = ord($lword{$i});
// $v = (($v & 0xfc00) ^ ($v << 6) ^ $c) & 0xffff;
//}
//return $v;
// Simple hashing that allows for substring search
if (strlen($word)<2) return -1;
// high char of the index
$hi = ord($word{0});
if ($hi==0) return -1;
// low char of the index
$lo = ord($word{1});
if ($lo==0) return -1;
// return index
return $hi*256+$lo;
}
function search($file,$word,&$statsList)
{
$index = computeIndex($word);
if ($index!=-1) // found a valid index
{
fseek($file,$index*4+4); // 4 bytes per entry, skip header
$index = readInt($file);
if ($index) // found words matching the hash key
{
$start=sizeof($statsList);
$count=$start;
fseek($file,$index);
$w = readString($file);
while ($w)
{
$statIdx = readInt($file);
if ($word==substr($w,0,strlen($word)))
{ // found word that matches (as substring)
$statsList[$count++]=array(
"word"=>$word,
"match"=>$w,
"index"=>$statIdx,
"full"=>strlen($w)==strlen($word),
"docs"=>array()
);
}
$w = readString($file);
}
$totalHi=0;
$totalFreqHi=0;
$totalFreqLo=0;
for ($count=$start;$count<sizeof($statsList);$count++)
{
$statInfo = &$statsList[$count];
$multiplier = 1;
// whole word matches have a double weight
if ($statInfo["full"]) $multiplier=2;
fseek($file,$statInfo["index"]);
$numDocs = readInt($file);
$docInfo = array();
// read docs info + occurrence frequency of the word
for ($i=0;$i<$numDocs;$i++)
{
$idx=readInt($file);
$freq=readInt($file);
$docInfo[$i]=array("idx" => $idx,
"freq" => $freq>>1,
"rank" => 0.0,
"hi" => $freq&1
);
if ($freq&1) // word occurs in high priority doc
{
$totalHi++;
$totalFreqHi+=$freq*$multiplier;
}
else // word occurs in low priority doc
{
$totalFreqLo+=$freq*$multiplier;
}
}
// read name and url info for the doc
for ($i=0;$i<$numDocs;$i++)
{
fseek($file,$docInfo[$i]["idx"]);
$docInfo[$i]["name"]=readString($file);
$docInfo[$i]["url"]=readString($file);
}
$statInfo["docs"]=$docInfo;
}
$totalFreq=($totalHi+1)*$totalFreqLo + $totalFreqHi;
for ($count=$start;$count<sizeof($statsList);$count++)
{
$statInfo = &$statsList[$count];
$multiplier = 1;
// whole word matches have a double weight
if ($statInfo["full"]) $multiplier=2;
for ($i=0;$i<sizeof($statInfo["docs"]);$i++)
{
$docInfo = &$statInfo["docs"];
// compute frequency rank of the word in each doc
$freq=$docInfo[$i]["freq"];
if ($docInfo[$i]["hi"])
{
$statInfo["docs"][$i]["rank"]=
(float)($freq*$multiplier+$totalFreqLo)/$totalFreq;
}
else
{
$statInfo["docs"][$i]["rank"]=
(float)($freq*$multiplier)/$totalFreq;
}
}
}
}
}
return $statsList;
}
function combine_results($results,&$docs)
{
foreach ($results as $wordInfo)
{
$docsList = &$wordInfo["docs"];
foreach ($docsList as $di)
{
$key=$di["url"];
$rank=$di["rank"];
if (in_array($key, array_keys($docs)))
{
$docs[$key]["rank"]+=$rank;
}
else
{
$docs[$key] = array("url"=>$key,
"name"=>$di["name"],
"rank"=>$rank
);
}
$docs[$key]["words"][] = array(
"word"=>$wordInfo["word"],
"match"=>$wordInfo["match"],
"freq"=>$di["freq"]
);
}
}
return $docs;
}
function filter_results($docs,&$requiredWords,&$forbiddenWords)
{
$filteredDocs=array();
while (list ($key, $val) = each ($docs))
{
$words = &$docs[$key]["words"];
$copy=1; // copy entry by default
if (sizeof($requiredWords)>0)
{
foreach ($requiredWords as $reqWord)
{
$found=0;
foreach ($words as $wordInfo)
{
$found = $wordInfo["word"]==$reqWord;
if ($found) break;
}
if (!$found)
{
$copy=0; // document contains none of the required words
break;
}
}
}
if (sizeof($forbiddenWords)>0)
{
foreach ($words as $wordInfo)
{
if (in_array($wordInfo["word"],$forbiddenWords))
{
$copy=0; // document contains a forbidden word
break;
}
}
}
if ($copy) $filteredDocs[$key]=$docs[$key];
}
return $filteredDocs;
}
function compare_rank($a,$b)
{
if ($a["rank"] == $b["rank"])
{
return 0;
}
return ($a["rank"]>$b["rank"]) ? -1 : 1;
}
function sort_results($docs,&$sorted)
{
$sorted = $docs;
usort($sorted,"compare_rank");
return $sorted;
}
function report_results(&$docs)
{
echo "<table cellspacing=\"2\">\n";
echo " <tr>\n";
echo " <td colspan=\"2\"><h2>".search_results()."</h2></td>\n";
echo " </tr>\n";
$numDocs = sizeof($docs);
if ($numDocs==0)
{
echo " <tr>\n";
echo " <td colspan=\"2\">".matches_text(0)."</td>\n";
echo " </tr>\n";
}
else
{
echo " <tr>\n";
echo " <td colspan=\"2\">".matches_text($numDocs);
echo "\n";
echo " </td>\n";
echo " </tr>\n";
$num=1;
foreach ($docs as $doc)
{
echo " <tr>\n";
echo " <td align=\"right\">$num.</td>";
echo "<td><a class=\"el\" href=\"".$doc["url"]."\">".$doc["name"]."</a></td>\n";
echo " <tr>\n";
echo " <td></td><td class=\"tiny\">".report_matches()." ";
foreach ($doc["words"] as $wordInfo)
{
$word = $wordInfo["word"];
$matchRight = substr($wordInfo["match"],strlen($word));
echo "<b>$word</b>$matchRight(".$wordInfo["freq"].") ";
}
echo " </td>\n";
echo " </tr>\n";
$num++;
}
}
echo "</table>\n";
}
function main()
{
if(strcmp('4.1.0', phpversion()) > 0)
{
die("Error: PHP version 4.1.0 or above required!");
}
if (!($file=fopen("search.idx","rb")))
{
die("Error: Search index file could NOT be opened!");
}
if (readHeader($file)!="DOXS")
{
die("Error: Header of index file is invalid!");
}
$query="";
if (array_key_exists("query", $_GET))
{
$query=$_GET["query"];
}
end_form($query);
echo "&nbsp;\n<div class=\"searchresults\">\n";
$results = array();
$requiredWords = array();
$forbiddenWords = array();
$foundWords = array();
$word=strtok($query," ");
while ($word) // for each word in the search query
{
if (($word{0}=='+')) { $word=substr($word,1); $requiredWords[]=$word; }
if (($word{0}=='-')) { $word=substr($word,1); $forbiddenWords[]=$word; }
if (!in_array($word,$foundWords))
{
$foundWords[]=$word;
search($file,strtolower($word),$results);
}
$word=strtok(" ");
}
$docs = array();
combine_results($results,$docs);
// filter out documents with forbidden word or that do not contain
// required words
$filteredDocs = filter_results($docs,$requiredWords,$forbiddenWords);
// sort the results based on rank
$sorted = array();
sort_results($filteredDocs,$sorted);
// report results to the user
report_results($sorted);
echo "</div>\n";
fclose($file);
}
main();
?>
<hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -1,102 +0,0 @@
/* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */
DIV.tabs
{
float : left;
width : 100%;
background : url("tab_b.gif") repeat-x bottom;
margin-bottom : 4px;
}
DIV.tabs UL
{
margin : 0px;
padding-left : 10px;
list-style : none;
}
DIV.tabs LI, DIV.tabs FORM
{
display : inline;
margin : 0px;
padding : 0px;
}
DIV.tabs FORM
{
float : right;
}
DIV.tabs A
{
float : left;
background : url("tab_r.gif") no-repeat right top;
border-bottom : 1px solid #84B0C7;
font-size : x-small;
font-weight : bold;
text-decoration : none;
}
DIV.tabs A:hover
{
background-position: 100% -150px;
}
DIV.tabs A:link, DIV.tabs A:visited,
DIV.tabs A:active, DIV.tabs A:hover
{
color: #1A419D;
}
DIV.tabs SPAN
{
float : left;
display : block;
background : url("tab_l.gif") no-repeat left top;
padding : 5px 9px;
white-space : nowrap;
}
DIV.tabs INPUT
{
float : right;
display : inline;
font-size : 1em;
}
DIV.tabs TD
{
font-size : x-small;
font-weight : bold;
text-decoration : none;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
DIV.tabs SPAN {float : none;}
/* End IE5-Mac hack */
DIV.tabs A:hover SPAN
{
background-position: 0% -150px;
}
DIV.tabs LI#current A
{
background-position: 100% -150px;
border-width : 0px;
}
DIV.tabs LI#current SPAN
{
background-position: 0% -150px;
padding-bottom : 6px;
}
DIV.nav
{
background : none;
border : none;
border-bottom : 1px solid #84B0C7;
}

View file

@ -1,151 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<link rel="stylesheet" href="doxygen.css">
<title>TreeView</title>
<script type="text/javascript">
<!-- // Hide script from old browsers
function toggleFolder(id, imageNode)
{
var folder = document.getElementById(id);
var l = imageNode.src.length;
if (imageNode.src.substring(l-20,l)=="ftv2folderclosed.png" ||
imageNode.src.substring(l-18,l)=="ftv2folderopen.png")
{
imageNode = imageNode.previousSibling;
l = imageNode.src.length;
}
if (folder == null)
{
}
else if (folder.style.display == "block")
{
if (imageNode != null)
{
imageNode.nextSibling.src = "ftv2folderclosed.png";
if (imageNode.src.substring(l-13,l) == "ftv2mnode.png")
{
imageNode.src = "ftv2pnode.png";
}
else if (imageNode.src.substring(l-17,l) == "ftv2mlastnode.png")
{
imageNode.src = "ftv2plastnode.png";
}
}
folder.style.display = "none";
}
else
{
if (imageNode != null)
{
imageNode.nextSibling.src = "ftv2folderopen.png";
if (imageNode.src.substring(l-13,l) == "ftv2pnode.png")
{
imageNode.src = "ftv2mnode.png";
}
else if (imageNode.src.substring(l-17,l) == "ftv2plastnode.png")
{
imageNode.src = "ftv2mlastnode.png";
}
}
folder.style.display = "block";
}
}
// End script hiding -->
</script>
</head>
<body class="ftvtree">
<div class="directory">
<h3>ParadisEO-PEO - Lessons</h3>
<div style="display: block;">
<p><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder1', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder1', this)"/><a class="el" href="annotated.html" target="basefrm">Class List</a></p>
<div id="folder1">
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classCitySwap.html" target="basefrm">CitySwap</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classDisplayBestRoute.html" target="basefrm">DisplayBestRoute</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classEdgeXover.html" target="basefrm">EdgeXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classMergeRouteEval.html" target="basefrm">MergeRouteEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classOrderXover.html" target="basefrm">OrderXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classPartialMappedXover.html" target="basefrm">PartialMappedXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classPartRouteEval.html" target="basefrm">PartRouteEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRouteEval.html" target="basefrm">RouteEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRouteInit.html" target="basefrm">RouteInit</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOpt.html" target="basefrm">TwoOpt</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptIncrEval.html" target="basefrm">TwoOptIncrEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptInit.html" target="basefrm">TwoOptInit</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptNext.html" target="basefrm">TwoOptNext</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptRand.html" target="basefrm">TwoOptRand</a></p>
</div>
<p><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder2', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder2', this)"/><a class="el" href="hierarchy.html" target="basefrm">Class Hierarchy</a></p>
<div id="folder2">
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classCitySwap.html" target="basefrm">CitySwap</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classDisplayBestRoute.html" target="basefrm">DisplayBestRoute</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classEdgeXover.html" target="basefrm">EdgeXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classOrderXover.html" target="basefrm">OrderXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classPartialMappedXover.html" target="basefrm">PartialMappedXover</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classPartRouteEval.html" target="basefrm">PartRouteEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2pnode.png" alt="o" width=16 height=22 onclick="toggleFolder('folder3', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder3', this)"/><a class="elRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//classpeoAggEvalFunc.html" target="basefrm">peoAggEvalFunc< EOT ></a>&nbsp;[external]</p>
<div id="folder3">
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classMergeRouteEval.html" target="basefrm">MergeRouteEval</a></p>
</div>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRouteEval.html" target="basefrm">RouteEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classRouteInit.html" target="basefrm">RouteInit</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOpt.html" target="basefrm">TwoOpt</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptIncrEval.html" target="basefrm">TwoOptIncrEval</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptInit.html" target="basefrm">TwoOptInit</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptNext.html" target="basefrm">TwoOptNext</a></p>
<p><img src="ftv2vertline.png" alt="|" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="classTwoOptRand.html" target="basefrm">TwoOptRand</a></p>
</div>
<p><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><a class="el" href="functions.html" target="basefrm">Class Members</a></p>
<p><img src="ftv2plastnode.png" alt="\" width=16 height=22 onclick="toggleFolder('folder4', this)"/><img src="ftv2folderclosed.png" alt="+" width=24 height=22 onclick="toggleFolder('folder4', this)"/><a class="el" href="files.html" target="basefrm">File List</a></p>
<div id="folder4">
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>city_swap.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>city_swap.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>data.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>data.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>display.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>display.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>display_best_route.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>display_best_route.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>edge_xover.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>edge_xover.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>merge_route_eval.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>merge_route_eval.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>mix.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>node.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>node.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>opt_route.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>opt_route.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>order_xover.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>order_xover.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>param.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>param.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>part_route_eval.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>part_route_eval.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>partial_mapped_xover.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>partial_mapped_xover.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route_eval.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route_eval.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route_init.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>route_init.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_incr_eval.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_incr_eval.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_init.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_init.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_next.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_next.h</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2node.png" alt="o" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_rand.cpp</b></p>
<p><img src="ftv2blank.png" alt="&nbsp;" width=16 height=22 /><img src="ftv2lastnode.png" alt="\" width=16 height=22 /><img src="ftv2doc.png" alt="*" width=24 height=22 /><b>two_opt_rand.h</b></p>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,63 +0,0 @@
<!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-PEO - Lessons: two_opt.cpp 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.7 -->
<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>two_opt.cpp</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">// "two_opt.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "two_opt.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a><a class="code" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">00026</a> <span class="keywordtype">void</span> <a class="code" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">TwoOpt :: operator () </a>(Route &amp; __route) {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 <span class="keywordtype">unsigned</span> i = 0;
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="keywordflow">while</span> ((2 * i) &lt; (second - first)) {
<a name="l00031"></a>00031
<a name="l00032"></a>00032 std :: swap (__route [first + i], __route [second - i]);
<a name="l00033"></a>00033 i ++;
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,68 +0,0 @@
<!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-PEO - Lessons: two_opt.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.7 -->
<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>two_opt.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">// "two_opt.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __two_opt_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __two_opt_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;utility&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;moMove.h&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include "route.h"</span>
<a name="l00031"></a>00031
<a name="l00032"></a><a class="code" href="classTwoOpt.html">00032</a> <span class="keyword">class </span><a class="code" href="classTwoOpt.html">TwoOpt</a> : <span class="keyword">public</span> moMove &lt;Route&gt;, <span class="keyword">public</span> std :: pair &lt;unsigned, unsigned&gt; {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span> :
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classTwoOpt.html#ff87d1649a33d42a6d64e8d314ed1af0">operator () </a>(Route &amp; __route);
<a name="l00037"></a>00037
<a name="l00038"></a>00038 } ;
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,67 +0,0 @@
<!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-PEO - Lessons: two_opt_incr_eval.cpp 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.7 -->
<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>two_opt_incr_eval.cpp</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">// "TwoOptIncrEval.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "two_opt_incr_eval.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "node.h"</span>
<a name="l00026"></a>00026
<a name="l00027"></a><a class="code" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">00027</a> <span class="keywordtype">int</span> <a class="code" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">TwoOptIncrEval :: operator () </a>(<span class="keyword">const</span> <a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) {
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="comment">/* From */</span>
<a name="l00030"></a>00030 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> v1 = __route [__move.first], v1_left = __route [(__move.first - 1 + numNodes) % numNodes];
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="comment">/* To */</span>
<a name="l00033"></a>00033 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//structNode.html">Node</a> v2 = __route [__move.second], v2_right = __route [(__move.second + 1) % numNodes];
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordflow">if</span> (v1 == v2 || v2_right == v1)
<a name="l00036"></a>00036 <span class="keywordflow">return</span> __route.fitness ();
<a name="l00037"></a>00037 <span class="keywordflow">else</span>
<a name="l00038"></a>00038 <span class="keywordflow">return</span> __route.fitness () - distance (v1_left, v2) - distance (v1, v2_right) + distance (v1_left, v1) + distance (v2, v2_right);
<a name="l00039"></a>00039 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,66 +0,0 @@
<!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-PEO - Lessons: two_opt_incr_eval.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.7 -->
<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>two_opt_incr_eval.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">// "TwoOptIncrEval.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __two_opt_incr_eval_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __two_opt_incr_eval_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;moMoveIncrEval.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include "two_opt.h"</span>
<a name="l00029"></a>00029
<a name="l00030"></a><a class="code" href="classTwoOptIncrEval.html">00030</a> <span class="keyword">class </span><a class="code" href="classTwoOptIncrEval.html">TwoOptIncrEval</a> : <span class="keyword">public</span> moMoveIncrEval &lt;TwoOpt&gt; {
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keyword">public</span> :
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keywordtype">int</span> <a class="code" href="classTwoOptIncrEval.html#48500077e651c4c6152daef8a396be39">operator () </a>(<span class="keyword">const</span> <a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) ;
<a name="l00035"></a>00035
<a name="l00036"></a>00036 } ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,57 +0,0 @@
<!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-PEO - Lessons: two_opt_init.cpp 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.7 -->
<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>two_opt_init.cpp</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">// "two_opt_init.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, 2003</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "two_opt_init.h"</span>
<a name="l00025"></a>00025
<a name="l00026"></a><a class="code" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">00026</a> <span class="keywordtype">void</span> <a class="code" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">TwoOptInit :: operator () </a>(<a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) {
<a name="l00027"></a>00027
<a name="l00028"></a>00028 __move.first = __move.second = 0;
<a name="l00029"></a>00029 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,68 +0,0 @@
<!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-PEO - Lessons: two_opt_init.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.7 -->
<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>two_opt_init.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
<a name="l00002"></a>00002 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
<a name="l00003"></a>00003
<a name="l00004"></a>00004 <span class="comment">// "two_opt_init.h"</span>
<a name="l00005"></a>00005
<a name="l00006"></a>00006 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00007"></a>00007
<a name="l00008"></a>00008 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00009"></a>00009 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00010"></a>00010 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00011"></a>00011 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00012"></a>00012 <span class="comment"> </span>
<a name="l00013"></a>00013 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00014"></a>00014 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00015"></a>00015 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00016"></a>00016 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00017"></a>00017 <span class="comment"> </span>
<a name="l00018"></a>00018 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00019"></a>00019 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00020"></a>00020 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00021"></a>00021 <span class="comment"> </span>
<a name="l00022"></a>00022 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00023"></a>00023 <span class="comment">*/</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef __two_opt_init_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define __two_opt_init_h</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;moMoveInit.h&gt;</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030 <span class="preprocessor">#include "two_opt.h"</span>
<a name="l00031"></a>00031
<a name="l00032"></a><a class="code" href="classTwoOptInit.html">00032</a> <span class="keyword">class </span><a class="code" href="classTwoOptInit.html">TwoOptInit</a> : <span class="keyword">public</span> moMoveInit &lt;TwoOpt&gt; {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <span class="keyword">public</span> :
<a name="l00035"></a>00035
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classTwoOptInit.html#5bf6af064d37ebd955ffb5a623e78e1b">operator () </a>(<a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) ;
<a name="l00037"></a>00037
<a name="l00038"></a>00038 } ;
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,70 +0,0 @@
<!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-PEO - Lessons: two_opt_next.cpp 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.7 -->
<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>two_opt_next.cpp</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">// "two_opt_next.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include "two_opt_next.h"</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include "node.h"</span>
<a name="l00026"></a>00026
<a name="l00027"></a><a class="code" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">00027</a> <span class="keywordtype">bool</span> <a class="code" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">TwoOptNext :: operator () </a>(<a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) {
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="keywordflow">if</span> (__move.first == numNodes - 1 &amp;&amp; __move.second == numNodes - 1)
<a name="l00030"></a>00030 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="keywordflow">else</span> {
<a name="l00033"></a>00033
<a name="l00034"></a>00034 __move.second ++;
<a name="l00035"></a>00035 <span class="keywordflow">if</span> (__move.second == numNodes) {
<a name="l00036"></a>00036
<a name="l00037"></a>00037 __move.first ++;
<a name="l00038"></a>00038 __move.second = __move.first;
<a name="l00039"></a>00039 }
<a name="l00040"></a>00040 <span class="keywordflow">return</span> true ;
<a name="l00041"></a>00041 }
<a name="l00042"></a>00042 }
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,67 +0,0 @@
<!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-PEO - Lessons: two_opt_next.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.7 -->
<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>two_opt_next.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">// "two_opt_next.h"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef __two_opt_next_h</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define __two_opt_next_h</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;moNextMove.h&gt;</span>
<a name="l00028"></a>00028
<a name="l00029"></a>00029 <span class="preprocessor">#include "two_opt.h"</span>
<a name="l00030"></a>00030
<a name="l00031"></a><a class="code" href="classTwoOptNext.html">00031</a> <span class="keyword">class </span><a class="code" href="classTwoOptNext.html">TwoOptNext</a> : <span class="keyword">public</span> moNextMove &lt;TwoOpt&gt; {
<a name="l00032"></a>00032
<a name="l00033"></a>00033 <span class="keyword">public</span> :
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keywordtype">bool</span> <a class="code" href="classTwoOptNext.html#baf229b2e056f39ab971cf2ac66a833e">operator () </a>(<a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route);
<a name="l00036"></a>00036
<a name="l00037"></a>00037 };
<a name="l00038"></a>00038
<a name="l00039"></a>00039 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

View file

@ -1,64 +0,0 @@
<!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-PEO - Lessons: two_opt_rand.cpp 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.7 -->
<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>two_opt_rand.cpp</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">// "two_opt_rand.cpp"</span>
<a name="l00004"></a>00004
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
<a name="l00006"></a>00006
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
<a name="l00011"></a>00011 <span class="comment"> </span>
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
<a name="l00016"></a>00016 <span class="comment"> </span>
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
<a name="l00020"></a>00020 <span class="comment"> </span>
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
<a name="l00022"></a>00022 <span class="comment">*/</span>
<a name="l00023"></a>00023
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;utils/eoRNG.h&gt;</span>
<a name="l00025"></a>00025
<a name="l00026"></a>00026 <span class="preprocessor">#include "two_opt_rand.h"</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include "node.h"</span>
<a name="l00028"></a>00028
<a name="l00029"></a><a class="code" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">00029</a> <span class="keywordtype">void</span> <a class="code" href="classTwoOptRand.html#e2f362f359517c027f6f22fba0aab375">TwoOptRand :: operator () </a>(<a class="code" href="classTwoOpt.html">TwoOpt</a> &amp; __move, <span class="keyword">const</span> Route &amp; __route) {
<a name="l00030"></a>00030
<a name="l00031"></a>00031 __move.second = rng.random (numNodes);
<a name="l00032"></a>00032
<a name="l00033"></a>00033 __move.first = rng.random (__move.second);
<a name="l00034"></a>00034 }
<a name="l00035"></a>00035
<a name="l00036"></a>00036
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat Dec 30 14:55:34 2006 for ParadisEO-PEO - Lessons by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show more