git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@263 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.5.1 -->
|
|
<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:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/class_e_o.html" alt="EO< MOEOObjectiveVector >" shape="rect" coords="498,112,986,136">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_object.html" alt="eoObject" shape="rect" coords="249,56,737,80">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/classeo_persistent.html" alt="eoPersistent" shape="rect" coords="747,56,1235,80">
|
|
<area doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-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="f34036fdd02c5aef46d2a0f000d3a59e"></a><!-- doxytag: member="MOEO::objectiveVector" ref="f34036fdd02c5aef46d2a0f000d3a59e" args="() const" -->
|
|
<a class="el" href="classMOEO.html#9fafca99234ef3cd9fdbaf05bde5a275">ObjectiveVector</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#f34036fdd02c5aef46d2a0f000d3a59e">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="1063475f98ef0c8afb8ebf299e5d3baa"></a><!-- doxytag: member="MOEO::invalidObjectiveVector" ref="1063475f98ef0c8afb8ebf299e5d3baa" args="() const" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#1063475f98ef0c8afb8ebf299e5d3baa">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="e41a75b01ca1899adec50729cd6a4e04"></a><!-- doxytag: member="MOEO::fitness" ref="e41a75b01ca1899adec50729cd6a4e04" args="() const" -->
|
|
<a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#e41a75b01ca1899adec50729cd6a4e04">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="4b5fb8c8c04e86aa039a42ffa2c8b327"></a><!-- doxytag: member="MOEO::invalidFitness" ref="4b5fb8c8c04e86aa039a42ffa2c8b327" args="() const" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#4b5fb8c8c04e86aa039a42ffa2c8b327">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="2242897d75e8849379b66b1e754ba65b"></a><!-- doxytag: member="MOEO::diversity" ref="2242897d75e8849379b66b1e754ba65b" args="() const" -->
|
|
<a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#2242897d75e8849379b66b1e754ba65b">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="580a4b2a92a3f8ca5e56431cf86bbd73"></a><!-- doxytag: member="MOEO::invalidDiversity" ref="580a4b2a92a3f8ca5e56431cf86bbd73" args="() const" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#580a4b2a92a3f8ca5e56431cf86bbd73">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="795f686497042d62fce2f87bd47017bc"></a><!-- doxytag: member="MOEO::invalid" ref="795f686497042d62fce2f87bd47017bc" args="() const" -->
|
|
bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#795f686497042d62fce2f87bd47017bc">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#d38eef435511ba3a5a310712a608f4ab">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="#d38eef435511ba3a5a310712a608f4ab"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a020936acf61d8aef30983c2dd220a99"></a><!-- doxytag: member="MOEO::className" ref="a020936acf61d8aef30983c2dd220a99" args="() const" -->
|
|
virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classMOEO.html#a020936acf61d8aef30983c2dd220a99">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#99e3dbc645fd2c23a82e9303683a05c5">printOn</a> (std::ostream &_os) const</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Writing object. <a href="#99e3dbc645fd2c23a82e9303683a05c5"></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. Besides, note that, contrary to the mono-objective case (and to <a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-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#l00031">31</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#l00082">82</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00276">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVectorValue</a>, and <a class="el" href="MOEO_8h-source.html#l00274">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#l00124">124</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00278">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::fitnessValue</a>, and <a class="el" href="MOEO_8h-source.html#l00280">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#l00166">166</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00282">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::diversityValue</a>, and <a class="el" href="MOEO_8h-source.html#l00284">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidDiversityValue</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="d38eef435511ba3a5a310712a608f4ab"></a><!-- doxytag: member="MOEO::operator<" ref="d38eef435511ba3a5a310712a608f4ab" 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#l00217">217</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00068">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::objectiveVector()</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="99e3dbc645fd2c23a82e9303683a05c5"></a><!-- doxytag: member="MOEO::printOn" ref="99e3dbc645fd2c23a82e9303683a05c5" 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:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/class_e_o.html#z10_2">EO< MOEOObjectiveVector ></a>.
|
|
<p>
|
|
Reimplemented in <a class="el" href="classmoeoVector.html#c327325a47954f69df985da96d2c171a">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a>, <a class="el" href="classmoeoBitVector.html#e54c36ce64b849a6846953a25247a861">moeoBitVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a>, <a class="el" href="classmoeoVector.html#c327325a47954f69df985da96d2c171a">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, bool ></a>, and <a class="el" href="classmoeoVector.html#c327325a47954f69df985da96d2c171a">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double ></a>.
|
|
<p>
|
|
Definition at line <a class="el" href="MOEO_8h-source.html#l00236">236</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00101">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVector()</a>, and <a class="el" href="MOEO_8h-source.html#l00274">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:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/class_e_o.html#z10_1">EO< MOEOObjectiveVector ></a>.
|
|
<p>
|
|
Reimplemented in <a class="el" href="classmoeoVector.html#cd8ee0fe79bb9515b29e2a4d3fee5ab9">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a>, <a class="el" href="classmoeoBitVector.html#31cd3f894615d0a27dd116a5c8082521">moeoBitVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></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#l00253">253</a> of file <a class="el" href="MOEO_8h-source.html">MOEO.h</a>.
|
|
<p>
|
|
References <a class="el" href="MOEO_8h-source.html#l00092">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidateObjectiveVector()</a>, <a class="el" href="MOEO_8h-source.html#l00276">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >::invalidObjectiveVectorValue</a>, and <a class="el" href="MOEO_8h-source.html#l00274">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 Tue Apr 17 16:53:21 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.5.1 </small></address>
|
|
</body>
|
|
</html>
|