paradiseo/branches/paradiseo-moeo-1.0/doc/html/classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html
liefooga b1d6dd41c0 add doc
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@397 331e1502-861f-0410-8da2-ba01fb791d7f
2007-06-26 13:13:33 +00:00

200 lines
14 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ParadisEO-MOEO: moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt; Class Template 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>moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt; Class Template Reference</h1><!-- doxytag: class="moeoFrontByFrontCrowdingDistanceDiversityAssignment" --><!-- doxytag: inherits="moeoCrowdingDistanceDiversityAssignment" -->Diversity assignment sheme based on crowding distance proposed in: K.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a>&gt;</code>
<p>
<p>Inheritance diagram for moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;:
<p><center><img src="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.png" usemap="#moeoFrontByFrontCrowdingDistanceDiversityAssignment< MOEOT >_map" border="0" alt=""></center>
<map name="moeoFrontByFrontCrowdingDistanceDiversityAssignment< MOEOT >_map">
<area href="classmoeoCrowdingDistanceDiversityAssignment.html" alt="moeoCrowdingDistanceDiversityAssignment< MOEOT >" shape="rect" coords="0,168,404,192">
<area href="classmoeoDiversityAssignment.html" alt="moeoDiversityAssignment< MOEOT >" shape="rect" coords="0,112,404,136">
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_u_f.html" alt="eoUF< eoPop< MOEOT > &, void >" shape="rect" coords="0,56,404,80">
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_functor_base.html" alt="eoFunctorBase" shape="rect" coords="0,0,404,24">
</map>
<a href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4da1cf7b19fd72eb9b6a64d89d01f5a3"></a><!-- doxytag: member="moeoFrontByFrontCrowdingDistanceDiversityAssignment::ObjectiveVector" ref="4da1cf7b19fd72eb9b6a64d89d01f5a3" args="" -->
typedef MOEOT::ObjectiveVector&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#4da1cf7b19fd72eb9b6a64d89d01f5a3">ObjectiveVector</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">the objective vector type of the solutions <br></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#91aec07ffdc20c9654575106399ca62d">updateByDeleting</a> (<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;_pop, <a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#4da1cf7b19fd72eb9b6a64d89d01f5a3">ObjectiveVector</a> &amp;_objVec)</td></tr>
<tr><td colspan="2"><br><h2>Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#b275343fd08575612525a5654d749feb">setDistances</a> (<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;_pop)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the distance values. <a href="#b275343fd08575612525a5654d749feb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#c7f75934e76d37a2747f06d2271984c3">lastIndex</a> (<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;_pop, unsigned int _start)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the index of the last individual having the same fitness value than _pop[_start]. <a href="#c7f75934e76d37a2747f06d2271984c3"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<h3>template&lt;class MOEOT&gt;<br>
class moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;</h3>
Diversity assignment sheme based on crowding distance proposed in: K.
<p>
Deb, A. Pratap, S. Agarwal, T. Meyarivan, "A Fast and Elitist Multi-Objective Genetic Algorithm: NSGA-II", IEEE Transactions on Evolutionary Computation, vol. 6, no. 2 (2002). Tis strategy assigns diversity values FRONT BY FRONT. It is, for instance, used in NSGA-II.
<p>
<p>
Definition at line <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00025">25</a> of file <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a>.<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="91aec07ffdc20c9654575106399ca62d"></a><!-- doxytag: member="moeoFrontByFrontCrowdingDistanceDiversityAssignment::updateByDeleting" ref="91aec07ffdc20c9654575106399ca62d" args="(eoPop&lt; MOEOT &gt; &amp;_pop, ObjectiveVector &amp;_objVec)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MOEOT&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment</a>&lt; MOEOT &gt;::updateByDeleting </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>_pop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html#4da1cf7b19fd72eb9b6a64d89d01f5a3">ObjectiveVector</a> &amp;&nbsp;</td>
<td class="paramname"> <em>_objVec</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Warning:</b></dt><dd>NOT IMPLEMENTED, DO NOTHING ! Updates the diversity values of the whole population _pop by taking the deletion of the objective vector _objVec into account. </dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>_pop</em>&nbsp;</td><td>the population </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_objVec</em>&nbsp;</td><td>the objective vector </td></tr>
</table>
</dl>
<dl compact><dt><b>Warning:</b></dt><dd>NOT IMPLEMENTED, DO NOTHING ! </dd></dl>
<p>
Reimplemented from <a class="el" href="classmoeoCrowdingDistanceDiversityAssignment.html#ac21453d018c0e5dc872ccf0d0893f18">moeoCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;</a>.
<p>
Definition at line <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00040">40</a> of file <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a>.
</div>
</div><p>
<a class="anchor" name="b275343fd08575612525a5654d749feb"></a><!-- doxytag: member="moeoFrontByFrontCrowdingDistanceDiversityAssignment::setDistances" ref="b275343fd08575612525a5654d749feb" args="(eoPop&lt; MOEOT &gt; &amp;_pop)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MOEOT&gt; </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment</a>&lt; MOEOT &gt;::setDistances </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>_pop</em> </td>
<td>&nbsp;)&nbsp;</td>
<td width="100%"><code> [inline, private, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the distance values.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>_pop</em>&nbsp;</td><td>the population </td></tr>
</table>
</dl>
<p>
Reimplemented from <a class="el" href="classmoeoCrowdingDistanceDiversityAssignment.html#2dac680d7ca8327a15bc30f5ce7bbd4f">moeoCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;</a>.
<p>
Definition at line <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00055">55</a> of file <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a>.
<p>
References <a class="el" href="moeoCrowdingDistanceDiversityAssignment_8h-source.html#l00036">moeoCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;::inf()</a>, <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00121">moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;::lastIndex()</a>, and <a class="el" href="moeoCrowdingDistanceDiversityAssignment_8h-source.html#l00045">moeoCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;::tiny()</a>.
</div>
</div><p>
<a class="anchor" name="c7f75934e76d37a2747f06d2271984c3"></a><!-- doxytag: member="moeoFrontByFrontCrowdingDistanceDiversityAssignment::lastIndex" ref="c7f75934e76d37a2747f06d2271984c3" args="(eoPop&lt; MOEOT &gt; &amp;_pop, unsigned int _start)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MOEOT&gt; </div>
<table class="memname">
<tr>
<td class="memname">unsigned int <a class="el" href="classmoeoFrontByFrontCrowdingDistanceDiversityAssignment.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment</a>&lt; MOEOT &gt;::lastIndex </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_pop.html">eoPop</a>&lt; MOEOT &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>_pop</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>_start</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [inline, private]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the index of the last individual having the same fitness value than _pop[_start].
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>_pop</em>&nbsp;</td><td>the population </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_start</em>&nbsp;</td><td>the index to start from </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00121">121</a> of file <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a>.
<p>
Referenced by <a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html#l00055">moeoFrontByFrontCrowdingDistanceDiversityAssignment&lt; MOEOT &gt;::setDistances()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="moeoFrontByFrontCrowdingDistanceDiversityAssignment_8h-source.html">moeoFrontByFrontCrowdingDistanceDiversityAssignment.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Tue Jun 26 15:13:04 2007 for ParadisEO-MOEO by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>