git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@141 331e1502-861f-0410-8da2-ba01fb791d7f
|
|
@ -1,358 +0,0 @@
|
|||
BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
|
||||
font-family: Geneva, Arial, Helvetica, sans-serif;
|
||||
}
|
||||
BODY,TD {
|
||||
font-size: 90%;
|
||||
}
|
||||
H1 {
|
||||
text-align: center;
|
||||
font-size: 160%;
|
||||
}
|
||||
H2 {
|
||||
font-size: 120%;
|
||||
}
|
||||
H3 {
|
||||
font-size: 100%;
|
||||
}
|
||||
CAPTION { font-weight: bold }
|
||||
DIV.qindex {
|
||||
width: 100%;
|
||||
background-color: #e8eef2;
|
||||
border: 1px solid #84b0c7;
|
||||
text-align: center;
|
||||
margin: 2px;
|
||||
padding: 2px;
|
||||
line-height: 140%;
|
||||
}
|
||||
DIV.nav {
|
||||
width: 100%;
|
||||
background-color: #e8eef2;
|
||||
border: 1px solid #84b0c7;
|
||||
text-align: center;
|
||||
margin: 2px;
|
||||
padding: 2px;
|
||||
line-height: 140%;
|
||||
}
|
||||
DIV.navtab {
|
||||
background-color: #e8eef2;
|
||||
border: 1px solid #84b0c7;
|
||||
text-align: center;
|
||||
margin: 2px;
|
||||
margin-right: 15px;
|
||||
padding: 2px;
|
||||
}
|
||||
TD.navtab {
|
||||
font-size: 70%;
|
||||
}
|
||||
A.qindex {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #1A419D;
|
||||
}
|
||||
A.qindex:visited {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #1A419D
|
||||
}
|
||||
A.qindex:hover {
|
||||
text-decoration: none;
|
||||
background-color: #ddddff;
|
||||
}
|
||||
A.qindexHL {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
background-color: #6666cc;
|
||||
color: #ffffff;
|
||||
border: 1px double #9295C2;
|
||||
}
|
||||
A.qindexHL:hover {
|
||||
text-decoration: none;
|
||||
background-color: #6666cc;
|
||||
color: #ffffff;
|
||||
}
|
||||
A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff }
|
||||
A.el { text-decoration: none; font-weight: bold }
|
||||
A.elRef { font-weight: bold }
|
||||
A.code:link { text-decoration: none; font-weight: normal; color: #0000FF}
|
||||
A.code:visited { text-decoration: none; font-weight: normal; color: #0000FF}
|
||||
A.codeRef:link { font-weight: normal; color: #0000FF}
|
||||
A.codeRef:visited { font-weight: normal; color: #0000FF}
|
||||
A:hover { text-decoration: none; background-color: #f2f2ff }
|
||||
DL.el { margin-left: -1cm }
|
||||
.fragment {
|
||||
font-family: monospace, fixed;
|
||||
font-size: 95%;
|
||||
}
|
||||
PRE.fragment {
|
||||
border: 1px solid #CCCCCC;
|
||||
background-color: #f5f5f5;
|
||||
margin-top: 4px;
|
||||
margin-bottom: 4px;
|
||||
margin-left: 2px;
|
||||
margin-right: 8px;
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 4px;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px }
|
||||
|
||||
DIV.groupHeader {
|
||||
margin-left: 16px;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 6px;
|
||||
font-weight: bold;
|
||||
}
|
||||
DIV.groupText { margin-left: 16px; font-style: italic; font-size: 90% }
|
||||
BODY {
|
||||
background: white;
|
||||
color: black;
|
||||
margin-right: 20px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
TD.indexkey {
|
||||
background-color: #e8eef2;
|
||||
font-weight: bold;
|
||||
padding-right : 10px;
|
||||
padding-top : 2px;
|
||||
padding-left : 10px;
|
||||
padding-bottom : 2px;
|
||||
margin-left : 0px;
|
||||
margin-right : 0px;
|
||||
margin-top : 2px;
|
||||
margin-bottom : 2px;
|
||||
border: 1px solid #CCCCCC;
|
||||
}
|
||||
TD.indexvalue {
|
||||
background-color: #e8eef2;
|
||||
font-style: italic;
|
||||
padding-right : 10px;
|
||||
padding-top : 2px;
|
||||
padding-left : 10px;
|
||||
padding-bottom : 2px;
|
||||
margin-left : 0px;
|
||||
margin-right : 0px;
|
||||
margin-top : 2px;
|
||||
margin-bottom : 2px;
|
||||
border: 1px solid #CCCCCC;
|
||||
}
|
||||
TR.memlist {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
P.formulaDsp { text-align: center; }
|
||||
IMG.formulaDsp { }
|
||||
IMG.formulaInl { vertical-align: middle; }
|
||||
SPAN.keyword { color: #008000 }
|
||||
SPAN.keywordtype { color: #604020 }
|
||||
SPAN.keywordflow { color: #e08000 }
|
||||
SPAN.comment { color: #800000 }
|
||||
SPAN.preprocessor { color: #806020 }
|
||||
SPAN.stringliteral { color: #002080 }
|
||||
SPAN.charliteral { color: #008080 }
|
||||
.mdescLeft {
|
||||
padding: 0px 8px 4px 8px;
|
||||
font-size: 80%;
|
||||
font-style: italic;
|
||||
background-color: #FAFAFA;
|
||||
border-top: 1px none #E0E0E0;
|
||||
border-right: 1px none #E0E0E0;
|
||||
border-bottom: 1px none #E0E0E0;
|
||||
border-left: 1px none #E0E0E0;
|
||||
margin: 0px;
|
||||
}
|
||||
.mdescRight {
|
||||
padding: 0px 8px 4px 8px;
|
||||
font-size: 80%;
|
||||
font-style: italic;
|
||||
background-color: #FAFAFA;
|
||||
border-top: 1px none #E0E0E0;
|
||||
border-right: 1px none #E0E0E0;
|
||||
border-bottom: 1px none #E0E0E0;
|
||||
border-left: 1px none #E0E0E0;
|
||||
margin: 0px;
|
||||
}
|
||||
.memItemLeft {
|
||||
padding: 1px 0px 0px 8px;
|
||||
margin: 4px;
|
||||
border-top-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 1px;
|
||||
border-top-color: #E0E0E0;
|
||||
border-right-color: #E0E0E0;
|
||||
border-bottom-color: #E0E0E0;
|
||||
border-left-color: #E0E0E0;
|
||||
border-top-style: solid;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
border-left-style: none;
|
||||
background-color: #FAFAFA;
|
||||
font-size: 80%;
|
||||
}
|
||||
.memItemRight {
|
||||
padding: 1px 8px 0px 8px;
|
||||
margin: 4px;
|
||||
border-top-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 1px;
|
||||
border-top-color: #E0E0E0;
|
||||
border-right-color: #E0E0E0;
|
||||
border-bottom-color: #E0E0E0;
|
||||
border-left-color: #E0E0E0;
|
||||
border-top-style: solid;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
border-left-style: none;
|
||||
background-color: #FAFAFA;
|
||||
font-size: 80%;
|
||||
}
|
||||
.memTemplItemLeft {
|
||||
padding: 1px 0px 0px 8px;
|
||||
margin: 4px;
|
||||
border-top-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 1px;
|
||||
border-top-color: #E0E0E0;
|
||||
border-right-color: #E0E0E0;
|
||||
border-bottom-color: #E0E0E0;
|
||||
border-left-color: #E0E0E0;
|
||||
border-top-style: none;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
border-left-style: none;
|
||||
background-color: #FAFAFA;
|
||||
font-size: 80%;
|
||||
}
|
||||
.memTemplItemRight {
|
||||
padding: 1px 8px 0px 8px;
|
||||
margin: 4px;
|
||||
border-top-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 1px;
|
||||
border-top-color: #E0E0E0;
|
||||
border-right-color: #E0E0E0;
|
||||
border-bottom-color: #E0E0E0;
|
||||
border-left-color: #E0E0E0;
|
||||
border-top-style: none;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
border-left-style: none;
|
||||
background-color: #FAFAFA;
|
||||
font-size: 80%;
|
||||
}
|
||||
.memTemplParams {
|
||||
padding: 1px 0px 0px 8px;
|
||||
margin: 4px;
|
||||
border-top-width: 1px;
|
||||
border-right-width: 1px;
|
||||
border-bottom-width: 1px;
|
||||
border-left-width: 1px;
|
||||
border-top-color: #E0E0E0;
|
||||
border-right-color: #E0E0E0;
|
||||
border-bottom-color: #E0E0E0;
|
||||
border-left-color: #E0E0E0;
|
||||
border-top-style: solid;
|
||||
border-right-style: none;
|
||||
border-bottom-style: none;
|
||||
border-left-style: none;
|
||||
color: #606060;
|
||||
background-color: #FAFAFA;
|
||||
font-size: 80%;
|
||||
}
|
||||
.search { color: #003399;
|
||||
font-weight: bold;
|
||||
}
|
||||
FORM.search {
|
||||
margin-bottom: 0px;
|
||||
margin-top: 0px;
|
||||
}
|
||||
INPUT.search { font-size: 75%;
|
||||
color: #000080;
|
||||
font-weight: normal;
|
||||
background-color: #e8eef2;
|
||||
}
|
||||
TD.tiny { font-size: 75%;
|
||||
}
|
||||
a {
|
||||
color: #1A41A8;
|
||||
}
|
||||
a:visited {
|
||||
color: #2A3798;
|
||||
}
|
||||
.dirtab { padding: 4px;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #84b0c7;
|
||||
}
|
||||
TH.dirtab { background: #e8eef2;
|
||||
font-weight: bold;
|
||||
}
|
||||
HR { height: 1px;
|
||||
border: none;
|
||||
border-top: 1px solid black;
|
||||
}
|
||||
|
||||
/* Style for detailed member documentation */
|
||||
.memtemplate {
|
||||
font-size: 80%;
|
||||
color: #606060;
|
||||
font-weight: normal;
|
||||
}
|
||||
.memnav {
|
||||
background-color: #e8eef2;
|
||||
border: 1px solid #84b0c7;
|
||||
text-align: center;
|
||||
margin: 2px;
|
||||
margin-right: 15px;
|
||||
padding: 2px;
|
||||
}
|
||||
.memitem {
|
||||
padding: 4px;
|
||||
background-color: #eef3f5;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #dedeee;
|
||||
-moz-border-radius: 8px 8px 8px 8px;
|
||||
}
|
||||
.memname {
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
}
|
||||
.memdoc{
|
||||
padding-left: 10px;
|
||||
}
|
||||
.memproto {
|
||||
background-color: #d5e1e8;
|
||||
width: 100%;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #84b0c7;
|
||||
font-weight: bold;
|
||||
-moz-border-radius: 8px 8px 8px 8px;
|
||||
}
|
||||
.paramkey {
|
||||
text-align: right;
|
||||
}
|
||||
.paramtype {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.paramname {
|
||||
color: #602020;
|
||||
font-style: italic;
|
||||
}
|
||||
/* End Styling for detailed member documentation */
|
||||
|
||||
/* for the tree view */
|
||||
.ftvtree {
|
||||
font-family: sans-serif;
|
||||
margin:0.5em;
|
||||
}
|
||||
.directory { font-size: 9pt; font-weight: bold; }
|
||||
.directory h3 { margin: 0px; margin-top: 1em; font-size: 11pt; }
|
||||
.directory > h3 { margin-top: 0; }
|
||||
.directory p { margin: 0px; white-space: nowrap; }
|
||||
.directory div { display: none; margin: 0px; }
|
||||
.directory img { vertical-align: -30%; }
|
||||
|
||||
|
Before Width: | Height: | Size: 1.3 KiB |
|
|
@ -1,30 +0,0 @@
|
|||
<!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-PEO Lesson2: File Index</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.4.7 -->
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><label> <u>S</u>earch for </label></td>
|
||||
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>ParadisEO-PEO Lesson2 File List</h1>Here is a list of all documented files with brief descriptions:<table>
|
||||
<tr><td class="indexkey"><b>main.cpp</b> <a href="main_8cpp-source.html">[code]</a></td><td class="indexvalue"></td></tr>
|
||||
</table>
|
||||
<hr size="1"><address style="align: right;"><small>Generated on Sun Jan 7 18:35:29 2007 for ParadisEO-PEO Lesson2 by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
Before Width: | Height: | Size: 174 B |
|
Before Width: | Height: | Size: 255 B |
|
Before Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 261 B |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 160 B |
|
Before Width: | Height: | Size: 194 B |
|
Before Width: | Height: | Size: 235 B |
|
Before Width: | Height: | Size: 165 B |
|
Before Width: | Height: | Size: 200 B |
|
Before Width: | Height: | Size: 229 B |
|
|
@ -1,8 +0,0 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>ParadisEO-PEO Lesson2</title></head>
|
||||
<frameset cols="250,*">
|
||||
<frame src="tree.html" name="treefrm">
|
||||
<frame src="main.html" name="basefrm">
|
||||
</frameset>
|
||||
</html>
|
||||
|
|
@ -1,117 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
%subst = ( "eo.doxytag", "", "mo.doxytag", "", "paradiseo-peo.doxytag", "", "paradiseo-peo-lsn-shared.doxytag", "");
|
||||
$quiet = 0;
|
||||
|
||||
if (open(F,"search.cfg"))
|
||||
{
|
||||
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_doc"} = $_;
|
||||
$_=<F> ; s/[ \t\n]*$//g ; $subst{"_cgi"} = $_;
|
||||
}
|
||||
|
||||
while ( @ARGV ) {
|
||||
$_ = shift @ARGV;
|
||||
if ( s/^-// ) {
|
||||
if ( /^l(.*)/ ) {
|
||||
$v = ($1 eq "") ? shift @ARGV : $1;
|
||||
($v =~ /\/$/) || ($v .= "/");
|
||||
$_ = $v;
|
||||
if ( /(.+)\@(.+)/ ) {
|
||||
if ( exists $subst{$1} ) {
|
||||
$subst{$1} = $2;
|
||||
} else {
|
||||
print STDERR "Unknown tag file $1 given with option -l\n";
|
||||
&usage();
|
||||
}
|
||||
} else {
|
||||
print STDERR "Argument $_ is invalid for option -l\n";
|
||||
&usage();
|
||||
}
|
||||
}
|
||||
elsif ( /^q/ ) {
|
||||
$quiet = 1;
|
||||
}
|
||||
elsif ( /^\?|^h/ ) {
|
||||
&usage();
|
||||
}
|
||||
else {
|
||||
print STDERR "Illegal option -$_\n";
|
||||
&usage();
|
||||
}
|
||||
}
|
||||
else {
|
||||
push (@files, $_ );
|
||||
}
|
||||
}
|
||||
|
||||
foreach $sub (keys %subst)
|
||||
{
|
||||
if ( $subst{$sub} eq "" )
|
||||
{
|
||||
print STDERR "No substitute given for tag file `$sub'\n";
|
||||
&usage();
|
||||
}
|
||||
elsif ( ! $quiet && $sub ne "_doc" && $sub ne "_cgi" )
|
||||
{
|
||||
print "Substituting $subst{$sub} for each occurence of tag file $sub\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! @files ) {
|
||||
if (opendir(D,".")) {
|
||||
foreach $file ( readdir(D) ) {
|
||||
$match = ".html";
|
||||
next if ( $file =~ /^\.\.?$/ );
|
||||
($file =~ /$match/) && (push @files, $file);
|
||||
($file =~ "tree.js") && (push @files, $file);
|
||||
}
|
||||
closedir(D);
|
||||
}
|
||||
}
|
||||
|
||||
if ( ! @files ) {
|
||||
print STDERR "Warning: No input files given and none found!\n";
|
||||
}
|
||||
|
||||
foreach $f (@files)
|
||||
{
|
||||
if ( ! $quiet ) {
|
||||
print "Editing: $f...\n";
|
||||
}
|
||||
$oldf = $f;
|
||||
$f .= ".bak";
|
||||
unless (rename $oldf,$f) {
|
||||
print STDERR "Error: cannot rename file $oldf\n";
|
||||
exit 1;
|
||||
}
|
||||
if (open(F,"<$f")) {
|
||||
unless (open(G,">$oldf")) {
|
||||
print STDERR "Error: opening file $oldf for writing\n";
|
||||
exit 1;
|
||||
}
|
||||
if ($oldf ne "tree.js") {
|
||||
while (<F>) {
|
||||
s/doxygen\=\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\" (href|src)=\"\2/doxygen\=\"$1:$subst{$1}\" \3=\"$subst{$1}/g;
|
||||
print G "$_";
|
||||
}
|
||||
}
|
||||
else {
|
||||
while (<F>) {
|
||||
s/\"([^ \"\:\t\>\<]*)\:([^ \"\t\>\<]*)\", \"\2/\"$1:$subst{$1}\" ,\"$subst{$1}/g;
|
||||
print G "$_";
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
print STDERR "Warning file $f does not exist\n";
|
||||
}
|
||||
unlink $f;
|
||||
}
|
||||
|
||||
sub usage {
|
||||
print STDERR "Usage: installdox [options] [html-file [html-file ...]]\n";
|
||||
print STDERR "Options:\n";
|
||||
print STDERR " -l tagfile\@linkName tag file + URL or directory \n";
|
||||
print STDERR " -q Quiet mode\n\n";
|
||||
exit 1;
|
||||
}
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
<!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-PEO Lesson2: Main Page</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.4.7 -->
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li id="current"><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li><a href="files.html"><span>Files</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><label> <u>S</u>earch for </label></td>
|
||||
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>ParadisEO-PEO Lesson2 Documentation</h1>
|
||||
<p>
|
||||
<h3 align="center">0.1 </h3><hr size="1"><address style="align: right;"><small>Generated on Sun Jan 7 18:35:29 2007 for ParadisEO-PEO Lesson2 by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,198 +0,0 @@
|
|||
<!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-PEO Lesson2: main.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.4.7 -->
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<li><a href="main.html"><span>Main Page</span></a></li>
|
||||
<li id="current"><a href="files.html"><span>Files</span></a></li>
|
||||
<li>
|
||||
<form action="search.php" method="get">
|
||||
<table cellspacing="0" cellpadding="0" border="0">
|
||||
<tr>
|
||||
<td><label> <u>S</u>earch for </label></td>
|
||||
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</li>
|
||||
</ul></div>
|
||||
<h1>main.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">// "main_ga.cpp"</span>
|
||||
<a name="l00004"></a>00004
|
||||
<a name="l00005"></a>00005 <span class="comment">// (c) OPAC Team, LIFL, January 2006</span>
|
||||
<a name="l00006"></a>00006
|
||||
<a name="l00007"></a>00007 <span class="comment">/* This library is free software; you can redistribute it and/or</span>
|
||||
<a name="l00008"></a>00008 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
|
||||
<a name="l00009"></a>00009 <span class="comment"> License as published by the Free Software Foundation; either</span>
|
||||
<a name="l00010"></a>00010 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
|
||||
<a name="l00011"></a>00011 <span class="comment"> </span>
|
||||
<a name="l00012"></a>00012 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
|
||||
<a name="l00013"></a>00013 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
|
||||
<a name="l00014"></a>00014 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
|
||||
<a name="l00015"></a>00015 <span class="comment"> Lesser General Public License for more details.</span>
|
||||
<a name="l00016"></a>00016 <span class="comment"> </span>
|
||||
<a name="l00017"></a>00017 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
|
||||
<a name="l00018"></a>00018 <span class="comment"> License along with this library; if not, write to the Free Software</span>
|
||||
<a name="l00019"></a>00019 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
|
||||
<a name="l00020"></a>00020 <span class="comment"> </span>
|
||||
<a name="l00021"></a>00021 <span class="comment"> Contact: paradiseo-help@lists.gforge.inria.fr</span>
|
||||
<a name="l00022"></a>00022 <span class="comment">*/</span>
|
||||
<a name="l00023"></a>00023
|
||||
<a name="l00024"></a>00024 <span class="preprocessor">#include "param.h"</span>
|
||||
<a name="l00025"></a>00025 <span class="preprocessor">#include "route_init.h"</span>
|
||||
<a name="l00026"></a>00026 <span class="preprocessor">#include "route_eval.h"</span>
|
||||
<a name="l00027"></a>00027
|
||||
<a name="l00028"></a>00028 <span class="preprocessor">#include "order_xover.h"</span>
|
||||
<a name="l00029"></a>00029 <span class="preprocessor">#include "edge_xover.h"</span>
|
||||
<a name="l00030"></a>00030 <span class="preprocessor">#include "partial_mapped_xover.h"</span>
|
||||
<a name="l00031"></a>00031 <span class="preprocessor">#include "city_swap.h"</span>
|
||||
<a name="l00032"></a>00032 <span class="preprocessor">#include "part_route_eval.h"</span>
|
||||
<a name="l00033"></a>00033 <span class="preprocessor">#include "merge_route_eval.h"</span>
|
||||
<a name="l00034"></a>00034 <span class="preprocessor">#include "two_opt_init.h"</span>
|
||||
<a name="l00035"></a>00035 <span class="preprocessor">#include "two_opt_next.h"</span>
|
||||
<a name="l00036"></a>00036 <span class="preprocessor">#include "two_opt_incr_eval.h"</span>
|
||||
<a name="l00037"></a>00037
|
||||
<a name="l00038"></a>00038 <span class="preprocessor">#include <paradiseo></span>
|
||||
<a name="l00039"></a>00039
|
||||
<a name="l00040"></a>00040 <span class="preprocessor">#define POP_SIZE 10</span>
|
||||
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#define NUM_GEN 100</span>
|
||||
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define CROSS_RATE 1.0</span>
|
||||
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#define MUT_RATE 0.01</span>
|
||||
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define NUM_PART_EVALS 2</span>
|
||||
<a name="l00045"></a>00045 <span class="preprocessor"></span>
|
||||
<a name="l00046"></a>00046 <span class="preprocessor">#define MIG_FREQ 10</span>
|
||||
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#define MIG_SIZE 10</span>
|
||||
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#define HYBRID_SIZE 3</span>
|
||||
<a name="l00049"></a>00049 <span class="preprocessor"></span>
|
||||
<a name="l00050"></a>00050 <span class="keywordtype">int</span> main (<span class="keywordtype">int</span> __argc, <span class="keywordtype">char</span> * * __argv) {
|
||||
<a name="l00051"></a>00051
|
||||
<a name="l00052"></a>00052 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#8184c3b1f7eecc68f69bb8e8b872a7d3">peo :: init</a> (__argc, __argv);
|
||||
<a name="l00053"></a>00053
|
||||
<a name="l00054"></a>00054 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#2b496ee9b81d9ae322ae6edb9a93dc71">loadParameters</a> (__argc, __argv); <span class="comment">/* Processing some parameters relative to the tackled</span>
|
||||
<a name="l00055"></a>00055 <span class="comment"> problem (TSP) */</span>
|
||||
<a name="l00056"></a>00056
|
||||
<a name="l00057"></a>00057 RouteInit route_init; <span class="comment">/* Its builds random routes */</span>
|
||||
<a name="l00058"></a>00058 RouteEval full_eval; <span class="comment">/* Full route evaluator */</span>
|
||||
<a name="l00059"></a>00059
|
||||
<a name="l00060"></a>00060 MergeRouteEval merge_eval;
|
||||
<a name="l00061"></a>00061
|
||||
<a name="l00062"></a>00062 std :: vector <eoEvalFunc <Route> *> part_eval;
|
||||
<a name="l00063"></a>00063 <span class="keywordflow">for</span> (<span class="keywordtype">unsigned</span> i = 1 ; i <= NUM_PART_EVALS ; i ++)
|
||||
<a name="l00064"></a>00064 part_eval.push_back (<span class="keyword">new</span> PartRouteEval ((<span class="keywordtype">float</span>) (i - 1) / NUM_PART_EVALS, (<span class="keywordtype">float</span>) i / NUM_PART_EVALS));
|
||||
<a name="l00065"></a>00065
|
||||
<a name="l00066"></a>00066 OrderXover order_cross; <span class="comment">/* Recombination */</span>
|
||||
<a name="l00067"></a>00067 PartialMappedXover pm_cross;
|
||||
<a name="l00068"></a>00068 EdgeXover edge_cross;
|
||||
<a name="l00069"></a>00069 CitySwap city_swap_mut; <span class="comment">/* Mutation */</span>
|
||||
<a name="l00070"></a>00070
|
||||
<a name="l00071"></a>00071 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//classRingTopology.html">RingTopology</a> topo;
|
||||
<a name="l00072"></a>00072
|
||||
<a name="l00075"></a>00075 eoPop <Route> ox_pop (POP_SIZE, route_init); <span class="comment">/* Population */</span>
|
||||
<a name="l00076"></a>00076
|
||||
<a name="l00077"></a>00077 eoGenContinue <Route> ox_cont (NUM_GEN); <span class="comment">/* A fixed number of iterations */</span>
|
||||
<a name="l00078"></a>00078 eoCheckPoint <Route> ox_checkpoint (ox_cont); <span class="comment">/* Checkpoint */</span>
|
||||
<a name="l00079"></a>00079 peoParaPopEval <Route> ox_pop_eval (part_eval, merge_eval);
|
||||
<a name="l00080"></a>00080 eoStochTournamentSelect <Route> ox_select_one;
|
||||
<a name="l00081"></a>00081 eoSelectNumber <Route> ox_select (ox_select_one, POP_SIZE);
|
||||
<a name="l00082"></a>00082 eoSGATransform <Route> ox_transform (order_cross, CROSS_RATE, city_swap_mut, MUT_RATE);
|
||||
<a name="l00083"></a>00083 peoSeqTransform <Route> ox_para_transform (ox_transform);
|
||||
<a name="l00084"></a>00084 eoEPReplacement <Route> ox_replace (2);
|
||||
<a name="l00085"></a>00085
|
||||
<a name="l00086"></a>00086 <span class="comment">/* The migration policy */</span>
|
||||
<a name="l00087"></a>00087 eoPeriodicContinue <Route> ox_mig_cont (MIG_FREQ); <span class="comment">/* Migration occurs periodically */</span>
|
||||
<a name="l00088"></a>00088 eoRandomSelect <Route> ox_mig_select_one; <span class="comment">/* Emigrants are randomly selected */</span>
|
||||
<a name="l00089"></a>00089 eoSelectNumber <Route> ox_mig_select (ox_mig_select_one, MIG_SIZE);
|
||||
<a name="l00090"></a>00090 eoPlusReplacement <Route> ox_mig_replace; <span class="comment">/* Immigrants replace the worse individuals */</span>
|
||||
<a name="l00091"></a>00091
|
||||
<a name="l00092"></a>00092 peoAsyncIslandMig <Route> ox_mig (ox_mig_cont, ox_mig_select, ox_mig_replace, topo, ox_pop, ox_pop);
|
||||
<a name="l00093"></a>00093 <span class="comment">//peoSyncIslandMig <Route> ox_mig (MIG_FREQ, ox_mig_select, ox_mig_replace, topo, ox_pop, ox_pop);</span>
|
||||
<a name="l00094"></a>00094
|
||||
<a name="l00095"></a>00095 ox_checkpoint.add (ox_mig);
|
||||
<a name="l00096"></a>00096
|
||||
<a name="l00097"></a>00097 peoEA <Route> ox_ea (ox_checkpoint, ox_pop_eval, ox_select, ox_para_transform, ox_replace);
|
||||
<a name="l00098"></a>00098 ox_mig.setOwner (ox_ea);
|
||||
<a name="l00099"></a>00099
|
||||
<a name="l00100"></a>00100 ox_ea (ox_pop); <span class="comment">/* Application to the given population */</span>
|
||||
<a name="l00101"></a>00101
|
||||
<a name="l00104"></a>00104 eoPop <Route> pmx_pop (POP_SIZE, route_init); <span class="comment">/* Population */</span>
|
||||
<a name="l00105"></a>00105
|
||||
<a name="l00106"></a>00106 eoGenContinue <Route> pmx_cont (NUM_GEN); <span class="comment">/* A fixed number of iterations */</span>
|
||||
<a name="l00107"></a>00107 eoCheckPoint <Route> pmx_checkpoint (pmx_cont); <span class="comment">/* Checkpoint */</span>
|
||||
<a name="l00108"></a>00108 peoSeqPopEval <Route> pmx_pop_eval (full_eval);
|
||||
<a name="l00109"></a>00109 eoRankingSelect <Route> pmx_select_one;
|
||||
<a name="l00110"></a>00110 eoSelectNumber <Route> pmx_select (pmx_select_one, POP_SIZE);
|
||||
<a name="l00111"></a>00111 eoSGATransform <Route> pmx_transform (pm_cross, CROSS_RATE, city_swap_mut, MUT_RATE);
|
||||
<a name="l00112"></a>00112 peoSeqTransform <Route> pmx_para_transform (pmx_transform);
|
||||
<a name="l00113"></a>00113 eoPlusReplacement <Route> pmx_replace;
|
||||
<a name="l00114"></a>00114
|
||||
<a name="l00115"></a>00115 <span class="comment">/* The migration policy */</span>
|
||||
<a name="l00116"></a>00116 eoPeriodicContinue <Route> pmx_mig_cont (MIG_FREQ); <span class="comment">/* Migration occurs periodically */</span>
|
||||
<a name="l00117"></a>00117 eoRandomSelect <Route> pmx_mig_select_one; <span class="comment">/* Emigrants are randomly selected */</span>
|
||||
<a name="l00118"></a>00118 eoSelectNumber <Route> pmx_mig_select (pmx_mig_select_one, MIG_SIZE);
|
||||
<a name="l00119"></a>00119 eoPlusReplacement <Route> pmx_mig_replace; <span class="comment">/* Immigrants replace the worse individuals */</span>
|
||||
<a name="l00120"></a>00120 peoAsyncIslandMig <Route> pmx_mig (pmx_mig_cont, pmx_mig_select, pmx_mig_replace, topo, pmx_pop, pmx_pop);
|
||||
<a name="l00121"></a>00121 <span class="comment">//peoSyncIslandMig <Route> pmx_mig (MIG_FREQ, pmx_mig_select, pmx_mig_replace, topo, pmx_pop, pmx_pop);</span>
|
||||
<a name="l00122"></a>00122 pmx_checkpoint.add (pmx_mig);
|
||||
<a name="l00123"></a>00123
|
||||
<a name="l00124"></a>00124 <span class="comment">/* Hybridization with a Local Search */</span>
|
||||
<a name="l00125"></a>00125 TwoOptInit pmx_two_opt_init;
|
||||
<a name="l00126"></a>00126 TwoOptNext pmx_two_opt_next;
|
||||
<a name="l00127"></a>00127 TwoOptIncrEval pmx_two_opt_incr_eval;
|
||||
<a name="l00128"></a>00128 moBestImprSelect <TwoOpt> pmx_two_opt_move_select;
|
||||
<a name="l00129"></a>00129 moHC <TwoOpt> hc (pmx_two_opt_init, pmx_two_opt_next, pmx_two_opt_incr_eval, pmx_two_opt_move_select, full_eval);
|
||||
<a name="l00130"></a>00130
|
||||
<a name="l00131"></a>00131 eoPeriodicContinue <Route> pmx_ls_cont (MIG_FREQ); <span class="comment">/* Hybridization occurs periodically */</span>
|
||||
<a name="l00132"></a>00132 eoRandomSelect <Route> pmx_ls_select_one; <span class="comment">/* ? */</span>
|
||||
<a name="l00133"></a>00133 eoSelectNumber <Route> pmx_ls_select (pmx_ls_select_one, HYBRID_SIZE);
|
||||
<a name="l00134"></a>00134 eoPlusReplacement <Route> pmx_ls_replace;
|
||||
<a name="l00135"></a>00135
|
||||
<a name="l00136"></a>00136 peoSyncMultiStart <Route> pmx_ls (pmx_ls_cont, pmx_ls_select, pmx_ls_replace, hc, pmx_pop);
|
||||
<a name="l00137"></a>00137 pmx_checkpoint.add (pmx_ls);
|
||||
<a name="l00138"></a>00138
|
||||
<a name="l00139"></a>00139 peoEA <Route> pmx_ea (pmx_checkpoint, pmx_pop_eval, pmx_select, pmx_para_transform, pmx_replace);
|
||||
<a name="l00140"></a>00140 pmx_mig.setOwner (pmx_ea);
|
||||
<a name="l00141"></a>00141 pmx_ls.setOwner (pmx_ea);
|
||||
<a name="l00142"></a>00142
|
||||
<a name="l00143"></a>00143 pmx_ea (pmx_pop); <span class="comment">/* Application to the given population */</span>
|
||||
<a name="l00144"></a>00144
|
||||
<a name="l00147"></a>00147 eoPop <Route> edge_pop (POP_SIZE, route_init); <span class="comment">/* Population */</span>
|
||||
<a name="l00148"></a>00148
|
||||
<a name="l00149"></a>00149 eoGenContinue <Route> edge_cont (NUM_GEN); <span class="comment">/* A fixed number of iterations */</span>
|
||||
<a name="l00150"></a>00150 eoCheckPoint <Route> edge_checkpoint (edge_cont); <span class="comment">/* Checkpoint */</span>
|
||||
<a name="l00151"></a>00151 peoSeqPopEval <Route> edge_pop_eval (full_eval);
|
||||
<a name="l00152"></a>00152 eoRankingSelect <Route> edge_select_one;
|
||||
<a name="l00153"></a>00153 eoSelectNumber <Route> edge_select (edge_select_one, POP_SIZE);
|
||||
<a name="l00154"></a>00154 peoParaSGATransform <Route> edge_para_transform (edge_cross, CROSS_RATE, city_swap_mut, MUT_RATE);
|
||||
<a name="l00155"></a>00155 eoPlusReplacement <Route> edge_replace;
|
||||
<a name="l00156"></a>00156
|
||||
<a name="l00157"></a>00157 <span class="comment">/* The migration policy */</span>
|
||||
<a name="l00158"></a>00158 eoPeriodicContinue <Route> edge_mig_cont (MIG_FREQ); <span class="comment">/* Migration occurs periodically */</span>
|
||||
<a name="l00159"></a>00159 eoRandomSelect <Route> edge_mig_select_one; <span class="comment">/* Emigrants are randomly selected */</span>
|
||||
<a name="l00160"></a>00160 eoSelectNumber <Route> edge_mig_select (edge_mig_select_one, MIG_SIZE);
|
||||
<a name="l00161"></a>00161 eoPlusReplacement <Route> edge_mig_replace; <span class="comment">/* Immigrants replace the worse individuals */</span>
|
||||
<a name="l00162"></a>00162 peoAsyncIslandMig <Route> edge_mig (edge_mig_cont, edge_mig_select, edge_mig_replace, topo, edge_pop, edge_pop);
|
||||
<a name="l00163"></a>00163 <span class="comment">//peoSyncIslandMig <Route> edge_mig (MIG_FREQ, edge_mig_select, edge_mig_replace, topo, edge_pop, edge_pop);</span>
|
||||
<a name="l00164"></a>00164 edge_checkpoint.add (edge_mig);
|
||||
<a name="l00165"></a>00165
|
||||
<a name="l00166"></a>00166 peoEA <Route> edge_ea (edge_checkpoint, edge_pop_eval, edge_select, edge_para_transform, edge_replace);
|
||||
<a name="l00167"></a>00167
|
||||
<a name="l00168"></a>00168 edge_mig.setOwner (edge_ea);
|
||||
<a name="l00169"></a>00169
|
||||
<a name="l00170"></a>00170 edge_ea (edge_pop); <span class="comment">/* Application to the given population */</span>
|
||||
<a name="l00171"></a>00171
|
||||
<a name="l00172"></a>00172 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#10819b2d60b37477c6a89b60c595c67c">peo :: run</a> ();
|
||||
<a name="l00173"></a>00173
|
||||
<a name="l00174"></a>00174 <a class="codeRef" doxygen="paradiseo-peo.doxytag:../..//" href="../..//namespacepeo.html#f90478489cc92d1e6abb222179163a30">peo :: finalize</a> (); <span class="comment">/* Termination */</span>
|
||||
<a name="l00175"></a>00175
|
||||
<a name="l00176"></a>00176 <span class="keywordflow">return</span> 0;
|
||||
<a name="l00177"></a>00177 }
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Jan 7 18:35:29 2007 for ParadisEO-PEO Lesson2 by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
|
||||
</body>
|
||||
</html>
|
||||