git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@263 331e1502-861f-0410-8da2-ba01fb791d7f
183 lines
10 KiB
HTML
183 lines
10 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: moeoObjectiveVector< ObjectiveVectorTraits > 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>moeoObjectiveVector< ObjectiveVectorTraits > Class Template Reference</h1><!-- doxytag: class="moeoObjectiveVector" -->Abstract class allowing to represent a solution in the objective space (phenotypic representation).
|
|
<a href="#_details">More...</a>
|
|
<p>
|
|
<code>#include <<a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a>></code>
|
|
<p>
|
|
<p>Inheritance diagram for moeoObjectiveVector< ObjectiveVectorTraits >:
|
|
<p><center><img src="classmoeoObjectiveVector.png" usemap="#moeoObjectiveVector< ObjectiveVectorTraits >_map" border="0" alt=""></center>
|
|
<map name="moeoObjectiveVector< ObjectiveVectorTraits >_map">
|
|
<area href="classmoeoObjectiveVectorDouble.html" alt="moeoObjectiveVectorDouble< ObjectiveVectorTraits >" shape="rect" coords="0,56,321,80">
|
|
</map>
|
|
<a href="classmoeoObjectiveVector-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="f7085174831edefb79ef5365aee86f87"></a><!-- doxytag: member="moeoObjectiveVector::Traits" ref="f7085174831edefb79ef5365aee86f87" args="" -->
|
|
typedef ObjectiveVectorTraits </td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVector.html#f7085174831edefb79ef5365aee86f87">Traits</a></td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">The traits of objective vectors. <br></td></tr>
|
|
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVector.html#126770eefd109a84c010f5cbc46e2be3">setup</a> (unsigned _nObjectives, std::vector< bool > &_bObjectives)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Parameters setting (for the objective vector of any solution). <a href="#126770eefd109a84c010f5cbc46e2be3"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b5b74b561422cd7cd56924a8f974eee3"></a><!-- doxytag: member="moeoObjectiveVector::nObjectives" ref="b5b74b561422cd7cd56924a8f974eee3" args="()" -->
|
|
static unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVector.html#b5b74b561422cd7cd56924a8f974eee3">nObjectives</a> ()</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of objectives. <br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVector.html#6b5cb023de954c9a58f56f45e3ad8e5c">minimizing</a> (unsigned _i)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the _ith objective have to be minimized. <a href="#6b5cb023de954c9a58f56f45e3ad8e5c"></a><br></td></tr>
|
|
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVector.html#83e65052452ce9036d49f0868ddd7326">maximizing</a> (unsigned _i)</td></tr>
|
|
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the _ith objective have to be maximized. <a href="#83e65052452ce9036d49f0868ddd7326"></a><br></td></tr>
|
|
</table>
|
|
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
|
<h3>template<class ObjectiveVectorTraits><br>
|
|
class moeoObjectiveVector< ObjectiveVectorTraits ></h3>
|
|
|
|
Abstract class allowing to represent a solution in the objective space (phenotypic representation).
|
|
<p>
|
|
The template argument ObjectiveVectorTraits defaults to <a class="el" href="classmoeoObjectiveVectorTraits.html">moeoObjectiveVectorTraits</a>, but it can be replaced at will by any other class that implements the static functions defined therein. Some static funtions to access to the traits characteristics are re-defined in order not to write a lot of typedef's.
|
|
<p>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="moeoObjectiveVector_8h-source.html#l00028">28</a> of file <a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a>.<hr><h2>Member Function Documentation</h2>
|
|
<a class="anchor" name="126770eefd109a84c010f5cbc46e2be3"></a><!-- doxytag: member="moeoObjectiveVector::setup" ref="126770eefd109a84c010f5cbc46e2be3" args="(unsigned _nObjectives, std::vector< bool > &_bObjectives)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class ObjectiveVectorTraits> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static void <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a>< ObjectiveVectorTraits >::setup </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"> <em>_nObjectives</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::vector< bool > & </td>
|
|
<td class="paramname"> <em>_bObjectives</em></td><td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td><td width="100%"><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Parameters setting (for the objective vector of any 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>_nObjectives</em> </td><td>the number of objectives </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>_bObjectives</em> </td><td>the min/max vector (true = min / false = max) </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="moeoObjectiveVector_8h-source.html#l00041">41</a> of file <a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="6b5cb023de954c9a58f56f45e3ad8e5c"></a><!-- doxytag: member="moeoObjectiveVector::minimizing" ref="6b5cb023de954c9a58f56f45e3ad8e5c" args="(unsigned _i)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class ObjectiveVectorTraits> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a>< ObjectiveVectorTraits >::minimizing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"> <em>_i</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns true if the _ith objective have to be minimized.
|
|
<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>_i</em> </td><td>the index </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="moeoObjectiveVector_8h-source.html#l00060">60</a> of file <a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a>.
|
|
</div>
|
|
</div><p>
|
|
<a class="anchor" name="83e65052452ce9036d49f0868ddd7326"></a><!-- doxytag: member="moeoObjectiveVector::maximizing" ref="83e65052452ce9036d49f0868ddd7326" args="(unsigned _i)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<class ObjectiveVectorTraits> </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">static bool <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a>< ObjectiveVectorTraits >::maximizing </td>
|
|
<td>(</td>
|
|
<td class="paramtype">unsigned </td>
|
|
<td class="paramname"> <em>_i</em> </td>
|
|
<td> ) </td>
|
|
<td width="100%"><code> [inline, static]</code></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>
|
|
Returns true if the _ith objective have to be maximized.
|
|
<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>_i</em> </td><td>the index </td></tr>
|
|
</table>
|
|
</dl>
|
|
|
|
<p>
|
|
Definition at line <a class="el" href="moeoObjectiveVector_8h-source.html#l00069">69</a> of file <a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a>.
|
|
</div>
|
|
</div><p>
|
|
<hr>The documentation for this class was generated from the following file:<ul>
|
|
<li><a class="el" href="moeoObjectiveVector_8h-source.html">moeoObjectiveVector.h</a></ul>
|
|
<hr size="1"><address style="align: right;"><small>Generated on Tue Apr 17 16:53:22 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>
|