Doc script updates API documentation module=paradiseo-moeo SPY=/data/OPAC/software/paradisEO/script/spy-update-api-doc-22338.20080229170200.log
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1028 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
feaf6abf9f
commit
8aabcaeece
115 changed files with 2984 additions and 2571 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopBenchmarkParser.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopBenchmarkParser.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,108 +22,138 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopBenchmarkParser.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopBenchmarkParser.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <stdexcept></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include <FlowShopBenchmarkParser.h></span>
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">00016</a> <a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">FlowShopBenchmarkParser::FlowShopBenchmarkParser</a>(<span class="keyword">const</span> std::string _benchmarkFileName)
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">init</a>(_benchmarkFileName);
|
||||
<a name="l00019"></a>00019 }
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">00022</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">FlowShopBenchmarkParser::getM</a>()
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>;
|
||||
<a name="l00025"></a>00025 }
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a><a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">00028</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">FlowShopBenchmarkParser::getN</a>()
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00030"></a>00030 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>;
|
||||
<a name="l00031"></a>00031 }
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00034"></a><a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">00034</a> <span class="keyword">const</span> std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">FlowShopBenchmarkParser::getP</a>()
|
||||
<a name="l00035"></a>00035 {
|
||||
<a name="l00036"></a>00036 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>;
|
||||
<a name="l00037"></a>00037 }
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a><a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">00040</a> <span class="keyword">const</span> std::vector<unsigned int> <a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">FlowShopBenchmarkParser::getD</a>()
|
||||
<a name="l00041"></a>00041 {
|
||||
<a name="l00042"></a>00042 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>;
|
||||
<a name="l00043"></a>00043 }
|
||||
<a name="l00044"></a>00044
|
||||
<h1>FlowShopBenchmarkParser.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopBenchmarkParser.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <stdexcept></span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor">#include <FlowShopBenchmarkParser.h></span>
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a><a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">00041</a> <a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">FlowShopBenchmarkParser::FlowShopBenchmarkParser</a>(<span class="keyword">const</span> std::string _benchmarkFileName)
|
||||
<a name="l00042"></a>00042 {
|
||||
<a name="l00043"></a>00043 <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">init</a>(_benchmarkFileName);
|
||||
<a name="l00044"></a>00044 }
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a><a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">00046</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">FlowShopBenchmarkParser::printOn</a>(std::ostream & _os)<span class="keyword"> const</span>
|
||||
<a name="l00047"></a>00047 <span class="keyword"></span>{
|
||||
<a name="l00048"></a>00048 _os << <span class="stringliteral">"M="</span> << <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a> << <span class="stringliteral">" N="</span> << <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> << std::endl;
|
||||
<a name="l00049"></a>00049 _os << <span class="stringliteral">"*** processing times"</span> << std::endl;
|
||||
<a name="l00050"></a>00050 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<<a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>; i++) {
|
||||
<a name="l00051"></a>00051 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>; j++) {
|
||||
<a name="l00052"></a>00052 _os << <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>[i][j] << <span class="stringliteral">" "</span>;
|
||||
<a name="l00053"></a>00053 }
|
||||
<a name="l00054"></a>00054 _os << std::endl;
|
||||
<a name="l00055"></a>00055 }
|
||||
<a name="l00056"></a>00056 _os << <span class="stringliteral">"*** due-dates"</span> << std::endl;
|
||||
<a name="l00057"></a>00057 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>; j++) {
|
||||
<a name="l00058"></a>00058 _os << <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>[j] << <span class="stringliteral">" "</span>;
|
||||
<a name="l00059"></a>00059 }
|
||||
<a name="l00060"></a>00060 _os << std::endl << std::endl;
|
||||
<a name="l00061"></a>00061 }
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a><a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">00047</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">FlowShopBenchmarkParser::getM</a>()
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>;
|
||||
<a name="l00050"></a>00050 }
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a><a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">00053</a> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">FlowShopBenchmarkParser::getN</a>()
|
||||
<a name="l00054"></a>00054 {
|
||||
<a name="l00055"></a>00055 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>;
|
||||
<a name="l00056"></a>00056 }
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00059"></a><a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">00059</a> <span class="keyword">const</span> std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">FlowShopBenchmarkParser::getP</a>()
|
||||
<a name="l00060"></a>00060 {
|
||||
<a name="l00061"></a>00061 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>;
|
||||
<a name="l00062"></a>00062 }
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a><a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">00064</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">FlowShopBenchmarkParser::init</a>(<span class="keyword">const</span> std::string _benchmarkFileName)
|
||||
<a name="l00065"></a>00065 {
|
||||
<a name="l00066"></a>00066 std::string buffer;
|
||||
<a name="l00067"></a>00067 std::string::size_type start, end;
|
||||
<a name="l00068"></a>00068 std::ifstream inputFile(_benchmarkFileName.data(), std::ios::in);
|
||||
<a name="l00069"></a>00069 <span class="comment">// opening of the benchmark file</span>
|
||||
<a name="l00070"></a>00070 <span class="keywordflow">if</span> (! inputFile)
|
||||
<a name="l00071"></a>00071 <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">"*** ERROR : Unable to open the benchmark file"</span>);
|
||||
<a name="l00072"></a>00072 <span class="comment">// number of jobs (N)</span>
|
||||
<a name="l00073"></a>00073 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00074"></a>00074 <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> = atoi(buffer.data());
|
||||
<a name="l00075"></a>00075 <span class="comment">// number of machines M</span>
|
||||
<a name="l00076"></a>00076 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00077"></a>00077 <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a> = atoi(buffer.data());
|
||||
<a name="l00078"></a>00078 <span class="comment">// initial and current seeds (not used)</span>
|
||||
<a name="l00079"></a>00079 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00080"></a>00080 <span class="comment">// processing times and due-dates</span>
|
||||
<a name="l00081"></a>00081 <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a> = std::vector< std::vector<unsigned int> > (<a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>,<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>);
|
||||
<a name="l00082"></a>00082 <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a> = std::vector<unsigned int> (<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>);
|
||||
<a name="l00083"></a>00083 <span class="comment">// for each job...</span>
|
||||
<a name="l00084"></a>00084 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0 ; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> ; j++) {
|
||||
<a name="l00085"></a>00085 <span class="comment">// index of the job (<=> j)</span>
|
||||
<a name="l00086"></a>00086 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00087"></a>00087 <span class="comment">// due-date of the job j</span>
|
||||
<a name="l00088"></a>00088 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00089"></a>00089 d[j] = atoi(buffer.data());
|
||||
<a name="l00090"></a>00090 <span class="comment">// processing times of the job j on each machine</span>
|
||||
<a name="l00091"></a>00091 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00092"></a>00092 start = buffer.find_first_not_of(<span class="stringliteral">" "</span>);
|
||||
<a name="l00093"></a>00093 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<M ; i++) {
|
||||
<a name="l00094"></a>00094 end = buffer.find_first_of(<span class="stringliteral">" "</span>, start);
|
||||
<a name="l00095"></a>00095 <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>[i][j] = atoi(buffer.substr(start, end-start).data());
|
||||
<a name="l00096"></a>00096 start = buffer.find_first_not_of(<span class="stringliteral">" "</span>, end);
|
||||
<a name="l00097"></a>00097 }
|
||||
<a name="l00098"></a>00098 }
|
||||
<a name="l00099"></a>00099 <span class="comment">// closing of the input file</span>
|
||||
<a name="l00100"></a>00100 inputFile.close();
|
||||
<a name="l00101"></a>00101 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a><a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">00065</a> <span class="keyword">const</span> std::vector<unsigned int> <a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">FlowShopBenchmarkParser::getD</a>()
|
||||
<a name="l00066"></a>00066 {
|
||||
<a name="l00067"></a>00067 <span class="keywordflow">return</span> <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>;
|
||||
<a name="l00068"></a>00068 }
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a><a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">00071</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">FlowShopBenchmarkParser::printOn</a>(std::ostream & _os)<span class="keyword"> const</span>
|
||||
<a name="l00072"></a>00072 <span class="keyword"> </span>{
|
||||
<a name="l00073"></a>00073 _os << <span class="stringliteral">"M="</span> << <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a> << <span class="stringliteral">" N="</span> << <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> << std::endl;
|
||||
<a name="l00074"></a>00074 _os << <span class="stringliteral">"*** processing times"</span> << std::endl;
|
||||
<a name="l00075"></a>00075 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<<a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>; i++)
|
||||
<a name="l00076"></a>00076 {
|
||||
<a name="l00077"></a>00077 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>; j++)
|
||||
<a name="l00078"></a>00078 {
|
||||
<a name="l00079"></a>00079 _os << <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>[i][j] << <span class="stringliteral">" "</span>;
|
||||
<a name="l00080"></a>00080 }
|
||||
<a name="l00081"></a>00081 _os << std::endl;
|
||||
<a name="l00082"></a>00082 }
|
||||
<a name="l00083"></a>00083 _os << <span class="stringliteral">"*** due-dates"</span> << std::endl;
|
||||
<a name="l00084"></a>00084 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>; j++)
|
||||
<a name="l00085"></a>00085 {
|
||||
<a name="l00086"></a>00086 _os << <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>[j] << <span class="stringliteral">" "</span>;
|
||||
<a name="l00087"></a>00087 }
|
||||
<a name="l00088"></a>00088 _os << std::endl << std::endl;
|
||||
<a name="l00089"></a>00089 }
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00092"></a><a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">00092</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">FlowShopBenchmarkParser::init</a>(<span class="keyword">const</span> std::string _benchmarkFileName)
|
||||
<a name="l00093"></a>00093 {
|
||||
<a name="l00094"></a>00094 std::string buffer;
|
||||
<a name="l00095"></a>00095 std::string::size_type start, end;
|
||||
<a name="l00096"></a>00096 std::ifstream inputFile(_benchmarkFileName.data(), std::ios::in);
|
||||
<a name="l00097"></a>00097 <span class="comment">// opening of the benchmark file</span>
|
||||
<a name="l00098"></a>00098 <span class="keywordflow">if</span> (! inputFile)
|
||||
<a name="l00099"></a>00099 <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">"*** ERROR : Unable to open the benchmark file"</span>);
|
||||
<a name="l00100"></a>00100 <span class="comment">// number of jobs (N)</span>
|
||||
<a name="l00101"></a>00101 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00102"></a>00102 <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> = atoi(buffer.data());
|
||||
<a name="l00103"></a>00103 <span class="comment">// number of machines M</span>
|
||||
<a name="l00104"></a>00104 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00105"></a>00105 <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a> = atoi(buffer.data());
|
||||
<a name="l00106"></a>00106 <span class="comment">// initial and current seeds (not used)</span>
|
||||
<a name="l00107"></a>00107 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00108"></a>00108 <span class="comment">// processing times and due-dates</span>
|
||||
<a name="l00109"></a>00109 <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a> = std::vector< std::vector<unsigned int> > (<a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>,<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>);
|
||||
<a name="l00110"></a>00110 <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a> = std::vector<unsigned int> (<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>);
|
||||
<a name="l00111"></a>00111 <span class="comment">// for each job...</span>
|
||||
<a name="l00112"></a>00112 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0 ; j<<a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a> ; j++)
|
||||
<a name="l00113"></a>00113 {
|
||||
<a name="l00114"></a>00114 <span class="comment">// index of the job (<=> j)</span>
|
||||
<a name="l00115"></a>00115 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00116"></a>00116 <span class="comment">// due-date of the job j</span>
|
||||
<a name="l00117"></a>00117 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00118"></a>00118 d[j] = atoi(buffer.data());
|
||||
<a name="l00119"></a>00119 <span class="comment">// processing times of the job j on each machine</span>
|
||||
<a name="l00120"></a>00120 getline(inputFile, buffer, <span class="charliteral">'\n'</span>);
|
||||
<a name="l00121"></a>00121 start = buffer.find_first_not_of(<span class="stringliteral">" "</span>);
|
||||
<a name="l00122"></a>00122 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<M ; i++)
|
||||
<a name="l00123"></a>00123 {
|
||||
<a name="l00124"></a>00124 end = buffer.find_first_of(<span class="stringliteral">" "</span>, start);
|
||||
<a name="l00125"></a>00125 <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>[i][j] = atoi(buffer.substr(start, end-start).data());
|
||||
<a name="l00126"></a>00126 start = buffer.find_first_not_of(<span class="stringliteral">" "</span>, end);
|
||||
<a name="l00127"></a>00127 }
|
||||
<a name="l00128"></a>00128 }
|
||||
<a name="l00129"></a>00129 <span class="comment">// closing of the input file</span>
|
||||
<a name="l00130"></a>00130 inputFile.close();
|
||||
<a name="l00131"></a>00131 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopBenchmarkParser.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopBenchmarkParser.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,61 +22,86 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopBenchmarkParser.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopBenchmarkParser.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPBENCHMARKPARSER_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPBENCHMARKPARSER_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <fstream></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <string></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include <vector></span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00023"></a><a class="code" href="classFlowShopBenchmarkParser.html">00023</a> <span class="keyword">class </span><a class="code" href="classFlowShopBenchmarkParser.html">FlowShopBenchmarkParser</a>
|
||||
<a name="l00024"></a>00024 {
|
||||
<a name="l00025"></a>00025 <span class="keyword">public</span>:
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00031"></a>00031 <a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">FlowShopBenchmarkParser</a>(<span class="keyword">const</span> std::string _benchmarkFileName);
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033
|
||||
<a name="l00037"></a>00037 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">getM</a>();
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00043"></a>00043 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">getN</a>();
|
||||
<h1>FlowShopBenchmarkParser.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopBenchmarkParser.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPBENCHMARKPARSER_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPBENCHMARKPARSER_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <fstream></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <string></span>
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include <vector></span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00049"></a>00049 <span class="keyword">const</span> std::vector < std::vector < unsigned int > > <a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">getP</a>();
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00048"></a><a class="code" href="classFlowShopBenchmarkParser.html">00048</a> <span class="keyword">class </span><a class="code" href="classFlowShopBenchmarkParser.html">FlowShopBenchmarkParser</a>
|
||||
<a name="l00049"></a>00049 {
|
||||
<a name="l00050"></a>00050 <span class="keyword">public</span>:
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00055"></a>00055 <span class="keyword">const</span> std::vector < unsigned int > <a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">getD</a>();
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00056"></a>00056 <a class="code" href="classFlowShopBenchmarkParser.html#2787b88a1be9d4d37438c557bf32f137">FlowShopBenchmarkParser</a>(<span class="keyword">const</span> std::string _benchmarkFileName);
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00061"></a>00061 <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">printOn</a>(std::ostream & _os) <span class="keyword">const</span>;
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00058"></a>00058
|
||||
<a name="l00062"></a>00062 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#8d5042c2f8727e235f94c947b2ba00a5">getM</a>();
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="keyword">private</span>:
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00067"></a><a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">00067</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>;
|
||||
<a name="l00069"></a><a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">00069</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>;
|
||||
<a name="l00071"></a><a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">00071</a> std::vector < std::vector < unsigned int > > <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>;
|
||||
<a name="l00073"></a><a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">00073</a> std::vector < unsigned int > <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>;
|
||||
<a name="l00074"></a>00074
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00068"></a>00068 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fe16df4df5104aee3d792e60bb32a66d">getN</a>();
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00074"></a>00074 <span class="keyword">const</span> std::vector < std::vector < unsigned int > > <a class="code" href="classFlowShopBenchmarkParser.html#2df87bf8a18a55266729ab105955d7bf">getP</a>();
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00080"></a>00080 <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">init</a>(<span class="keyword">const</span> std::string _benchmarkFileName);
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00080"></a>00080 <span class="keyword">const</span> std::vector < unsigned int > <a class="code" href="classFlowShopBenchmarkParser.html#b362d0042273be436c55637828d8582d">getD</a>();
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00082"></a>00082 };
|
||||
<a name="l00083"></a>00083
|
||||
<a name="l00084"></a>00084 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPBENCHMARKPARSER_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00082"></a>00082
|
||||
<a name="l00086"></a>00086 <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#69c9ba47e774da4b06424a724573265d">printOn</a>(std::ostream & _os) <span class="keyword">const</span>;
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00088"></a>00088
|
||||
<a name="l00089"></a>00089 <span class="keyword">private</span>:
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00092"></a><a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">00092</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#4cc02556c751afe32e8800544160c7c7">M</a>;
|
||||
<a name="l00094"></a><a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">00094</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopBenchmarkParser.html#fb220e40e9f94e3c1d3a7eb437aeffce">N</a>;
|
||||
<a name="l00096"></a><a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">00096</a> std::vector < std::vector < unsigned int > > <a class="code" href="classFlowShopBenchmarkParser.html#4c1ce3d710b6605ddcc723101b808de5">p</a>;
|
||||
<a name="l00098"></a><a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">00098</a> std::vector < unsigned int > <a class="code" href="classFlowShopBenchmarkParser.html#8898519f54465b2d23a846053363bf4b">d</a>;
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00105"></a>00105 <span class="keywordtype">void</span> <a class="code" href="classFlowShopBenchmarkParser.html#4e6de6a0ec2859e1a2fb758fb06dc915">init</a>(<span class="keyword">const</span> std::string _benchmarkFileName);
|
||||
<a name="l00106"></a>00106
|
||||
<a name="l00107"></a>00107 };
|
||||
<a name="l00108"></a>00108
|
||||
<a name="l00109"></a>00109 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPBENCHMARKPARSER_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopEval.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopEval.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,71 +22,97 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopEval.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopEval.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <FlowShopEval.h></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">00016</a> <a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">FlowShopEval::FlowShopEval</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _M, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N, <span class="keyword">const</span> std::vector< std::vector<unsigned int> > & _p, <span class="keyword">const</span> std::vector<unsigned int> & _d) :
|
||||
<a name="l00017"></a>00017 M(_M), N (_N), p(_p), d(_d)
|
||||
<a name="l00018"></a>00018 {}
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a><a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">00021</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">FlowShopEval::operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00022"></a>00022 {
|
||||
<a name="l00023"></a>00023 <a class="code" href="classmoeoRealObjectiveVector.html">FlowShopObjectiveVector</a> objVector;
|
||||
<a name="l00024"></a>00024 objVector[0] = <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">makespan</a>(_flowshop);
|
||||
<a name="l00025"></a>00025 objVector[1] = <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">tardiness</a>(_flowshop);
|
||||
<a name="l00026"></a>00026 _flowshop.<a class="code" href="classMOEO.html#7509143b0f18644e7d3183a039cece7b">objectiveVector</a>(objVector);
|
||||
<a name="l00027"></a>00027 }
|
||||
<a name="l00028"></a>00028
|
||||
<a name="l00029"></a>00029
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a><a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">00031</a> <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">FlowShopEval::makespan</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00032"></a>00032 {
|
||||
<a name="l00033"></a>00033 <span class="comment">// completion times computation for each job on each machine</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">// C[i][j] = completion of the jth job of the scheduling on the ith machine</span>
|
||||
<a name="l00035"></a>00035 std::vector< std::vector<unsigned int> > C = <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a>(_flowshop);
|
||||
<a name="l00036"></a>00036 <span class="keywordflow">return</span> C[<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>-1][_flowshop[<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>-1]];
|
||||
<a name="l00037"></a>00037 }
|
||||
<a name="l00038"></a>00038
|
||||
<h1>FlowShopEval.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopEval.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <FlowShopEval.h></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a><a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">00040</a> <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">FlowShopEval::tardiness</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00041"></a>00041 {
|
||||
<a name="l00042"></a>00042 <span class="comment">// completion times computation for each job on each machine</span>
|
||||
<a name="l00043"></a>00043 <span class="comment">// C[i][j] = completion of the jth job of the scheduling on the ith machine</span>
|
||||
<a name="l00044"></a>00044 std::vector< std::vector<unsigned int> > C = <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a>(_flowshop);
|
||||
<a name="l00045"></a>00045 <span class="comment">// tardiness computation</span>
|
||||
<a name="l00046"></a>00046 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">long</span> sum = 0;
|
||||
<a name="l00047"></a>00047 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0 ; j<<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a> ; j++)
|
||||
<a name="l00048"></a>00048 sum += (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) std::max (0, (<span class="keywordtype">int</span>) (C[<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>-1][_flowshop[j]] - <a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">d</a>[_flowshop[j]]));
|
||||
<a name="l00049"></a>00049 <span class="keywordflow">return</span> sum;
|
||||
<a name="l00050"></a>00050 }
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a><a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">00053</a> std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">FlowShopEval::completionTime</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop) {
|
||||
<a name="l00054"></a>00054 std::vector< std::vector<unsigned int> > C(<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>,<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>);
|
||||
<a name="l00055"></a>00055 C[0][_flowshop[0]] = <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[0][_flowshop[0]];
|
||||
<a name="l00056"></a>00056 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=1; j<<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>; j++)
|
||||
<a name="l00057"></a>00057 C[0][_flowshop[j]] = C[0][_flowshop[j-1]] + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[0][_flowshop[j]];
|
||||
<a name="l00058"></a>00058 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=1; i<<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>; i++)
|
||||
<a name="l00059"></a>00059 C[i][_flowshop[0]] = C[i-1][_flowshop[0]] + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[i][_flowshop[0]];
|
||||
<a name="l00060"></a>00060 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=1; i<M; i++)
|
||||
<a name="l00061"></a>00061 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=1; j<N; j++)
|
||||
<a name="l00062"></a>00062 C[i][_flowshop[j]] = std::max(C[i][_flowshop[j-1]], C[i-1][_flowshop[j]]) + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[i][_flowshop[j]];
|
||||
<a name="l00063"></a>00063 <span class="keywordflow">return</span> C;
|
||||
<a name="l00064"></a>00064 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a><a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">00041</a> <a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">FlowShopEval::FlowShopEval</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _M, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N, <span class="keyword">const</span> std::vector< std::vector<unsigned int> > & _p, <span class="keyword">const</span> std::vector<unsigned int> & _d) :
|
||||
<a name="l00042"></a>00042 M(_M), N (_N), p(_p), d(_d)
|
||||
<a name="l00043"></a>00043 {}
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a><a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">00046</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">FlowShopEval::operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00047"></a>00047 {
|
||||
<a name="l00048"></a>00048 <a class="code" href="classmoeoRealObjectiveVector.html">FlowShopObjectiveVector</a> objVector;
|
||||
<a name="l00049"></a>00049 objVector[0] = <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">makespan</a>(_flowshop);
|
||||
<a name="l00050"></a>00050 objVector[1] = <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">tardiness</a>(_flowshop);
|
||||
<a name="l00051"></a>00051 _flowshop.<a class="code" href="classMOEO.html#7509143b0f18644e7d3183a039cece7b">objectiveVector</a>(objVector);
|
||||
<a name="l00052"></a>00052 }
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a><a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">00056</a> <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">FlowShopEval::makespan</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00057"></a>00057 {
|
||||
<a name="l00058"></a>00058 <span class="comment">// completion times computation for each job on each machine</span>
|
||||
<a name="l00059"></a>00059 <span class="comment">// C[i][j] = completion of the jth job of the scheduling on the ith machine</span>
|
||||
<a name="l00060"></a>00060 std::vector< std::vector<unsigned int> > C = <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a>(_flowshop);
|
||||
<a name="l00061"></a>00061 <span class="keywordflow">return</span> C[<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>-1][_flowshop[<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>-1]];
|
||||
<a name="l00062"></a>00062 }
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a><a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">00065</a> <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">FlowShopEval::tardiness</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00066"></a>00066 {
|
||||
<a name="l00067"></a>00067 <span class="comment">// completion times computation for each job on each machine</span>
|
||||
<a name="l00068"></a>00068 <span class="comment">// C[i][j] = completion of the jth job of the scheduling on the ith machine</span>
|
||||
<a name="l00069"></a>00069 std::vector< std::vector<unsigned int> > C = <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a>(_flowshop);
|
||||
<a name="l00070"></a>00070 <span class="comment">// tardiness computation</span>
|
||||
<a name="l00071"></a>00071 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <span class="keywordtype">long</span> sum = 0;
|
||||
<a name="l00072"></a>00072 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=0 ; j<<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a> ; j++)
|
||||
<a name="l00073"></a>00073 sum += (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) std::max (0, (<span class="keywordtype">int</span>) (C[<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>-1][_flowshop[j]] - <a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">d</a>[_flowshop[j]]));
|
||||
<a name="l00074"></a>00074 <span class="keywordflow">return</span> sum;
|
||||
<a name="l00075"></a>00075 }
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00078"></a><a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">00078</a> std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">FlowShopEval::completionTime</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00079"></a>00079 {
|
||||
<a name="l00080"></a>00080 std::vector< std::vector<unsigned int> > C(<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>,<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>);
|
||||
<a name="l00081"></a>00081 C[0][_flowshop[0]] = <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[0][_flowshop[0]];
|
||||
<a name="l00082"></a>00082 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=1; j<<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>; j++)
|
||||
<a name="l00083"></a>00083 C[0][_flowshop[j]] = C[0][_flowshop[j-1]] + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[0][_flowshop[j]];
|
||||
<a name="l00084"></a>00084 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=1; i<<a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>; i++)
|
||||
<a name="l00085"></a>00085 C[i][_flowshop[0]] = C[i-1][_flowshop[0]] + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[i][_flowshop[0]];
|
||||
<a name="l00086"></a>00086 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=1; i<M; i++)
|
||||
<a name="l00087"></a>00087 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j=1; j<N; j++)
|
||||
<a name="l00088"></a>00088 C[i][_flowshop[j]] = std::max(C[i][_flowshop[j-1]], C[i-1][_flowshop[j]]) + <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>[i][_flowshop[j]];
|
||||
<a name="l00089"></a>00089 <span class="keywordflow">return</span> C;
|
||||
<a name="l00090"></a>00090 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopEval.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopEval.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,55 +22,80 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopEval.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopEval.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPEVAL_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPEVAL_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <vector></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <core/moeoEvalFunc.h></span>
|
||||
<a name="l00018"></a>00018 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00023"></a><a class="code" href="classFlowShopEval.html">00023</a> <span class="keyword">class </span><a class="code" href="classFlowShopEval.html">FlowShopEval</a> : <span class="keyword">public</span> <a class="code" href="classmoeoEvalFunc.html">moeoEvalFunc</a><FlowShop>
|
||||
<a name="l00024"></a>00024 {
|
||||
<a name="l00025"></a>00025 <span class="keyword">public</span>:
|
||||
<a name="l00026"></a>00026
|
||||
<a name="l00034"></a>00034 <a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">FlowShopEval</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _M, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N, <span class="keyword">const</span> std::vector< std::vector<unsigned int> > & _p, <span class="keyword">const</span> std::vector<unsigned int> & _d);
|
||||
<a name="l00035"></a>00035
|
||||
<a name="l00036"></a>00036
|
||||
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 <span class="keyword">private</span>:
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00047"></a><a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">00047</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>;
|
||||
<a name="l00049"></a><a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">00049</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>;
|
||||
<a name="l00051"></a><a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">00051</a> std::vector< std::vector < unsigned int > > <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>;
|
||||
<a name="l00053"></a><a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">00053</a> std::vector < unsigned int > <a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">d</a>;
|
||||
<a name="l00054"></a>00054
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00060"></a>00060 <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">makespan</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<h1>FlowShopEval.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopEval.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPEVAL_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPEVAL_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <vector></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <core/moeoEvalFunc.h></span>
|
||||
<a name="l00043"></a>00043 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00048"></a><a class="code" href="classFlowShopEval.html">00048</a> <span class="keyword">class </span><a class="code" href="classFlowShopEval.html">FlowShopEval</a> : <span class="keyword">public</span> <a class="code" href="classmoeoEvalFunc.html">moeoEvalFunc</a><FlowShop>
|
||||
<a name="l00049"></a>00049 {
|
||||
<a name="l00050"></a>00050 <span class="keyword">public</span>:
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00059"></a>00059 <a class="code" href="classFlowShopEval.html#f830293ad66a253a4008937fd6d68fce">FlowShopEval</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _M, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N, <span class="keyword">const</span> std::vector< std::vector<unsigned int> > & _p, <span class="keyword">const</span> std::vector<unsigned int> & _d);
|
||||
<a name="l00060"></a>00060
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00067"></a>00067 <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">tardiness</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="classFlowShopEval.html#d6ea74de6e62c2b104b52aa68b5da3a5">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069
|
||||
<a name="l00075"></a>00075 std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a> (<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 };
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00079"></a>00079 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPEVAL_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00069"></a>00069 <span class="keyword">private</span>:
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00072"></a><a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">00072</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopEval.html#9c7c7263d8c04d18d66729f4875d46cd">M</a>;
|
||||
<a name="l00074"></a><a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">00074</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>;
|
||||
<a name="l00076"></a><a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">00076</a> std::vector< std::vector < unsigned int > > <a class="code" href="classFlowShopEval.html#f4152ec0542e13cbc8f4c4ece284a2b4">p</a>;
|
||||
<a name="l00078"></a><a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">00078</a> std::vector < unsigned int > <a class="code" href="classFlowShopEval.html#a283f1bfd433ec1bd3a45c46bd6e3ba4">d</a>;
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a>00080
|
||||
<a name="l00085"></a>00085 <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#8b383e0c6cfd68fdf61e987b5fc91cf3">makespan</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00086"></a>00086
|
||||
<a name="l00087"></a>00087
|
||||
<a name="l00092"></a>00092 <span class="keywordtype">double</span> <a class="code" href="classFlowShopEval.html#25d04be8fd17b5589fdac732accaaf9e">tardiness</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00100"></a>00100 std::vector< std::vector<unsigned int> > <a class="code" href="classFlowShopEval.html#84cfc6f7bee1c0e4b1a29ca99e3c129b">completionTime</a> (<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00101"></a>00101
|
||||
<a name="l00102"></a>00102 };
|
||||
<a name="l00103"></a>00103
|
||||
<a name="l00104"></a>00104 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPEVAL_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopInit.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopInit.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,46 +22,71 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopInit.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopInit.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <FlowShopInit.h></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="classFlowShopInit.html#8ede459984d5de13c6a181c72cf4551e">00016</a> <a class="code" href="classFlowShopInit.html#8ede459984d5de13c6a181c72cf4551e">FlowShopInit::FlowShopInit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N) : N(_N)
|
||||
<a name="l00017"></a>00017 {}
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a><a class="code" href="classFlowShopInit.html#3df0d9e3834cdfa494683df7e8646025">00020</a> <span class="keywordtype">void</span> <a class="code" href="classFlowShopInit.html#3df0d9e3834cdfa494683df7e8646025">FlowShopInit::operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00021"></a>00021 {
|
||||
<a name="l00022"></a>00022 <span class="comment">// scheduling vector</span>
|
||||
<a name="l00023"></a>00023 std::vector<unsigned int> scheduling(<a class="code" href="classFlowShopInit.html#3bf7c402441e5bba3397377630e6ff4c">N</a>);
|
||||
<a name="l00024"></a>00024 <span class="comment">// initialisation of possible values</span>
|
||||
<a name="l00025"></a>00025 std::vector<unsigned int> possibles(<a class="code" href="classFlowShopInit.html#3bf7c402441e5bba3397377630e6ff4c">N</a>);
|
||||
<a name="l00026"></a>00026 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<<a class="code" href="classFlowShopInit.html#3bf7c402441e5bba3397377630e6ff4c">N</a> ; i++)
|
||||
<a name="l00027"></a>00027 possibles[i] = i;
|
||||
<a name="l00028"></a>00028 <span class="comment">// random initialization</span>
|
||||
<a name="l00029"></a>00029 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rInd; <span class="comment">// random index</span>
|
||||
<a name="l00030"></a>00030 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<N; i++)
|
||||
<a name="l00031"></a>00031 {
|
||||
<a name="l00032"></a>00032 rInd = (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) rng.<a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_rng.html#50dfb052f11ae50326e552cb223d88e4">uniform</a>(N-i);
|
||||
<a name="l00033"></a>00033 scheduling[i] = possibles[rInd];
|
||||
<a name="l00034"></a>00034 possibles[rInd] = possibles[N-i-1];
|
||||
<a name="l00035"></a>00035 }
|
||||
<a name="l00036"></a>00036 _flowshop.resize(N);
|
||||
<a name="l00037"></a>00037 _flowshop.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(scheduling);
|
||||
<a name="l00038"></a>00038 _flowshop.<a class="code" href="classMOEO.html#1069501a40e07071d78c067c46b696ee">invalidate</a>(); <span class="comment">// IMPORTANT in case the _genotype is old</span>
|
||||
<a name="l00039"></a>00039 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShopInit.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopInit.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <FlowShopInit.h></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a>00041 FlowShopInit::FlowShopInit(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N) : N(_N)
|
||||
<a name="l00042"></a>00042 {}
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="keywordtype">void</span> FlowShopInit::operator()(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop)
|
||||
<a name="l00046"></a>00046 {
|
||||
<a name="l00047"></a>00047 <span class="comment">// scheduling vector</span>
|
||||
<a name="l00048"></a>00048 std::vector<unsigned int> scheduling(<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>);
|
||||
<a name="l00049"></a>00049 <span class="comment">// initialisation of possible values</span>
|
||||
<a name="l00050"></a>00050 std::vector<unsigned int> possibles(<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a>);
|
||||
<a name="l00051"></a>00051 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<<a class="code" href="classFlowShopEval.html#48c4a108b54c2c949cb649e470c9e8c4">N</a> ; i++)
|
||||
<a name="l00052"></a>00052 possibles[i] = i;
|
||||
<a name="l00053"></a>00053 <span class="comment">// random initialization</span>
|
||||
<a name="l00054"></a>00054 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rInd; <span class="comment">// random index</span>
|
||||
<a name="l00055"></a>00055 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0; i<N; i++)
|
||||
<a name="l00056"></a>00056 {
|
||||
<a name="l00057"></a>00057 rInd = (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>) rng.uniform(N-i);
|
||||
<a name="l00058"></a>00058 scheduling[i] = possibles[rInd];
|
||||
<a name="l00059"></a>00059 possibles[rInd] = possibles[N-i-1];
|
||||
<a name="l00060"></a>00060 }
|
||||
<a name="l00061"></a>00061 _flowshop.resize(N);
|
||||
<a name="l00062"></a>00062 _flowshop.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(scheduling);
|
||||
<a name="l00063"></a>00063 _flowshop.<a class="code" href="classMOEO.html#1069501a40e07071d78c067c46b696ee">invalidate</a>(); <span class="comment">// IMPORTANT in case the _genotype is old</span>
|
||||
<a name="l00064"></a>00064 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopInit.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopInit.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,42 +22,53 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopInit.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopInit.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPINIT_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPINIT_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <eoInit.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopInit.html">00022</a> <span class="keyword">class </span><a class="code" href="classFlowShopInit.html">FlowShopInit</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_init.html">eoInit</a><FlowShop>
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keyword">public</span>:
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00030"></a>00030 <a class="code" href="classFlowShopInit.html#8ede459984d5de13c6a181c72cf4551e">FlowShopInit</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _N);
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00037"></a>00037 <span class="keywordtype">void</span> <a class="code" href="classFlowShopInit.html#3df0d9e3834cdfa494683df7e8646025">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">private</span>:
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00043"></a><a class="code" href="classFlowShopInit.html#3bf7c402441e5bba3397377630e6ff4c">00043</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopInit.html#3bf7c402441e5bba3397377630e6ff4c">N</a>;
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 };
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a>00047 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPINIT_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShopInit.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopInit.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPINIT_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPINIT_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <eoInit.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a>00047 <span class="keyword">typedef</span> eoInitPermutation<FlowShop> FlowShopInit;
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPINIT_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopObjectiveVectorTraits.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopObjectiveVectorTraits.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,39 +22,64 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopObjectiveVectorTraits.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopObjectiveVectorTraits.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <FlowShopObjectiveVectorTraits.h></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">00016</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">FlowShopObjectiveVectorTraits::minimizing</a> (<span class="keywordtype">int</span> _i)
|
||||
<a name="l00017"></a>00017 {
|
||||
<a name="l00018"></a>00018 <span class="comment">// minimizing both</span>
|
||||
<a name="l00019"></a>00019 <span class="keywordflow">return</span> <span class="keyword">true</span>;
|
||||
<a name="l00020"></a>00020 }
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">00022</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">FlowShopObjectiveVectorTraits::maximizing</a> (<span class="keywordtype">int</span> _i)
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="comment">// minimizing both</span>
|
||||
<a name="l00025"></a>00025 <span class="keywordflow">return</span> <span class="keyword">false</span>;
|
||||
<a name="l00026"></a>00026 }
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">00028</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">FlowShopObjectiveVectorTraits::nObjectives</a> ()
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00030"></a>00030 <span class="comment">// 2 objectives</span>
|
||||
<a name="l00031"></a>00031 <span class="keywordflow">return</span> 2;
|
||||
<a name="l00032"></a>00032 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShopObjectiveVectorTraits.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopObjectiveVectorTraits.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <FlowShopObjectiveVectorTraits.h></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">00041</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">FlowShopObjectiveVectorTraits::minimizing</a> (<span class="keywordtype">int</span> _i)
|
||||
<a name="l00042"></a>00042 {
|
||||
<a name="l00043"></a>00043 <span class="comment">// minimizing both</span>
|
||||
<a name="l00044"></a>00044 <span class="keywordflow">return</span> <span class="keyword">true</span>;
|
||||
<a name="l00045"></a>00045 }
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">00047</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">FlowShopObjectiveVectorTraits::maximizing</a> (<span class="keywordtype">int</span> _i)
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="comment">// minimizing both</span>
|
||||
<a name="l00050"></a>00050 <span class="keywordflow">return</span> <span class="keyword">false</span>;
|
||||
<a name="l00051"></a>00051 }
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">00053</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">FlowShopObjectiveVectorTraits::nObjectives</a> ()
|
||||
<a name="l00054"></a>00054 {
|
||||
<a name="l00055"></a>00055 <span class="comment">// 2 objectives</span>
|
||||
<a name="l00056"></a>00056 <span class="keywordflow">return</span> 2;
|
||||
<a name="l00057"></a>00057 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopObjectiveVectorTraits.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopObjectiveVectorTraits.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,39 +22,64 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopObjectiveVectorTraits.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopObjectiveVectorTraits.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPOBJECTIVEVECTORTRAITS_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOBJECTIVEVECTORTRAITS_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <core/moeoObjectiveVectorTraits.h></span>
|
||||
<a name="l00017"></a>00017
|
||||
<a name="l00021"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html">00021</a> <span class="keyword">class </span><a class="code" href="classFlowShopObjectiveVectorTraits.html">FlowShopObjectiveVectorTraits</a> : <span class="keyword">public</span> <a class="code" href="classmoeoObjectiveVectorTraits.html">moeoObjectiveVectorTraits</a>
|
||||
<a name="l00022"></a>00022 {
|
||||
<a name="l00023"></a>00023 <span class="keyword">public</span>:
|
||||
<a name="l00024"></a>00024
|
||||
<a name="l00029"></a>00029 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">minimizing</a> (<span class="keywordtype">int</span> _i);
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00036"></a>00036 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">maximizing</a> (<span class="keywordtype">int</span> _i);
|
||||
<h1>FlowShopObjectiveVectorTraits.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopObjectiveVectorTraits.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00042"></a>00042 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">nObjectives</a> ();
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00044"></a>00044 };
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOBJECTIVEVECTORTRAITS_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPOBJECTIVEVECTORTRAITS_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOBJECTIVEVECTORTRAITS_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <core/moeoObjectiveVectorTraits.h></span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00046"></a><a class="code" href="classFlowShopObjectiveVectorTraits.html">00046</a> <span class="keyword">class </span><a class="code" href="classFlowShopObjectiveVectorTraits.html">FlowShopObjectiveVectorTraits</a> : <span class="keyword">public</span> <a class="code" href="classmoeoObjectiveVectorTraits.html">moeoObjectiveVectorTraits</a>
|
||||
<a name="l00047"></a>00047 {
|
||||
<a name="l00048"></a>00048 <span class="keyword">public</span>:
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00054"></a>00054 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#e1a0f5be1782b9f9ce08128a404a1fa8">minimizing</a> (<span class="keywordtype">int</span> _i);
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00061"></a>00061 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#229fbb4cc19d289637891c1b49f3eaba">maximizing</a> (<span class="keywordtype">int</span> _i);
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00067"></a>00067 <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classFlowShopObjectiveVectorTraits.html#76ebe7639b502980bc683ab404b69c10">nObjectives</a> ();
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 };
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a>00071 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOBJECTIVEVECTORTRAITS_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopObjectiveVector.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopObjectiveVector.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,28 +22,53 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopObjectiveVector.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopObjectiveVector.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPOBJECTIVEVECTOR_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOBJECTIVEVECTOR_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <core/moeoRealObjectiveVector.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShopObjectiveVectorTraits.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a>00022 <span class="keyword">typedef</span> moeoRealObjectiveVector < FlowShopObjectiveVectorTraits > <a class="code" href="classmoeoRealObjectiveVector.html">FlowShopObjectiveVector</a>;
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOBJECTIVEVECTOR_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShopObjectiveVector.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopObjectiveVector.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPOBJECTIVEVECTOR_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOBJECTIVEVECTOR_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <core/moeoRealObjectiveVector.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShopObjectiveVectorTraits.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a>00047 <span class="keyword">typedef</span> moeoRealObjectiveVector < FlowShopObjectiveVectorTraits > <a class="code" href="classmoeoRealObjectiveVector.html">FlowShopObjectiveVector</a>;
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOBJECTIVEVECTOR_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopOpCrossoverQuad.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopOpCrossoverQuad.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,91 +22,117 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopOpCrossoverQuad.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopOpCrossoverQuad.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <FlowShopOpCrossoverQuad.h></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a>00015
|
||||
<a name="l00016"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">00016</a> std::string <a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">FlowShopOpCrossoverQuad::className</a>()<span class="keyword"> const</span>
|
||||
<a name="l00017"></a>00017 <span class="keyword"></span>{
|
||||
<a name="l00018"></a>00018 <span class="keywordflow">return</span> <span class="stringliteral">"FlowShopOpCrossoverQuad"</span>;
|
||||
<a name="l00019"></a>00019 }
|
||||
<a name="l00020"></a>00020
|
||||
<a name="l00021"></a>00021
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">00022</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">FlowShopOpCrossoverQuad::operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop1, <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop2)
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keywordtype">bool</span> oneAtLeastIsModified;
|
||||
<a name="l00025"></a>00025 <span class="comment">// computation of the 2 random points</span>
|
||||
<a name="l00026"></a>00026 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> point1, point2;
|
||||
<a name="l00027"></a>00027 <span class="keywordflow">do</span>
|
||||
<a name="l00028"></a>00028 {
|
||||
<a name="l00029"></a>00029 point1 = rng.<a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_rng.html#f0829d258c74cdc3a8f6cd72c0287cb4">random</a>(std::min(_flowshop1.size(), _flowshop2.size()));
|
||||
<a name="l00030"></a>00030 point2 = rng.<a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_rng.html#f0829d258c74cdc3a8f6cd72c0287cb4">random</a>(std::min(_flowshop1.size(), _flowshop2.size()));
|
||||
<a name="l00031"></a>00031 } <span class="keywordflow">while</span> (fabs((<span class="keywordtype">double</span>) point1-point2) <= 2);
|
||||
<a name="l00032"></a>00032 <span class="comment">// computation of the offspring</span>
|
||||
<a name="l00033"></a>00033 <a class="code" href="classFlowShop.html">FlowShop</a> offspring1 = <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(_flowshop1, _flowshop2, point1, point2);
|
||||
<a name="l00034"></a>00034 <a class="code" href="classFlowShop.html">FlowShop</a> offspring2 = <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(_flowshop2, _flowshop1, point1, point2);
|
||||
<a name="l00035"></a>00035 <span class="comment">// does at least one genotype has been modified ?</span>
|
||||
<a name="l00036"></a>00036 <span class="keywordflow">if</span> ((_flowshop1 != offspring1) || (_flowshop2 != offspring2))
|
||||
<a name="l00037"></a>00037 {
|
||||
<a name="l00038"></a>00038 <span class="comment">// update</span>
|
||||
<a name="l00039"></a>00039 _flowshop1.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(offspring1);
|
||||
<a name="l00040"></a>00040 _flowshop2.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(offspring2);
|
||||
<a name="l00041"></a>00041 <span class="comment">// at least one genotype has been modified</span>
|
||||
<a name="l00042"></a>00042 oneAtLeastIsModified = <span class="keyword">true</span>;
|
||||
<a name="l00043"></a>00043 }
|
||||
<a name="l00044"></a>00044 <span class="keywordflow">else</span>
|
||||
<a name="l00045"></a>00045 {
|
||||
<a name="l00046"></a>00046 <span class="comment">// no genotype has been modified</span>
|
||||
<a name="l00047"></a>00047 oneAtLeastIsModified = <span class="keyword">false</span>;
|
||||
<a name="l00048"></a>00048 }
|
||||
<a name="l00049"></a>00049 <span class="comment">// return 'true' if at least one genotype has been modified</span>
|
||||
<a name="l00050"></a>00050 <span class="keywordflow">return</span> oneAtLeastIsModified;
|
||||
<a name="l00051"></a>00051 }
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">00054</a> <a class="code" href="classFlowShop.html">FlowShop</a> <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">FlowShopOpCrossoverQuad::generateOffspring</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent1, <span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent2, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point2)
|
||||
<a name="l00055"></a>00055 {
|
||||
<a name="l00056"></a>00056 <a class="code" href="classFlowShop.html">FlowShop</a> result = _parent1;
|
||||
<a name="l00057"></a>00057 std::vector<bool> taken_values(result.size(), <span class="keyword">false</span>);
|
||||
<a name="l00058"></a>00058 <span class="keywordflow">if</span> (_point1 > _point2)
|
||||
<a name="l00059"></a>00059 std::swap(_point1, _point2);
|
||||
<a name="l00060"></a>00060 <span class="comment">/* first parent */</span>
|
||||
<a name="l00061"></a>00061 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<=_point1 ; i++)
|
||||
<a name="l00062"></a>00062 {
|
||||
<a name="l00063"></a>00063 <span class="comment">// result[i] == _parent1[i]</span>
|
||||
<a name="l00064"></a>00064 taken_values[_parent1[i]] = <span class="keyword">true</span>;
|
||||
<a name="l00065"></a>00065 }
|
||||
<a name="l00066"></a>00066 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=_point2 ; i<result.size() ; i++)
|
||||
<a name="l00067"></a>00067 {
|
||||
<a name="l00068"></a>00068 <span class="comment">// result[i] == _parent1[i]</span>
|
||||
<a name="l00069"></a>00069 taken_values[_parent1[i]] = <span class="keyword">true</span>;
|
||||
<a name="l00070"></a>00070 }
|
||||
<a name="l00071"></a>00071 <span class="comment">/* second parent */</span>
|
||||
<a name="l00072"></a>00072 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = _point1+1;
|
||||
<a name="l00073"></a>00073 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0;
|
||||
<a name="l00074"></a>00074 <span class="keywordflow">while</span> (i<_point2 && j<_parent2.size())
|
||||
<a name="l00075"></a>00075 {
|
||||
<a name="l00076"></a>00076 <span class="keywordflow">if</span> (! taken_values[_parent2[j]])
|
||||
<a name="l00077"></a>00077 {
|
||||
<a name="l00078"></a>00078 result[i] = _parent2[j];
|
||||
<a name="l00079"></a>00079 i++;
|
||||
<a name="l00080"></a>00080 }
|
||||
<a name="l00081"></a>00081 j++;
|
||||
<a name="l00082"></a>00082 }
|
||||
<a name="l00083"></a>00083 <span class="keywordflow">return</span> result;
|
||||
<a name="l00084"></a>00084 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShopOpCrossoverQuad.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopOpCrossoverQuad.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <FlowShopOpCrossoverQuad.h></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040
|
||||
<a name="l00041"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">00041</a> std::string <a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">FlowShopOpCrossoverQuad::className</a>()<span class="keyword"> const</span>
|
||||
<a name="l00042"></a>00042 <span class="keyword"> </span>{
|
||||
<a name="l00043"></a>00043 <span class="keywordflow">return</span> <span class="stringliteral">"FlowShopOpCrossoverQuad"</span>;
|
||||
<a name="l00044"></a>00044 }
|
||||
<a name="l00045"></a>00045
|
||||
<a name="l00046"></a>00046
|
||||
<a name="l00047"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">00047</a> <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">FlowShopOpCrossoverQuad::operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop1, <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop2)
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="keywordtype">bool</span> oneAtLeastIsModified;
|
||||
<a name="l00050"></a>00050 <span class="comment">// computation of the 2 random points</span>
|
||||
<a name="l00051"></a>00051 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> point1, point2;
|
||||
<a name="l00052"></a>00052 <span class="keywordflow">do</span>
|
||||
<a name="l00053"></a>00053 {
|
||||
<a name="l00054"></a>00054 point1 = rng.random(std::min(_flowshop1.size(), _flowshop2.size()));
|
||||
<a name="l00055"></a>00055 point2 = rng.random(std::min(_flowshop1.size(), _flowshop2.size()));
|
||||
<a name="l00056"></a>00056 }
|
||||
<a name="l00057"></a>00057 <span class="keywordflow">while</span> (fabs((<span class="keywordtype">double</span>) point1-point2) <= 2);
|
||||
<a name="l00058"></a>00058 <span class="comment">// computation of the offspring</span>
|
||||
<a name="l00059"></a>00059 <a class="code" href="classFlowShop.html">FlowShop</a> offspring1 = <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(_flowshop1, _flowshop2, point1, point2);
|
||||
<a name="l00060"></a>00060 <a class="code" href="classFlowShop.html">FlowShop</a> offspring2 = <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(_flowshop2, _flowshop1, point1, point2);
|
||||
<a name="l00061"></a>00061 <span class="comment">// does at least one genotype has been modified ?</span>
|
||||
<a name="l00062"></a>00062 <span class="keywordflow">if</span> ((_flowshop1 != offspring1) || (_flowshop2 != offspring2))
|
||||
<a name="l00063"></a>00063 {
|
||||
<a name="l00064"></a>00064 <span class="comment">// update</span>
|
||||
<a name="l00065"></a>00065 _flowshop1.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(offspring1);
|
||||
<a name="l00066"></a>00066 _flowshop2.<a class="code" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(offspring2);
|
||||
<a name="l00067"></a>00067 <span class="comment">// at least one genotype has been modified</span>
|
||||
<a name="l00068"></a>00068 oneAtLeastIsModified = <span class="keyword">true</span>;
|
||||
<a name="l00069"></a>00069 }
|
||||
<a name="l00070"></a>00070 <span class="keywordflow">else</span>
|
||||
<a name="l00071"></a>00071 {
|
||||
<a name="l00072"></a>00072 <span class="comment">// no genotype has been modified</span>
|
||||
<a name="l00073"></a>00073 oneAtLeastIsModified = <span class="keyword">false</span>;
|
||||
<a name="l00074"></a>00074 }
|
||||
<a name="l00075"></a>00075 <span class="comment">// return 'true' if at least one genotype has been modified</span>
|
||||
<a name="l00076"></a>00076 <span class="keywordflow">return</span> oneAtLeastIsModified;
|
||||
<a name="l00077"></a>00077 }
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a><a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">00080</a> <a class="code" href="classFlowShop.html">FlowShop</a> <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">FlowShopOpCrossoverQuad::generateOffspring</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent1, <span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent2, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point2)
|
||||
<a name="l00081"></a>00081 {
|
||||
<a name="l00082"></a>00082 <a class="code" href="classFlowShop.html">FlowShop</a> result = _parent1;
|
||||
<a name="l00083"></a>00083 std::vector<bool> taken_values(result.size(), <span class="keyword">false</span>);
|
||||
<a name="l00084"></a>00084 <span class="keywordflow">if</span> (_point1 > _point2)
|
||||
<a name="l00085"></a>00085 std::swap(_point1, _point2);
|
||||
<a name="l00086"></a>00086 <span class="comment">/* first parent */</span>
|
||||
<a name="l00087"></a>00087 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=0 ; i<=_point1 ; i++)
|
||||
<a name="l00088"></a>00088 {
|
||||
<a name="l00089"></a>00089 <span class="comment">// result[i] == _parent1[i]</span>
|
||||
<a name="l00090"></a>00090 taken_values[_parent1[i]] = <span class="keyword">true</span>;
|
||||
<a name="l00091"></a>00091 }
|
||||
<a name="l00092"></a>00092 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i=_point2 ; i<result.size() ; i++)
|
||||
<a name="l00093"></a>00093 {
|
||||
<a name="l00094"></a>00094 <span class="comment">// result[i] == _parent1[i]</span>
|
||||
<a name="l00095"></a>00095 taken_values[_parent1[i]] = <span class="keyword">true</span>;
|
||||
<a name="l00096"></a>00096 }
|
||||
<a name="l00097"></a>00097 <span class="comment">/* second parent */</span>
|
||||
<a name="l00098"></a>00098 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> i = _point1+1;
|
||||
<a name="l00099"></a>00099 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0;
|
||||
<a name="l00100"></a>00100 <span class="keywordflow">while</span> (i<_point2 && j<_parent2.size())
|
||||
<a name="l00101"></a>00101 {
|
||||
<a name="l00102"></a>00102 <span class="keywordflow">if</span> (! taken_values[_parent2[j]])
|
||||
<a name="l00103"></a>00103 {
|
||||
<a name="l00104"></a>00104 result[i] = _parent2[j];
|
||||
<a name="l00105"></a>00105 i++;
|
||||
<a name="l00106"></a>00106 }
|
||||
<a name="l00107"></a>00107 j++;
|
||||
<a name="l00108"></a>00108 }
|
||||
<a name="l00109"></a>00109 <span class="keywordflow">return</span> result;
|
||||
<a name="l00110"></a>00110 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopOpCrossoverQuad.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopOpCrossoverQuad.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,42 +22,67 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopOpCrossoverQuad.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopOpCrossoverQuad.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPOPCROSSOVERQUAD_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPCROSSOVERQUAD_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <eoOp.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopOpCrossoverQuad.html">00022</a> <span class="keyword">class </span><a class="code" href="classFlowShopOpCrossoverQuad.html">FlowShopOpCrossoverQuad</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_quad_op.html">eoQuadOp</a> < FlowShop >
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keyword">public</span>:
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00029"></a>00029 std::string <a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00037"></a>00037 <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop1, <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop2);
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="keyword">private</span>:
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00049"></a>00049 <a class="code" href="classFlowShop.html">FlowShop</a> <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent1, <span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent2, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point2);
|
||||
<h1>FlowShopOpCrossoverQuad.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopOpCrossoverQuad.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPOPCROSSOVERQUAD_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPCROSSOVERQUAD_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <eoOp.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a><a class="code" href="classFlowShopOpCrossoverQuad.html">00047</a> <span class="keyword">class </span><a class="code" href="classFlowShopOpCrossoverQuad.html">FlowShopOpCrossoverQuad</a> : <span class="keyword">public</span> eoQuadOp < FlowShop >
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="keyword">public</span>:
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 };
|
||||
<a name="l00052"></a>00052
|
||||
<a name="l00053"></a>00053 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPCROSSOVERQUAD_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00054"></a>00054 std::string <a class="code" href="classFlowShopOpCrossoverQuad.html#60ac69b87970b7000980f65aa6ead44a">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00062"></a>00062 <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpCrossoverQuad.html#92f70807bea24d3c233af580e2c55e3a">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop1, <a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop2);
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064
|
||||
<a name="l00065"></a>00065 <span class="keyword">private</span>:
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00074"></a>00074 <a class="code" href="classFlowShop.html">FlowShop</a> <a class="code" href="classFlowShopOpCrossoverQuad.html#cbc2f344a0a29861900f4846597564c3">generateOffspring</a>(<span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent1, <span class="keyword">const</span> <a class="code" href="classFlowShop.html">FlowShop</a> & _parent2, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> _point2);
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076 };
|
||||
<a name="l00077"></a>00077
|
||||
<a name="l00078"></a>00078 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPCROSSOVERQUAD_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopOpMutationExchange.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopOpMutationExchange.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,37 +22,53 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopOpMutationExchange.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopOpCrossoverQuad.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPOPMUTATIONEXCHANGE_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPMUTATIONEXCHANGE_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <eoOp.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopOpMutationExchange.html">00022</a> <span class="keyword">class </span><a class="code" href="classFlowShopOpMutationExchange.html">FlowShopOpMutationExchange</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_mon_op.html">eoMonOp</a><FlowShop>
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keyword">public</span>:
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00029"></a>00029 std::string <a class="code" href="classFlowShopOpMutationExchange.html#36a926c9fe21346db26fadf1d50c1c7a">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00036"></a>00036 <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpMutationExchange.html#bdb2e1d937d788c50f04226265c848bd">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<h1>FlowShopOpMutationExchange.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopOpMutationExchange.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 };
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPMUTATIONEXCHANGE_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPOPMUTATIONEXCHANGE_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPMUTATIONEXCHANGE_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <eoSwapMutation.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a>00047 <span class="keyword">typedef</span> eoSwapMutation<FlowShop> FlowShopOpMutationExchange;
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPMUTATIONEXCHANGE_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShopOpMutationShift.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShopOpMutationShift.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,37 +22,53 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShopOpMutationShift.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShopOpMutationShift.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOPOPMUTATIONSHIFT_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPMUTATIONSHIFT_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <eoOp.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a><a class="code" href="classFlowShopOpMutationShift.html">00022</a> <span class="keyword">class </span><a class="code" href="classFlowShopOpMutationShift.html">FlowShopOpMutationShift</a> : <span class="keyword">public</span> <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_mon_op.html">eoMonOp</a> < FlowShop >
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keyword">public</span>:
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00029"></a>00029 std::string <a class="code" href="classFlowShopOpMutationShift.html#dd1d710568978d1d4bb8c6f3925da4c6">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a>00031
|
||||
<a name="l00036"></a>00036 <span class="keywordtype">bool</span> <a class="code" href="classFlowShopOpMutationShift.html#c000b017e75ddee3b6fe9db8ea5ddd5b">operator()</a>(<a class="code" href="classFlowShop.html">FlowShop</a> & _flowshop);
|
||||
<h1>FlowShopOpMutationShift.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShopOpMutationShift.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 };
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPMUTATIONSHIFT_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOPOPMUTATIONSHIFT_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOPOPMUTATIONSHIFT_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <eoShiftMutation.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a>00047 <span class="keyword">typedef</span> eoShiftMutation<FlowShop> FlowShopOpMutationShift;
|
||||
<a name="l00048"></a>00048
|
||||
<a name="l00049"></a>00049 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOPOPMUTATIONSHIFT_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShop.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShop.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,25 +22,50 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShop.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShop.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00014"></a>00014
|
||||
<a name="l00015"></a><a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">00015</a> std::string <a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">FlowShop::className</a>()<span class="keyword"> const</span>
|
||||
<a name="l00016"></a>00016 <span class="keyword"></span>{
|
||||
<a name="l00017"></a>00017 <span class="keywordflow">return</span> <span class="stringliteral">"FlowShop"</span>;
|
||||
<a name="l00018"></a>00018 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShop.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShop.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <FlowShop.h></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a><a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">00040</a> std::string <a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">FlowShop::className</a>()<span class="keyword"> const</span>
|
||||
<a name="l00041"></a>00041 <span class="keyword"> </span>{
|
||||
<a name="l00042"></a>00042 <span class="keywordflow">return</span> <span class="stringliteral">"FlowShop"</span>;
|
||||
<a name="l00043"></a>00043 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShop.h Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShop.h Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,34 +22,59 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>FlowShop.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// FlowShop.h</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#ifndef FLOWSHOP_H_</span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOP_H_</span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor"></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <core/moeoVector.h></span>
|
||||
<a name="l00017"></a>00017 <span class="preprocessor">#include <FlowShopObjectiveVector.h></span>
|
||||
<a name="l00018"></a>00018
|
||||
<a name="l00022"></a><a class="code" href="classFlowShop.html">00022</a> <span class="keyword">class </span><a class="code" href="classFlowShop.html">FlowShop</a>: <span class="keyword">public</span> <a class="code" href="classmoeoVector.html">moeoVector</a> < FlowShopObjectiveVector , double , double , unsigned int >
|
||||
<a name="l00023"></a>00023 {
|
||||
<a name="l00024"></a>00024 <span class="keyword">public</span>:
|
||||
<a name="l00025"></a>00025
|
||||
<a name="l00029"></a>00029 std::string <a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00030"></a>00030
|
||||
<a name="l00031"></a>00031 };
|
||||
<a name="l00032"></a>00032
|
||||
<a name="l00033"></a>00033 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOP_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:51 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<h1>FlowShop.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <FlowShop.h></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#ifndef FLOWSHOP_H_</span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define FLOWSHOP_H_</span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor"></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <core/moeoVector.h></span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor">#include <FlowShopObjectiveVector.h></span>
|
||||
<a name="l00043"></a>00043
|
||||
<a name="l00047"></a><a class="code" href="classFlowShop.html">00047</a> <span class="keyword">class </span><a class="code" href="classFlowShop.html">FlowShop</a>: <span class="keyword">public</span> <a class="code" href="classmoeoVector.html">moeoVector</a> < FlowShopObjectiveVector , double , double , unsigned int >
|
||||
<a name="l00048"></a>00048 {
|
||||
<a name="l00049"></a>00049 <span class="keyword">public</span>:
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00054"></a>00054 std::string <a class="code" href="classFlowShop.html#eaab263664f0078082e723a905d430f3">className</a>() <span class="keyword">const</span>;
|
||||
<a name="l00055"></a>00055
|
||||
<a name="l00056"></a>00056 };
|
||||
<a name="l00057"></a>00057
|
||||
<a name="l00058"></a>00058 <span class="preprocessor">#endif </span><span class="comment">/*FLOWSHOP_H_*/</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: README Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: README Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -23,7 +24,7 @@
|
|||
</ul></div>
|
||||
<h1>README</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 PARADISEO-<a class="code" href="classMOEO.html">MOEO</a> README FILE
|
||||
<a name="l00002"></a>00002 =======================================================================
|
||||
<a name="l00003"></a>00003 <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/namespacedominance.html#01ead7419cb41bd6a8d7ea265dce1ce3">check</a> latest news at http:<span class="comment">//paradiseo.gforge.inria.fr/</span>
|
||||
<a name="l00003"></a>00003 check latest news at http:<span class="comment">//paradiseo.gforge.inria.fr/</span>
|
||||
<a name="l00004"></a>00004 =======================================================================
|
||||
<a name="l00005"></a>00005
|
||||
<a name="l00006"></a>00006 Welcome to ParadisEO-<a class="code" href="classMOEO.html">MOEO</a>, the Multi-Objective Evolving Objects library.
|
||||
|
|
@ -101,7 +102,7 @@
|
|||
<a name="l00078"></a>00078 =======================================================================
|
||||
<a name="l00079"></a>00079
|
||||
<a name="l00080"></a>00080 Mailing list : paradiseo-help@lists.gforge.inria.fr
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:52 2007 for ParadisEO-MOEOMovingObjects by
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: Sch1.cpp Source File</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: Sch1.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="classes.html"><span>Classes</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -21,114 +22,146 @@
|
|||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>Sch1.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-</span>
|
||||
<a name="l00002"></a>00002
|
||||
<a name="l00003"></a>00003 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">// Sch1.cpp</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">/*</span>
|
||||
<a name="l00007"></a>00007 <span class="comment"> This library...</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"></span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> */</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00012"></a>00012
|
||||
<a name="l00013"></a>00013 <span class="preprocessor">#include <stdio.h></span>
|
||||
<a name="l00014"></a>00014 <span class="preprocessor">#include <moeo></span>
|
||||
<a name="l00015"></a>00015 <span class="preprocessor">#include <es/eoRealInitBounded.h></span>
|
||||
<a name="l00016"></a>00016 <span class="preprocessor">#include <es/eoRealOp.h></span>
|
||||
<a name="l00017"></a>00017
|
||||
<a name="l00018"></a>00018 <span class="keyword">using namespace </span>std;
|
||||
<a name="l00019"></a>00019
|
||||
<a name="l00020"></a>00020 <span class="comment">// the moeoObjectiveVectorTraits : minimizing 2 objectives</span>
|
||||
<a name="l00021"></a><a class="code" href="classSch1ObjectiveVectorTraits.html">00021</a> <span class="keyword">class </span><a class="code" href="classSch1ObjectiveVectorTraits.html">Sch1ObjectiveVectorTraits</a> : <span class="keyword">public</span> <a class="code" href="classmoeoObjectiveVectorTraits.html">moeoObjectiveVectorTraits</a>
|
||||
<a name="l00022"></a>00022 {
|
||||
<a name="l00023"></a>00023 <span class="keyword">public</span>:
|
||||
<a name="l00024"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#455ac35e419ad21c0a4ba4bbd2768ca5">00024</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#455ac35e419ad21c0a4ba4bbd2768ca5">minimizing</a> (<span class="keywordtype">int</span> i)
|
||||
<a name="l00025"></a>00025 {
|
||||
<a name="l00026"></a>00026 <span class="keywordflow">return</span> <span class="keyword">true</span>;
|
||||
<a name="l00027"></a>00027 }
|
||||
<a name="l00028"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#a7de212f3346dde550757e8a412baa4d">00028</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#a7de212f3346dde550757e8a412baa4d">maximizing</a> (<span class="keywordtype">int</span> i)
|
||||
<a name="l00029"></a>00029 {
|
||||
<a name="l00030"></a>00030 <span class="keywordflow">return</span> <span class="keyword">false</span>;
|
||||
<a name="l00031"></a>00031 }
|
||||
<a name="l00032"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#54ae04aa8eb052223778ecae175be95b">00032</a> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#54ae04aa8eb052223778ecae175be95b">nObjectives</a> ()
|
||||
<a name="l00033"></a>00033 {
|
||||
<a name="l00034"></a>00034 <span class="keywordflow">return</span> 2;
|
||||
<a name="l00035"></a>00035 }
|
||||
<a name="l00036"></a>00036 };
|
||||
<h1>Sch1.cpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
|
||||
<a name="l00002"></a>00002 <span class="comment">* <Sch1.cpp></span>
|
||||
<a name="l00003"></a>00003 <span class="comment">* Copyright (C) DOLPHIN Project-Team, INRIA Futurs, 2006-2007</span>
|
||||
<a name="l00004"></a>00004 <span class="comment">* (C) OPAC Team, LIFL, 2002-2007</span>
|
||||
<a name="l00005"></a>00005 <span class="comment">*</span>
|
||||
<a name="l00006"></a>00006 <span class="comment">* Abdelhakim Deneche, Arnaud Liefooghe</span>
|
||||
<a name="l00007"></a>00007 <span class="comment">*</span>
|
||||
<a name="l00008"></a>00008 <span class="comment">* This software is governed by the CeCILL license under French law and</span>
|
||||
<a name="l00009"></a>00009 <span class="comment">* abiding by the rules of distribution of free software. You can use,</span>
|
||||
<a name="l00010"></a>00010 <span class="comment">* modify and/ or redistribute the software under the terms of the CeCILL</span>
|
||||
<a name="l00011"></a>00011 <span class="comment">* license as circulated by CEA, CNRS and INRIA at the following URL</span>
|
||||
<a name="l00012"></a>00012 <span class="comment">* "http://www.cecill.info".</span>
|
||||
<a name="l00013"></a>00013 <span class="comment">*</span>
|
||||
<a name="l00014"></a>00014 <span class="comment">* As a counterpart to the access to the source code and rights to copy,</span>
|
||||
<a name="l00015"></a>00015 <span class="comment">* modify and redistribute granted by the license, users are provided only</span>
|
||||
<a name="l00016"></a>00016 <span class="comment">* with a limited warranty and the software's author, the holder of the</span>
|
||||
<a name="l00017"></a>00017 <span class="comment">* economic rights, and the successive licensors have only limited liability.</span>
|
||||
<a name="l00018"></a>00018 <span class="comment">*</span>
|
||||
<a name="l00019"></a>00019 <span class="comment">* In this respect, the user's attention is drawn to the risks associated</span>
|
||||
<a name="l00020"></a>00020 <span class="comment">* with loading, using, modifying and/or developing or reproducing the</span>
|
||||
<a name="l00021"></a>00021 <span class="comment">* software by the user in light of its specific status of free software,</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">* that may mean that it is complicated to manipulate, and that also</span>
|
||||
<a name="l00023"></a>00023 <span class="comment">* therefore means that it is reserved for developers and experienced</span>
|
||||
<a name="l00024"></a>00024 <span class="comment">* professionals having in-depth computer knowledge. Users are therefore</span>
|
||||
<a name="l00025"></a>00025 <span class="comment">* encouraged to load and test the software's suitability as regards their</span>
|
||||
<a name="l00026"></a>00026 <span class="comment">* requirements in conditions enabling the security of their systems and/or</span>
|
||||
<a name="l00027"></a>00027 <span class="comment">* data to be ensured and, more generally, to use and operate it in the</span>
|
||||
<a name="l00028"></a>00028 <span class="comment">* same conditions as regards security.</span>
|
||||
<a name="l00029"></a>00029 <span class="comment">* The fact that you are presently reading this means that you have had</span>
|
||||
<a name="l00030"></a>00030 <span class="comment">* knowledge of the CeCILL license and that you accept its terms.</span>
|
||||
<a name="l00031"></a>00031 <span class="comment">*</span>
|
||||
<a name="l00032"></a>00032 <span class="comment">* ParadisEO WebSite : http://paradiseo.gforge.inria.fr</span>
|
||||
<a name="l00033"></a>00033 <span class="comment">* Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00034"></a>00034 <span class="comment">*</span>
|
||||
<a name="l00035"></a>00035 <span class="comment">*/</span>
|
||||
<a name="l00036"></a>00036 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038
|
||||
<a name="l00039"></a>00039 <span class="comment">// objective vector of real values</span>
|
||||
<a name="l00040"></a>00040 <span class="keyword">typedef</span> moeoRealObjectiveVector < Sch1ObjectiveVectorTraits > <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a>;
|
||||
<a name="l00041"></a>00041
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <stdio.h></span>
|
||||
<a name="l00039"></a>00039 <span class="preprocessor">#include <moeo></span>
|
||||
<a name="l00040"></a>00040 <span class="preprocessor">#include <es/eoRealInitBounded.h></span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor">#include <es/eoRealOp.h></span>
|
||||
<a name="l00042"></a>00042
|
||||
<a name="l00043"></a>00043 <span class="comment">// multi-objective evolving object for the Sch1 problem</span>
|
||||
<a name="l00044"></a><a class="code" href="classSch1.html">00044</a> <span class="keyword">class </span><a class="code" href="classSch1.html">Sch1</a> : <span class="keyword">public</span> <a class="code" href="classmoeoRealVector.html">moeoRealVector</a> < Sch1ObjectiveVector, double, double >
|
||||
<a name="l00045"></a>00045 {
|
||||
<a name="l00046"></a>00046 <span class="keyword">public</span>:
|
||||
<a name="l00047"></a><a class="code" href="classSch1.html#3ddc72f40539bfe0d5bb8d977b6655c0">00047</a> <a class="code" href="classSch1.html#3ddc72f40539bfe0d5bb8d977b6655c0">Sch1</a>() : <a class="code" href="classmoeoRealVector.html">moeoRealVector</a> < <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a>, double, double > (1) {}
|
||||
<a name="l00048"></a>00048 };
|
||||
<a name="l00049"></a>00049
|
||||
<a name="l00050"></a>00050
|
||||
<a name="l00051"></a>00051 <span class="comment">// evaluation of objective functions</span>
|
||||
<a name="l00052"></a><a class="code" href="classSch1Eval.html">00052</a> <span class="keyword">class </span><a class="code" href="classSch1Eval.html">Sch1Eval</a> : <span class="keyword">public</span> <a class="code" href="classmoeoEvalFunc.html">moeoEvalFunc</a> < Sch1 >
|
||||
<a name="l00053"></a>00053 {
|
||||
<a name="l00054"></a>00054 <span class="keyword">public</span>:
|
||||
<a name="l00055"></a><a class="code" href="classSch1Eval.html#4f806a964f7bafa9e4fcca45da458c98">00055</a> <span class="keywordtype">void</span> <a class="code" href="classSch1Eval.html#4f806a964f7bafa9e4fcca45da458c98">operator () </a>(<a class="code" href="classSch1.html">Sch1</a> & _sch1)
|
||||
<a name="l00056"></a>00056 {
|
||||
<a name="l00057"></a>00057 <span class="keywordflow">if</span> (_sch1.<a class="code" href="classMOEO.html#c8e93beabdab8c2f79f17c7e39efdd05">invalidObjectiveVector</a>())
|
||||
<a name="l00058"></a>00058 {
|
||||
<a name="l00059"></a>00059 <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a> objVec;
|
||||
<a name="l00060"></a>00060 <span class="keywordtype">double</span> x = _sch1[0];
|
||||
<a name="l00061"></a>00061 objVec[0] = x * x;
|
||||
<a name="l00062"></a>00062 objVec[1] = (x - 2.0) * (x - 2.0);
|
||||
<a name="l00063"></a>00063 _sch1.<a class="code" href="classMOEO.html#7509143b0f18644e7d3183a039cece7b">objectiveVector</a>(objVec);
|
||||
<a name="l00064"></a>00064 }
|
||||
<a name="l00065"></a>00065 }
|
||||
<a name="l00066"></a>00066 };
|
||||
<a name="l00043"></a>00043 <span class="keyword">using namespace </span>std;
|
||||
<a name="l00044"></a>00044
|
||||
<a name="l00045"></a>00045 <span class="comment">// the moeoObjectiveVectorTraits : minimizing 2 objectives</span>
|
||||
<a name="l00046"></a><a class="code" href="classSch1ObjectiveVectorTraits.html">00046</a> <span class="keyword">class </span><a class="code" href="classSch1ObjectiveVectorTraits.html">Sch1ObjectiveVectorTraits</a> : <span class="keyword">public</span> <a class="code" href="classmoeoObjectiveVectorTraits.html">moeoObjectiveVectorTraits</a>
|
||||
<a name="l00047"></a>00047 {
|
||||
<a name="l00048"></a>00048 <span class="keyword">public</span>:
|
||||
<a name="l00049"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#455ac35e419ad21c0a4ba4bbd2768ca5">00049</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#455ac35e419ad21c0a4ba4bbd2768ca5">minimizing</a> (<span class="keywordtype">int</span> i)
|
||||
<a name="l00050"></a>00050 {
|
||||
<a name="l00051"></a>00051 <span class="keywordflow">return</span> <span class="keyword">true</span>;
|
||||
<a name="l00052"></a>00052 }
|
||||
<a name="l00053"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#a7de212f3346dde550757e8a412baa4d">00053</a> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#a7de212f3346dde550757e8a412baa4d">maximizing</a> (<span class="keywordtype">int</span> i)
|
||||
<a name="l00054"></a>00054 {
|
||||
<a name="l00055"></a>00055 <span class="keywordflow">return</span> <span class="keyword">false</span>;
|
||||
<a name="l00056"></a>00056 }
|
||||
<a name="l00057"></a><a class="code" href="classSch1ObjectiveVectorTraits.html#54ae04aa8eb052223778ecae175be95b">00057</a> <span class="keyword">static</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classSch1ObjectiveVectorTraits.html#54ae04aa8eb052223778ecae175be95b">nObjectives</a> ()
|
||||
<a name="l00058"></a>00058 {
|
||||
<a name="l00059"></a>00059 <span class="keywordflow">return</span> 2;
|
||||
<a name="l00060"></a>00060 }
|
||||
<a name="l00061"></a>00061 };
|
||||
<a name="l00062"></a>00062
|
||||
<a name="l00063"></a>00063
|
||||
<a name="l00064"></a>00064 <span class="comment">// objective vector of real values</span>
|
||||
<a name="l00065"></a>00065 <span class="keyword">typedef</span> moeoRealObjectiveVector < Sch1ObjectiveVectorTraits > <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a>;
|
||||
<a name="l00066"></a>00066
|
||||
<a name="l00067"></a>00067
|
||||
<a name="l00068"></a>00068
|
||||
<a name="l00069"></a>00069 <span class="comment">// main</span>
|
||||
<a name="l00070"></a>00070 <span class="keywordtype">int</span> main (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])
|
||||
<a name="l00071"></a>00071 {
|
||||
<a name="l00072"></a>00072 <span class="comment">// parameters</span>
|
||||
<a name="l00073"></a>00073 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> POP_SIZE = 20;
|
||||
<a name="l00074"></a>00074 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MAX_GEN = 100;
|
||||
<a name="l00075"></a>00075 <span class="keywordtype">double</span> M_EPSILON = 0.01;
|
||||
<a name="l00076"></a>00076 <span class="keywordtype">double</span> P_CROSS = 0.25;
|
||||
<a name="l00077"></a>00077 <span class="keywordtype">double</span> P_MUT = 0.35;
|
||||
<a name="l00078"></a>00078
|
||||
<a name="l00079"></a>00079 <span class="comment">// objective functions evaluation</span>
|
||||
<a name="l00080"></a>00080 <a class="code" href="classSch1Eval.html">Sch1Eval</a> eval;
|
||||
<a name="l00081"></a>00081
|
||||
<a name="l00082"></a>00082 <span class="comment">// crossover and mutation</span>
|
||||
<a name="l00083"></a>00083 eoQuadCloneOp < Sch1 > xover;
|
||||
<a name="l00084"></a>00084 eoUniformMutation < Sch1 > mutation (M_EPSILON);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="comment">// generate initial population</span>
|
||||
<a name="l00087"></a>00087 <a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_real_vector_bounds.html">eoRealVectorBounds</a> bounds (1, 0.0, 2.0); <span class="comment">// [0, 2]</span>
|
||||
<a name="l00088"></a>00088 eoRealInitBounded < Sch1 > init (bounds);
|
||||
<a name="l00089"></a>00089 eoPop < Sch1 > pop (POP_SIZE, init);
|
||||
<a name="l00090"></a>00090
|
||||
<a name="l00091"></a>00091 <span class="comment">// build NSGA-II</span>
|
||||
<a name="l00092"></a>00092 moeoNSGAII < Sch1 > nsgaII (MAX_GEN, eval, xover, P_CROSS, mutation, P_MUT);
|
||||
<a name="l00068"></a>00068 <span class="comment">// multi-objective evolving object for the Sch1 problem</span>
|
||||
<a name="l00069"></a><a class="code" href="classSch1.html">00069</a> <span class="keyword">class </span><a class="code" href="classSch1.html">Sch1</a> : <span class="keyword">public</span> <a class="code" href="classmoeoRealVector.html">moeoRealVector</a> < Sch1ObjectiveVector, double, double >
|
||||
<a name="l00070"></a>00070 {
|
||||
<a name="l00071"></a>00071 <span class="keyword">public</span>:
|
||||
<a name="l00072"></a><a class="code" href="classSch1.html#3ddc72f40539bfe0d5bb8d977b6655c0">00072</a> <a class="code" href="classSch1.html#3ddc72f40539bfe0d5bb8d977b6655c0">Sch1</a>() : <a class="code" href="classmoeoRealVector.html">moeoRealVector</a> < <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a>, double, double > (1)
|
||||
<a name="l00073"></a>00073 {}
|
||||
<a name="l00074"></a>00074 };
|
||||
<a name="l00075"></a>00075
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 <span class="comment">// evaluation of objective functions</span>
|
||||
<a name="l00078"></a><a class="code" href="classSch1Eval.html">00078</a> <span class="keyword">class </span><a class="code" href="classSch1Eval.html">Sch1Eval</a> : <span class="keyword">public</span> <a class="code" href="classmoeoEvalFunc.html">moeoEvalFunc</a> < Sch1 >
|
||||
<a name="l00079"></a>00079 {
|
||||
<a name="l00080"></a>00080 <span class="keyword">public</span>:
|
||||
<a name="l00081"></a><a class="code" href="classSch1Eval.html#4f806a964f7bafa9e4fcca45da458c98">00081</a> <span class="keywordtype">void</span> <a class="code" href="classSch1Eval.html#4f806a964f7bafa9e4fcca45da458c98">operator () </a>(<a class="code" href="classSch1.html">Sch1</a> & _sch1)
|
||||
<a name="l00082"></a>00082 {
|
||||
<a name="l00083"></a>00083 <span class="keywordflow">if</span> (_sch1.<a class="code" href="classMOEO.html#c8e93beabdab8c2f79f17c7e39efdd05">invalidObjectiveVector</a>())
|
||||
<a name="l00084"></a>00084 {
|
||||
<a name="l00085"></a>00085 <a class="code" href="classmoeoRealObjectiveVector.html">Sch1ObjectiveVector</a> objVec;
|
||||
<a name="l00086"></a>00086 <span class="keywordtype">double</span> x = _sch1[0];
|
||||
<a name="l00087"></a>00087 objVec[0] = x * x;
|
||||
<a name="l00088"></a>00088 objVec[1] = (x - 2.0) * (x - 2.0);
|
||||
<a name="l00089"></a>00089 _sch1.<a class="code" href="classMOEO.html#7509143b0f18644e7d3183a039cece7b">objectiveVector</a>(objVec);
|
||||
<a name="l00090"></a>00090 }
|
||||
<a name="l00091"></a>00091 }
|
||||
<a name="l00092"></a>00092 };
|
||||
<a name="l00093"></a>00093
|
||||
<a name="l00094"></a>00094 <span class="comment">// run the algo</span>
|
||||
<a name="l00095"></a>00095 nsgaII (pop);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 <span class="comment">// extract first front of the final population using an moeoArchive (this is the output of nsgaII)</span>
|
||||
<a name="l00098"></a>00098 moeoArchive < Sch1 > arch;
|
||||
<a name="l00099"></a>00099 arch.<a class="code" href="classmoeoArchive.html#6df0acd84cab4cb53682f2e6ca850e9a">update</a> (pop);
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00095"></a>00095 <span class="comment">// main</span>
|
||||
<a name="l00096"></a>00096 <span class="keywordtype">int</span> main (<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> *argv[])
|
||||
<a name="l00097"></a>00097 {
|
||||
<a name="l00098"></a>00098 eoParser parser(argc, argv); <span class="comment">// for user-parameter reading</span>
|
||||
<a name="l00099"></a>00099 eoState state; <span class="comment">// to keep all things allocated</span>
|
||||
<a name="l00100"></a>00100
|
||||
<a name="l00101"></a>00101 <span class="comment">// printing of the final archive</span>
|
||||
<a name="l00102"></a>00102 cout << <span class="stringliteral">"Final Archive"</span> << endl;
|
||||
<a name="l00103"></a>00103 arch.<a class="codeRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_pop.html#b6572898562eebe5bab105c4475a9a64">sortedPrintOn</a> (cout);
|
||||
<a name="l00104"></a>00104 cout << endl;
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 <span class="keywordflow">return</span> EXIT_SUCCESS;
|
||||
<a name="l00107"></a>00107 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:52 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<a name="l00101"></a>00101 <span class="comment">// parameters</span>
|
||||
<a name="l00102"></a>00102 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> POP_SIZE = parser.createParam((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(100), <span class="stringliteral">"popSize"</span>, <span class="stringliteral">"Population size"</span>,<span class="charliteral">'P'</span>,<span class="stringliteral">"Param"</span>).value();
|
||||
<a name="l00103"></a>00103 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MAX_GEN = parser.createParam((<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>)(100), <span class="stringliteral">"maxGen"</span>, <span class="stringliteral">"Maximum number of generations"</span>,<span class="charliteral">'G'</span>,<span class="stringliteral">"Param"</span>).value();
|
||||
<a name="l00104"></a>00104 <span class="keywordtype">double</span> M_EPSILON = parser.createParam(0.01, <span class="stringliteral">"mutEpsilon"</span>, <span class="stringliteral">"epsilon for mutation"</span>,<span class="charliteral">'e'</span>,<span class="stringliteral">"Param"</span>).value();
|
||||
<a name="l00105"></a>00105 <span class="keywordtype">double</span> P_CROSS = parser.createParam(0.25, <span class="stringliteral">"pCross"</span>, <span class="stringliteral">"Crossover probability"</span>,<span class="charliteral">'C'</span>,<span class="stringliteral">"Param"</span>).value();
|
||||
<a name="l00106"></a>00106 <span class="keywordtype">double</span> P_MUT = parser.createParam(0.35, <span class="stringliteral">"pMut"</span>, <span class="stringliteral">"Mutation probability"</span>,<span class="charliteral">'M'</span>,<span class="stringliteral">"Param"</span>).value();
|
||||
<a name="l00107"></a>00107
|
||||
<a name="l00108"></a>00108 <span class="comment">// objective functions evaluation</span>
|
||||
<a name="l00109"></a>00109 <a class="code" href="classSch1Eval.html">Sch1Eval</a> eval;
|
||||
<a name="l00110"></a>00110
|
||||
<a name="l00111"></a>00111 <span class="comment">// crossover and mutation</span>
|
||||
<a name="l00112"></a>00112 eoQuadCloneOp < Sch1 > xover;
|
||||
<a name="l00113"></a>00113 eoUniformMutation < Sch1 > mutation (M_EPSILON);
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00115"></a>00115 <span class="comment">// generate initial population</span>
|
||||
<a name="l00116"></a>00116 eoRealVectorBounds bounds (1, 0.0, 2.0); <span class="comment">// [0, 2]</span>
|
||||
<a name="l00117"></a>00117 eoRealInitBounded < Sch1 > init (bounds);
|
||||
<a name="l00118"></a>00118 eoPop < Sch1 > pop (POP_SIZE, init);
|
||||
<a name="l00119"></a>00119
|
||||
<a name="l00120"></a>00120 <span class="comment">// build NSGA-II</span>
|
||||
<a name="l00121"></a>00121 moeoNSGAII < Sch1 > nsgaII (MAX_GEN, eval, xover, P_CROSS, mutation, P_MUT);
|
||||
<a name="l00122"></a>00122
|
||||
<a name="l00123"></a>00123 <span class="comment">// help ?</span>
|
||||
<a name="l00124"></a>00124 make_help(parser);
|
||||
<a name="l00125"></a>00125
|
||||
<a name="l00126"></a>00126 <span class="comment">// run the algo</span>
|
||||
<a name="l00127"></a>00127 nsgaII (pop);
|
||||
<a name="l00128"></a>00128
|
||||
<a name="l00129"></a>00129 <span class="comment">// extract first front of the final population using an moeoArchive (this is the output of nsgaII)</span>
|
||||
<a name="l00130"></a>00130 moeoArchive < Sch1 > arch;
|
||||
<a name="l00131"></a>00131 arch.<a class="code" href="classmoeoArchive.html#6df0acd84cab4cb53682f2e6ca850e9a">update</a> (pop);
|
||||
<a name="l00132"></a>00132
|
||||
<a name="l00133"></a>00133 <span class="comment">// printing of the final archive</span>
|
||||
<a name="l00134"></a>00134 cout << <span class="stringliteral">"Final Archive"</span> << endl;
|
||||
<a name="l00135"></a>00135 arch.sortedPrintOn (cout);
|
||||
<a name="l00136"></a>00136 cout << endl;
|
||||
<a name="l00137"></a>00137
|
||||
<a name="l00138"></a>00138 <span class="keywordflow">return</span> EXIT_SUCCESS;
|
||||
<a name="l00139"></a>00139 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: Member List</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: Member List</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<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><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -35,18 +36,11 @@
|
|||
<tr class="memlist"><td><a class="el" href="classMOEO.html#9682a883fedc6333e95906e02236d492">Diversity</a> typedef</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#c610f4636e8c26a351fcfbc25028aa01">diversity</a>() const </td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#1f0a391984cd14bcf930d1d81dd4848e">diversity</a>(const Diversity &_diversityValue)</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><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#f3219f2db76a83f25a8096d2afd61d12">EO</a>()</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#f3219f2db76a83f25a8096d2afd61d12">EO</a>()</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#03184b6c0b5c905e0ff5a790a3d55803">Fitness</a> typedef</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#c02c16902f914a6fde83a33d2c8b1534">fitness</a>() const </td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#4dc05ded73bb60d1a51e282006c8942d">fitness</a>(const Fitness &_fitnessValue)</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><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#2d88f93163bc50fe57a18627e3b776b9">EO< MOEOObjectiveVector >::fitness</a>(const Fitness &_fitness)</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#0e9eb37c82c311a6498be52c59586395">EO< MOEOObjectiveVector >::fitness</a>(performance_type perf)</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#2c8bbb894baa564cd8b38b5699321763">fitness_traits</a> typedef</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#04467a534c57168bf92c80f3d4f338de">fitnessReference</a>()</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#314df446d1a9211121cedb2629da8906">invalid</a>() const </td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#1069501a40e07071d78c067c46b696ee">invalidate</a>()</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><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#dec1d9ef4915ccd68a3b9594009af678">invalidate_worth</a>(void)</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#1283a27baab9728673445832e6d4301a">invalidateDiversity</a>()</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#55876e2e7cd537052fec1c7f46f37ffe">invalidateFitness</a>()</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#6b75e7e84726cf4e2d50216a35cec70b">invalidateObjectiveVector</a>()</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
|
|
@ -60,26 +54,11 @@
|
|||
<tr class="memlist"><td><a class="el" href="classMOEO.html#d4a765a76f9acc1bca36297ab55d7282">objectiveVector</a>(const ObjectiveVector &_objectiveVectorValue)</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classmoeoVector.html#d7a5feff640f00e5d6a29c3ebd11e90b">operator<</a>(const moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType > &_moeo) const </td><td><a class="el" href="classmoeoVector.html">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#119ef916de4955298febaf3e1c8ad705">MOEO::operator<</a>(const MOEO &_other) const </td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><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#47622fb5583b3ac0a6308c56a2727fdd">EO< MOEOObjectiveVector >::operator<</a>(const EO &_eo2) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#34f0c0dddb9ba3f666b374931713fde6">EO< MOEOObjectiveVector >::operator<</a>(const EO< Fitness, Traits > &other) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#7860c3d97a5ae50a5bf860f18fda0f02">operator></a>(const EO &_eo2) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#17dba30efbc49c4e9816814fd1328ca5">operator></a>(const EO< Fitness, Traits > &other) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#0f3a1e631c64285c966b416a4234a8ce">performance</a>(performance_type perf)</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#91573893b98cc10bfc12ff6948f39ac9">performance</a>(void) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#a3b3914123736b9bcd9066c4c7f0e463">performance_type</a> typedef</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classmoeoVector.html#d0a92cb26483ffab754ac4a0efb76308">printOn</a>(std::ostream &_os) const </td><td><a class="el" href="classmoeoVector.html">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a></td><td><code> [inline, virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classmoeoVector.html#cd8ee0fe79bb9515b29e2a4d3fee5ab9">readFrom</a>(std::istream &_is)</td><td><a class="el" href="classmoeoVector.html">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a></td><td><code> [inline, virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><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#d250965da9726a2622b4e3e7d37867b7">storage_type</a> typedef</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classmoeoVector.html#a7fadd876fe492717815510f68a921c5">value</a>(const std::vector< GeneType > &_v)</td><td><a class="el" href="classmoeoVector.html">moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType ></a></td><td><code> [inline]</code></td></tr>
|
||||
<tr class="memlist"><td><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#d4d39085735a75340c8dbbfd556f0eef">worth</a>(worth_type worth)</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#ab3c3d6204397a472d0b1c0712b3fb1a">worth</a>(void) const </td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#0ce9beaea3bf461264a67d341c66f541">worth_type</a> typedef</td><td><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< MOEOObjectiveVector ></a></td><td></td></tr>
|
||||
<tr class="memlist"><td><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#94d6a24a40dad9d98898466799e75fdf">~EO</a>()</td><td><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< MOEOObjectiveVector ></a></td><td><code> [virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_object.html#e10c6f17bfca09833245227b379dd62a">~eoObject</a>()</td><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_object.html">eoObject</a></td><td><code> [virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_persistent.html#3fbc81768adc08cc9a31a15030b114c9">~eoPersistent</a>()</td><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_persistent.html">eoPersistent</a></td><td><code> [virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_printable.html#74ffc0d020758b11f640a798d251679e">~eoPrintable</a>()</td><td><a class="elRef" doxygen="eo.doxytag:http://eodev.sourceforge.net/eo/doc/html/" href="http://eodev.sourceforge.net/eo/doc/html/classeo_printable.html">eoPrintable</a></td><td><code> [virtual]</code></td></tr>
|
||||
<tr class="memlist"><td><a class="el" href="classMOEO.html#0215e9acab4ab57088175f9856e6c48c">~MOEO</a>()</td><td><a class="el" href="classMOEO.html">MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity ></a></td><td><code> [inline, virtual]</code></td></tr>
|
||||
</table><hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:52 2007 for ParadisEO-MOEOMovingObjects by
|
||||
</table><hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<!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-MOEOMovingObjects: FlowShop Class Reference</title>
|
||||
<title>ParadisEO-MOEO-MultiObjectiveEvolvingObjects: FlowShop Class Reference</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
<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><a href="pages.html"><span>Related Pages</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
|
|
@ -36,12 +37,8 @@
|
|||
<p>Inheritance diagram for FlowShop:
|
||||
<p><center><img src="classFlowShop.png" usemap="#FlowShop_map" border="0" alt=""></center>
|
||||
<map name="FlowShop_map">
|
||||
<area href="classmoeoVector.html" alt="moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType >" shape="rect" coords="249,224,737,248">
|
||||
<area href="classMOEO.html" alt="MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >" shape="rect" coords="249,168,737,192">
|
||||
<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="249,112,737,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="0,56,488,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="498,56,986,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="498,0,986,24">
|
||||
<area href="classmoeoVector.html" alt="moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, GeneType >" shape="rect" coords="0,56,488,80">
|
||||
<area href="classMOEO.html" alt="MOEO< MOEOObjectiveVector, MOEOFitness, MOEODiversity >" shape="rect" coords="0,0,488,24">
|
||||
</map>
|
||||
<a href="classFlowShop-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td></td></tr>
|
||||
|
|
@ -56,9 +53,9 @@ Structure of the genotype for the flow-shop scheduling problem: a vector of unsi
|
|||
<p>
|
||||
|
||||
<p>
|
||||
Definition at line <a class="el" href="FlowShop_8h-source.html#l00022">22</a> of file <a class="el" href="FlowShop_8h-source.html">FlowShop.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
|
||||
Definition at line <a class="el" href="FlowShop_8h-source.html#l00047">47</a> of file <a class="el" href="FlowShop_8h-source.html">FlowShop.h</a>.<hr>The documentation for this class was generated from the following files:<ul>
|
||||
<li><a class="el" href="FlowShop_8h-source.html">FlowShop.h</a><li><a class="el" href="FlowShop_8cpp-source.html">FlowShop.cpp</a></ul>
|
||||
<hr size="1"><address style="align: right;"><small>Generated on Mon Oct 8 10:35:52 2007 for ParadisEO-MOEOMovingObjects by
|
||||
<hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 17:04:16 2008 for ParadisEO-MOEO-MultiObjectiveEvolvingObjects 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>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.4 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue