git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@552 331e1502-861f-0410-8da2-ba01fb791d7f
388 lines
32 KiB
HTML
388 lines
32 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: MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity > 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 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> <u>S</u>earch for </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 List</span></a></li>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul></div>
|
|
<h1>MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity > Class Template Reference</h1><!-- doxytag: class="MOEO" --><!-- doxytag: inherits="EO< MOEOObjectiveVector >" -->Base class allowing to represent a solution (an individual) for multi-objective optimization.
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="MOEO_8h-source.html">MOEO.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >:
|
|
<p><center><img src="classMOEO.png" usemap="#MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >_map" border="0" alt=""></center>
|
|
<map name="MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >_map">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/class_e_o.html" alt="EO< MOEOObjectiveVector >" shape="rect" coords="498,112,986,136">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_object.html" alt="eoObject" shape="rect" coords="249,56,737,80">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_persistent.html" alt="eoPersistent" shape="rect" coords="747,56,1235,80">
|
|
<area doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_printable.html" alt="eoPrintable" shape="rect" coords="747,0,1235,24">
|
|
<area href="classmoeoVector.html" alt="moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType >" shape="rect" coords="0,224,488,248">
|
|
<area href="classmoeoVector.html" alt="moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, bool >" shape="rect" coords="498,224,986,248">
|
|
<area href="classmoeoVector.html" alt="moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double >" shape="rect" coords="996,224,1484,248">
|
|
<area href="classmoeoBitVector.html" alt="moeoBitVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity >" shape="rect" coords="498,280,986,304">
|
|
<area href="classmoeoRealVector.html" alt="moeoRealVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity >" shape="rect" coords="996,280,1484,304">
|
|
</map>
|
|
<a href="classMOEO-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="9fafca99234ef3cd9fdbaf05bde5a275"></a><!-- doxytag: member="MOEO::ObjectiveVector" ref="9fafca99234ef3cd9fdbaf05bde5a275" args="" -->
|
|
typedef MOEOObjectiveVector </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the objective vector type of a solution <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="03184b6c0b5c905e0ff5a790a3d55803"></a><!-- doxytag: member="MOEO::Fitness" ref="03184b6c0b5c905e0ff5a790a3d55803" args="" -->
|
|
typedef MOEOFitness </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the fitness type of a solution <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9682a883fedc6333e95906e02236d492"></a><!-- doxytag: member="MOEO::Diversity" ref="9682a883fedc6333e95906e02236d492" args="" -->
|
|
typedef MOEODiversity </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the diversity type of a solution <br></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="cff537a68ecc80c753318d3e12f842f5"></a><!-- doxytag: member="MOEO::MOEO" ref="cff537a68ecc80c753318d3e12f842f5" args="()" -->
|
|
</td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#cff537a68ecc80c753318d3e12f842f5">MOEO</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Ctor. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0215e9acab4ab57088175f9856e6c48c"></a><!-- doxytag: member="MOEO::~MOEO" ref="0215e9acab4ab57088175f9856e6c48c" args="()" -->
|
|
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#0215e9acab4ab57088175f9856e6c48c">~MOEO</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Virtual dtor. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7509143b0f18644e7d3183a039cece7b"></a><!-- doxytag: member="MOEO::objectiveVector" ref="7509143b0f18644e7d3183a039cece7b" args="() const " -->
|
|
<a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#7509143b0f18644e7d3183a039cece7b">objectiveVector</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the objective vector of the current solution. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#d4a765a76f9acc1bca36297ab55d7282">objectiveVector</a> (const <a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a> &_objectiveVectorValue)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the objective vector of the current solution. <a href="#d4a765a76f9acc1bca36297ab55d7282"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b75e7e84726cf4e2d50216a35cec70b"></a><!-- doxytag: member="MOEO::invalidateObjectiveVector" ref="6b75e7e84726cf4e2d50216a35cec70b" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#6b75e7e84726cf4e2d50216a35cec70b">invalidateObjectiveVector</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the objective vector as invalid. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c8e93beabdab8c2f79f17c7e39efdd05"></a><!-- doxytag: member="MOEO::invalidObjectiveVector" ref="c8e93beabdab8c2f79f17c7e39efdd05" args="() const " -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#c8e93beabdab8c2f79f17c7e39efdd05">invalidObjectiveVector</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the objective vector is invalid, false otherwise. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c02c16902f914a6fde83a33d2c8b1534"></a><!-- doxytag: member="MOEO::fitness" ref="c02c16902f914a6fde83a33d2c8b1534" args="() const " -->
|
|
<a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#c02c16902f914a6fde83a33d2c8b1534">fitness</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the fitness value of the current solution. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#4dc05ded73bb60d1a51e282006c8942d">fitness</a> (const <a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> &_fitnessValue)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the fitness value of the current solution. <a href="#4dc05ded73bb60d1a51e282006c8942d"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="55876e2e7cd537052fec1c7f46f37ffe"></a><!-- doxytag: member="MOEO::invalidateFitness" ref="55876e2e7cd537052fec1c7f46f37ffe" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#55876e2e7cd537052fec1c7f46f37ffe">invalidateFitness</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the fitness value as invalid. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9423f9daebb1f7be6d52c80692e4af48"></a><!-- doxytag: member="MOEO::invalidFitness" ref="9423f9daebb1f7be6d52c80692e4af48" args="() const " -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#9423f9daebb1f7be6d52c80692e4af48">invalidFitness</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the fitness value is invalid, false otherwise. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c610f4636e8c26a351fcfbc25028aa01"></a><!-- doxytag: member="MOEO::diversity" ref="c610f4636e8c26a351fcfbc25028aa01" args="() const " -->
|
|
<a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#c610f4636e8c26a351fcfbc25028aa01">diversity</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the diversity value of the current solution. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#1f0a391984cd14bcf930d1d81dd4848e">diversity</a> (const <a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> &_diversityValue)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the diversity value of the current solution. <a href="#1f0a391984cd14bcf930d1d81dd4848e"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1283a27baab9728673445832e6d4301a"></a><!-- doxytag: member="MOEO::invalidateDiversity" ref="1283a27baab9728673445832e6d4301a" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#1283a27baab9728673445832e6d4301a">invalidateDiversity</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the diversity value as invalid. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c4941e8e600fd360fdf1b061ee938e34"></a><!-- doxytag: member="MOEO::invalidDiversity" ref="c4941e8e600fd360fdf1b061ee938e34" args="() const " -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#c4941e8e600fd360fdf1b061ee938e34">invalidDiversity</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the diversity value is invalid, false otherwise. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1069501a40e07071d78c067c46b696ee"></a><!-- doxytag: member="MOEO::invalidate" ref="1069501a40e07071d78c067c46b696ee" args="()" -->
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#1069501a40e07071d78c067c46b696ee">invalidate</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the objective vector, the fitness value and the diversity value as invalid. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="314df446d1a9211121cedb2629da8906"></a><!-- doxytag: member="MOEO::invalid" ref="314df446d1a9211121cedb2629da8906" args="() const " -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#314df446d1a9211121cedb2629da8906">invalid</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the fitness value is invalid, false otherwise. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#119ef916de4955298febaf3e1c8ad705">operator<</a> (const <a class="el" href="classMOEO.html">MOEO</a> &_other) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the objective vector of the current solution is smaller than the objective vector of _other on the first objective, then on the second, and so on (can be usefull for sorting/printing). <a href="#119ef916de4955298febaf3e1c8ad705"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ca43305b2f4d1b1933f7e1c579404379"></a><!-- doxytag: member="MOEO::className" ref="ca43305b2f4d1b1933f7e1c579404379" args="() const " -->
|
|
virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#ca43305b2f4d1b1933f7e1c579404379">className</a> () const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Return the class id (the class name as a std::string). <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#a3b6074b3289585bf4dc6998e8397e24">printOn</a> (std::ostream &_os) const </td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Writing object. <a href="#a3b6074b3289585bf4dc6998e8397e24"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#1bbd9cb1a7709592bf4bc29dff8c5273">readFrom</a> (std::istream &_is)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reading object. <a href="#1bbd9cb1a7709592bf4bc29dff8c5273"></a><br></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="26b6fd1187b825b655d5a34b1d0693c9"></a><!-- doxytag: member="MOEO::objectiveVectorValue" ref="26b6fd1187b825b655d5a34b1d0693c9" args="" -->
|
|
<a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#26b6fd1187b825b655d5a34b1d0693c9">objectiveVectorValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the objective vector of this solution <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d07613f286ef484f164c51c9c1b2dc91"></a><!-- doxytag: member="MOEO::invalidObjectiveVectorValue" ref="d07613f286ef484f164c51c9c1b2dc91" args="" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#d07613f286ef484f164c51c9c1b2dc91">invalidObjectiveVectorValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">true if the objective vector is invalid <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bcc3104ab7311fa5987de80811393c7c"></a><!-- doxytag: member="MOEO::fitnessValue" ref="bcc3104ab7311fa5987de80811393c7c" args="" -->
|
|
<a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#bcc3104ab7311fa5987de80811393c7c">fitnessValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the fitness value of this solution <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="17f57546c6de38604d6749cc6ef9d254"></a><!-- doxytag: member="MOEO::invalidFitnessValue" ref="17f57546c6de38604d6749cc6ef9d254" args="" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#17f57546c6de38604d6749cc6ef9d254">invalidFitnessValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">true if the fitness value is invalid <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="83cc0d3a4020cbd7e1ff895dfedc61eb"></a><!-- doxytag: member="MOEO::diversityValue" ref="83cc0d3a4020cbd7e1ff895dfedc61eb" args="" -->
|
|
<a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#83cc0d3a4020cbd7e1ff895dfedc61eb">diversityValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">the diversity value of this solution <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c53c08b7c51d4cc06efe58c6127f9b7d"></a><!-- doxytag: member="MOEO::invalidDiversityValue" ref="c53c08b7c51d4cc06efe58c6127f9b7d" args="" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#c53c08b7c51d4cc06efe58c6127f9b7d">invalidDiversityValue</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">true if the diversity value is invalid <br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity><br>
|
|
class MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></h3>
|
|
|
|
Base class allowing to represent a solution (an individual) for multi-objective optimization.
|
|
<p>
|
|
The template argument MOEOObjectiveVector allows to represent the solution in the objective space (it can be a <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a> object). The template argument MOEOFitness is an object reflecting the quality of the solution in term of convergence (the fitness of a solution is always to be maximized). The template argument MOEODiversity is an object reflecting the quality of the solution in term of diversity (the diversity of a solution is always to be maximized). All template arguments must have a void and a copy constructor. Using some specific representations, you will have to define a copy constructor if the default one is not what you want. In the same cases, you will also have to define the affectation operator (operator=). Then, you will explicitly have to call the parent copy constructor and the parent affectation operator at the beginning of the corresponding implementation. Besides, note that, contrary to the mono-objective case (and to <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/class_e_o.html">EO</a>) where the fitness value of a solution is confused with its objective value, the fitness value differs of the objectives values in the multi-objective case.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00034">34</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="d4a765a76f9acc1bca36297ab55d7282"></a><!-- doxytag: member="MOEO::objectiveVector" ref="d4a765a76f9acc1bca36297ab55d7282" args="(const ObjectiveVector &_objectiveVectorValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVector </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a> & </td>
|
|
<td class="paramname"> <em>_objectiveVectorValue</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets the objective vector of the current solution.
|
|
<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>_objectiveVectorValue</em> </td><td>the new objective vector </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00085">85</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00279">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVectorValue</a>, and <a class="el" href="MOEO_8h-source.html#l00277">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVectorValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="4dc05ded73bb60d1a51e282006c8942d"></a><!-- doxytag: member="MOEO::fitness" ref="4dc05ded73bb60d1a51e282006c8942d" args="(const Fitness &_fitnessValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::fitness </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> & </td>
|
|
<td class="paramname"> <em>_fitnessValue</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets the fitness value of the current solution.
|
|
<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>_fitnessValue</em> </td><td>the new fitness value </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00127">127</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00281">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::fitnessValue</a>, and <a class="el" href="MOEO_8h-source.html#l00283">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidFitnessValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="1f0a391984cd14bcf930d1d81dd4848e"></a><!-- doxytag: member="MOEO::diversity" ref="1f0a391984cd14bcf930d1d81dd4848e" args="(const Diversity &_diversityValue)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::diversity </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> & </td>
|
|
<td class="paramname"> <em>_diversityValue</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Sets the diversity value of the current solution.
|
|
<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>_diversityValue</em> </td><td>the new diversity value </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00169">169</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00285">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::diversityValue</a>, and <a class="el" href="MOEO_8h-source.html#l00287">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidDiversityValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="119ef916de4955298febaf3e1c8ad705"></a><!-- doxytag: member="MOEO::operator<" ref="119ef916de4955298febaf3e1c8ad705" args="(const MOEO &_other) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::operator< </td>
|
|
<td>(</td>
|
|
<td class="paramtype">const <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity > & </td>
|
|
<td class="paramname"> <em>_other</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns true if the objective vector of the current solution is smaller than the objective vector of _other on the first objective, then on the second, and so on (can be usefull for sorting/printing).
|
|
<p>
|
|
You should implement another function in the sub-class of <a class="el" href="classMOEO.html">MOEO</a> to have another sorting mecanism. <dl compact><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>_other</em> </td><td>the other <a class="el" href="classMOEO.html">MOEO</a> object to compare with </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00220">220</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00071">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVector()</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="a3b6074b3289585bf4dc6998e8397e24"></a><!-- doxytag: member="MOEO::printOn" ref="a3b6074b3289585bf4dc6998e8397e24" args="(std::ostream &_os) const " -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::printOn </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::ostream & </td>
|
|
<td class="paramname"> <em>_os</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"> const<code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Writing object.
|
|
<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>_os</em> </td><td>output stream </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Reimplemented from <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/class_e_o.html#c4ac74f2daf9daeed66d935391908d62">EO< MOEOObjectiveVector ></a>.
|
|
<p>
|
|
Reimplemented in <a class="el" href="classmoeoBitVector.html#78f821c548cf46d8bcd30aa8a52ffb7c">moeoBitVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a>, <a class="el" href="classmoeoVector.html#d0a92cb26483ffab754ac4a0efb76308">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a>, <a class="el" href="classmoeoVector.html#d0a92cb26483ffab754ac4a0efb76308">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, bool ></a>, and <a class="el" href="classmoeoVector.html#d0a92cb26483ffab754ac4a0efb76308">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00239">239</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00104">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVector()</a>, and <a class="el" href="MOEO_8h-source.html#l00277">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVectorValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="1bbd9cb1a7709592bf4bc29dff8c5273"></a><!-- doxytag: member="MOEO::readFrom" ref="1bbd9cb1a7709592bf4bc29dff8c5273" args="(std::istream &_is)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class MOEOObjectiveVector, class MOEOFitness, class MOEODiversity> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">virtual void <a class="el" href="classMOEO.html">MOEO</a>< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::readFrom </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::istream & </td>
|
|
<td class="paramname"> <em>_is</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, virtual]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Reading object.
|
|
<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>_is</em> </td><td>input stream </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Reimplemented from <a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/class_e_o.html#8d98b330d6a8c2b4e3371eae2b2d7e48">EO< MOEOObjectiveVector ></a>.
|
|
<p>
|
|
Reimplemented in <a class="el" href="classmoeoBitVector.html#31cd3f894615d0a27dd116a5c8082521">moeoBitVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a>, <a class="el" href="classmoeoVector.html#cd8ee0fe79bb9515b29e2a4d3fee5ab9">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a>, <a class="el" href="classmoeoVector.html#cd8ee0fe79bb9515b29e2a4d3fee5ab9">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, bool ></a>, and <a class="el" href="classmoeoVector.html#cd8ee0fe79bb9515b29e2a4d3fee5ab9">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00256">256</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00095">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidateObjectiveVector()</a>, <a class="el" href="MOEO_8h-source.html#l00279">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVectorValue</a>, and <a class="el" href="MOEO_8h-source.html#l00277">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVectorValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="MOEO_8h-source.html">MOEO.h</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Thu Jul 5 17:36:46 2007 for ParadisEO-MOEO by
|
|
<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>
|