📄 initializationfile.htm
字号:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Genetic Programming FAQ</title>
</head>
<body>
<div id="nsbanner">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td>
<div id="bannerrow1">
<table class="bannerparthead" cellSpacing="0">
<tr id="hdr">
<td class="runninghead" style="font-size: 70%">
<font face="Arial"><a class="show" id="design_toggle" title="Show or hide design notes" href="../../index.html"><img src="../../Images/Icons/G.png" width="14" height="14" border="0" align="middle"/></a> Genetic Programming Engine FAQ</font></td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1" style="font-size: 85%; left: 5px; position: relative">
<span style="font-family:Arial">An Example Environment Initialization File</span></h1>
</div>
</td>
<td vAlign="top" align="right">
<font face="Arial">
<img src="../../Images/Icons/GP_blue.png" width="191" height="39"></font></td>
</tr>
</table>
</div>
<div id="nstext">
<div align="center">
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="left"><font face="Arial">
Environment initialization files are unique to each <b>IEnvironment</b>. A
simple environment initialization file for the Artificial Ant is shown
below. It is an XML file that specifies the grid for the Ant
IEnvironment. The XML files specifies cells that contain food, the
initial position of the Ant, and the maximum amount of steps the Ant can
take. A pictorial representation of this environment is shown below.
The red square is the initial Ant position, the beige<font color="#FFE3BD">
</font>circles are cells that contain food, and the white squares are
empty cells.</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="left"> </p>
<table border="0" width="90%" id="table1">
<tr>
<td>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Courier New" size="2"><?xml version="1.0"
encoding="utf-8"?><br>
<Grid width="5" height="5" name="Small Grid"><br>
<AntPosition x="0" y="0"/><br>
<StepLimit value="12"/><br>
<br>
<Cell x="1" y="1" type="food"/><br>
<Cell x="1" y="2" type="food"/><br>
<Cell x="1" y="3" type="food"/><br>
<Cell x="2" y="1" type="food"/><br>
<Cell x="2" y="3" type="food"/><br>
<Cell x="3" y="1" type="food"/><br>
<Cell x="3" y="2" type="food"/><br>
<Cell x="3" y="3" type="food"/><br>
</Grid></font></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<div align="center">
<table border="0" width="90%" id="table2">
<tr>
<td>
<p align="center">
<img border="0" src="Initia1.jpg" align="left" width="290" height="294"></td>
</tr>
</table>
</div>
</div>
<h4 class="dtH4"> </h4>
<h4 class="dtH4"><font face="Arial">See Also</font></h4>
<p><font face="Arial"><a href="Environment.htm">IEnvironment</a></font></p>
<hr>
<div id="footer">
<font face="Arial">
<a href="http://www.opensource.org/" target="_top">
<img style="padding-bottom: 5px" src="http://opensource.org/trademarks/open_source_button.png" align="left" border="0"></a>
This software licensed under the
<a href="http://opensource.org/licenses/afl-2.1.php" target="_top">Academic
Free License version 2.1</a>. (<a href="../../afl-2.1.txt">Plain
text</a>)</font></div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -