|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | | -<model version="NetLogo 7.0.0-beta0" snapToGrid="true"> |
| 2 | +<model version="NetLogo 7.0.0-beta1" snapToGrid="true"> |
3 | 3 | <code><![CDATA[patches-own |
4 | 4 | [ |
5 | 5 | val ; each patch has a "fitness" value associated with it |
@@ -155,28 +155,28 @@ end |
155 | 155 | ; Copyright 2008 Uri Wilensky. |
156 | 156 | ; See Info tab for full copyright and license.]]></code> |
157 | 157 | <widgets> |
158 | | - <view x="265" wrappingAllowedX="true" y="10" frameRate="30.0" minPycor="-100" height="406" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="406" tickCounterLabel="ticks" maxPycor="100" updateMode="1" maxPxcor="100" minPxcor="-100"></view> |
159 | | - <button x="175" y="95" height="33" disableUntilTicks="false" forever="false" kind="Observer" width="80" sizeVersion="0">setup</button> |
160 | | - <button x="175" y="175" height="33" disableUntilTicks="true" forever="true" kind="Observer" width="80" sizeVersion="0">go</button> |
161 | | - <slider x="10" step="1" y="50" max="100" display="population-size" height="33" min="1" direction="Horizontal" default="50.0" variable="population-size" width="215" sizeVersion="0"></slider> |
162 | | - <slider x="10" step="0.1" y="220" max="2" display="attraction-to-personal-best" height="33" min="0" direction="Horizontal" default="2.0" variable="attraction-to-personal-best" width="215" sizeVersion="0"></slider> |
163 | | - <slider x="10" step="0.1" y="260" max="2" display="attraction-to-global-best" height="33" min="0" direction="Horizontal" default="1.0" variable="attraction-to-global-best" width="215" sizeVersion="0"></slider> |
164 | | - <slider x="10" step="0.01" y="140" max="1.0" display="particle-inertia" height="33" min="0" direction="Horizontal" default="0.98" variable="particle-inertia" width="155" sizeVersion="0"></slider> |
165 | | - <button x="175" y="135" height="33" disableUntilTicks="true" forever="false" kind="Observer" display="step" width="80" sizeVersion="0">go</button> |
166 | | - <chooser x="130" y="395" height="45" variable="trails-mode" current="0" display="trails-mode" width="95" sizeVersion="0"> |
167 | | - <choice type="string" value="None"></choice> |
168 | | - <choice type="string" value="Tails"></choice> |
169 | | - <choice type="string" value="Traces"></choice> |
170 | | - </chooser> |
171 | | - <slider x="10" step="1" y="180" max="20" display="particle-speed-limit" height="33" min="1" direction="Horizontal" default="10.0" variable="particle-speed-limit" width="155" sizeVersion="0"></slider> |
172 | | - <chooser x="20" y="395" height="45" variable="highlight-mode" current="0" display="highlight-mode" width="105" sizeVersion="0"> |
| 158 | + <view x="360" wrappingAllowedX="true" y="7" frameRate="30.0" minPycor="-100" height="406" showTickCounter="true" patchSize="2.0" fontSize="10" wrappingAllowedY="true" width="406" tickCounterLabel="ticks" maxPycor="100" updateMode="1" maxPxcor="100" minPxcor="-100"></view> |
| 159 | + <slider x="10" step="1" y="10" max="100" width="250" display="landscape-smoothness" height="50" min="0" direction="Horizontal" default="20.0" variable="landscape-smoothness"></slider> |
| 160 | + <slider x="10" step="1" y="65" max="100" width="250" display="population-size" height="50" min="1" direction="Horizontal" default="50.0" variable="population-size"></slider> |
| 161 | + <slider x="10" step="0.01" y="120" max="1.0" width="250" display="particle-inertia" height="50" min="0" direction="Horizontal" default="0.98" variable="particle-inertia"></slider> |
| 162 | + <slider x="10" step="1" y="175" max="20" width="250" display="particle-speed-limit" height="50" min="1" direction="Horizontal" default="10.0" variable="particle-speed-limit"></slider> |
| 163 | + <slider x="10" step="0.1" y="230" max="2" width="250" display="attraction-to-personal-best" height="50" min="0" direction="Horizontal" default="2.0" variable="attraction-to-personal-best"></slider> |
| 164 | + <slider x="10" step="0.1" y="285" max="2" width="250" display="attraction-to-global-best" height="50" min="0" direction="Horizontal" default="1.0" variable="attraction-to-global-best"></slider> |
| 165 | + <monitor x="80" precision="4" y="345" height="60" fontSize="11" width="112" display="best-value-found">global-best-val</monitor> |
| 166 | + <note x="65" y="410" backgroundDark="0" fontSize="14" width="165" markdown="false" height="18" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Visualization Options</note> |
| 167 | + <chooser x="10" y="430" height="60" variable="highlight-mode" current="0" width="250" display="highlight-mode"> |
173 | 168 | <choice type="string" value="None"></choice> |
174 | 169 | <choice type="string" value="Best found"></choice> |
175 | 170 | <choice type="string" value="True best"></choice> |
176 | 171 | </chooser> |
177 | | - <monitor x="65" precision="4" y="305" height="45" fontSize="11" display="best-value-found" width="112" sizeVersion="0">global-best-val</monitor> |
178 | | - <slider x="10" step="1" y="10" max="100" display="landscape-smoothness" height="33" min="0" direction="Horizontal" default="20.0" variable="landscape-smoothness" width="215" sizeVersion="0"></slider> |
179 | | - <note x="50" y="370" height="18" backgroundDark="0" fontSize="14" width="165" markdown="false" textColorLight="-16777216" backgroundLight="0">Visualization Options</note> |
| 172 | + <chooser x="265" y="430" height="60" variable="trails-mode" current="0" width="250" display="trails-mode"> |
| 173 | + <choice type="string" value="None"></choice> |
| 174 | + <choice type="string" value="Tails"></choice> |
| 175 | + <choice type="string" value="Traces"></choice> |
| 176 | + </chooser> |
| 177 | + <button x="270" y="155" height="35" disableUntilTicks="true" forever="false" kind="Observer" width="80" display="step">go</button> |
| 178 | + <button x="270" y="115" height="35" disableUntilTicks="false" forever="false" kind="Observer" width="80">setup</button> |
| 179 | + <button x="270" y="195" height="35" disableUntilTicks="true" forever="true" kind="Observer" width="80">go</button> |
180 | 180 | </widgets> |
181 | 181 | <info><![CDATA[## WHAT IS IT? |
182 | 182 |
|
|
0 commit comments