paradiseo/branches/paradiseo-moeo-1.0/doc/html/classmoeoObjectiveVectorTraits.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

183 lines
11 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: moeoObjectiveVectorTraits 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>moeoObjectiveVectorTraits Class Reference</h1><!-- doxytag: class="moeoObjectiveVectorTraits" -->A traits class for <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a> to specify the number of objectives and which ones have to be minimized or maximized.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a>&gt;</code>
<p>
<a href="classmoeoObjectiveVectorTraits-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></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&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#327c1994f1b5aa3d6b5c8cae0b971191">setup</a> (unsigned int _nObjectives, std::vector&lt; bool &gt; &amp;_bObjectives)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/struct_parameters.html">Parameters</a> setting. <a href="#327c1994f1b5aa3d6b5c8cae0b971191"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5befa177fc91ead8234bac7ce9d1e587"></a><!-- doxytag: member="moeoObjectiveVectorTraits::nObjectives" ref="5befa177fc91ead8234bac7ce9d1e587" args="()" -->
static unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#5befa177fc91ead8234bac7ce9d1e587">nObjectives</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of objectives. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#1478ae3006747619aa9ef3c016bdc831">minimizing</a> (unsigned int _i)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the _ith objective have to be minimized. <a href="#1478ae3006747619aa9ef3c016bdc831"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#c8e1a93d8c8480c391a007969ae652df">maximizing</a> (unsigned int _i)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns true if the _ith objective have to be maximized. <a href="#c8e1a93d8c8480c391a007969ae652df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c1199e4f019ec88a0365db81e9ab8d1f"></a><!-- doxytag: member="moeoObjectiveVectorTraits::tolerance" ref="c1199e4f019ec88a0365db81e9ab8d1f" args="()" -->
static double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#c1199e4f019ec88a0365db81e9ab8d1f">tolerance</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the tolerance value (to compare solutions). <br></td></tr>
<tr><td colspan="2"><br><h2>Static Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="77b639889ffc6d306d4dfded5a160236"></a><!-- doxytag: member="moeoObjectiveVectorTraits::nObj" ref="77b639889ffc6d306d4dfded5a160236" args="" -->
static unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#77b639889ffc6d306d4dfded5a160236">nObj</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The number of objectives. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="db329d416c75711f671c9d7cffb06299"></a><!-- doxytag: member="moeoObjectiveVectorTraits::bObj" ref="db329d416c75711f671c9d7cffb06299" args="" -->
static std::vector&lt; bool &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmoeoObjectiveVectorTraits.html#db329d416c75711f671c9d7cffb06299">bObj</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The min/max vector. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A traits class for <a class="el" href="classmoeoObjectiveVector.html">moeoObjectiveVector</a> to specify the number of objectives and which ones have to be minimized or maximized.
<p>
<p>
Definition at line <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00023">23</a> of file <a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a>.<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="327c1994f1b5aa3d6b5c8cae0b971191"></a><!-- doxytag: member="moeoObjectiveVectorTraits::setup" ref="327c1994f1b5aa3d6b5c8cae0b971191" args="(unsigned int _nObjectives, std::vector&lt; bool &gt; &amp;_bObjectives)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static void moeoObjectiveVectorTraits::setup </td>
<td>(</td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>_nObjectives</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">std::vector&lt; bool &gt; &amp;&nbsp;</td>
<td class="paramname"> <em>_bObjectives</em></td><td>&nbsp;</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>
<a class="elRef" doxygen="eo.doxytag:../../../paradiseo-eo/doc/html/" href="../../../paradiseo-eo/doc/html/struct_parameters.html">Parameters</a> setting.
<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>&nbsp;</td><td>the number of objectives </td></tr>
<tr><td valign="top"></td><td valign="top"><em>_bObjectives</em>&nbsp;</td><td>the min/max vector (true = min / false = max) </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00032">32</a> of file <a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a>.
<p>
References <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00099">bObj</a>, and <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00097">nObj</a>.
</div>
</div><p>
<a class="anchor" name="1478ae3006747619aa9ef3c016bdc831"></a><!-- doxytag: member="moeoObjectiveVectorTraits::minimizing" ref="1478ae3006747619aa9ef3c016bdc831" args="(unsigned int _i)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static bool moeoObjectiveVectorTraits::minimizing </td>
<td>(</td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>_i</em> </td>
<td>&nbsp;)&nbsp;</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>&nbsp;</td><td>the index </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00067">67</a> of file <a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a>.
<p>
References <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00099">bObj</a>.
<p>
Referenced by <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00080">maximizing()</a>.
</div>
</div><p>
<a class="anchor" name="c8e1a93d8c8480c391a007969ae652df"></a><!-- doxytag: member="moeoObjectiveVectorTraits::maximizing" ref="c8e1a93d8c8480c391a007969ae652df" args="(unsigned int _i)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static bool moeoObjectiveVectorTraits::maximizing </td>
<td>(</td>
<td class="paramtype">unsigned int&nbsp;</td>
<td class="paramname"> <em>_i</em> </td>
<td>&nbsp;)&nbsp;</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>&nbsp;</td><td>the index </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00080">80</a> of file <a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a>.
<p>
References <a class="el" href="moeoObjectiveVectorTraits_8h-source.html#l00067">minimizing()</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="moeoObjectiveVectorTraits_8h-source.html">moeoObjectiveVectorTraits.h</a><li><a class="el" href="moeoObjectiveVectorTraits_8cpp-source.html">moeoObjectiveVectorTraits.cpp</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>