<?xml version="1.0" encoding="utf-8"?>
<model version="NetLogo 7.0.4" snapToGrid="false">
  <code><![CDATA[globals
[
  profit-mean

  ; failure-min
  ; failure-max

  ; num-investors

  time-horizon

  ; sense-radius
  ; use-sense-radius?

  ; max-ticks

  patch-color-mode ; 0 = profit, 1 = p-failure

  file-is-open?

  g-mean-wealth
  g-max-utility

  n-hplr
  n-hphr
  n-lplr
  n-lphr
  n-same
  mv-hplr
  mv-hphr
  mv-lplr
  mv-lphr
  moves
]

turtles-own
[
  wealth ; wealth, in dollars
]

patches-own
[
  profit     ; annual profit (dollars)
  p-failure  ; annual probabilty of failure (0 to 1)
]

to setup
  ca

  initialize-globals
  initialize-patches

  crt num-investors
  [
    initialize-turtle
  ]

  set g-mean-wealth mean [wealth] of turtles
  color-turtles

  reset-ticks
end

to go
  color-patches

  ask turtles
  [
    move
  ]

  ask turtles
  [
    update-wealth
  ]

  set g-mean-wealth mean [wealth] of turtles
  set g-max-utility max [expected-utility nobody] of patches

  color-turtles

  set-current-plot-pen "mean"
  plot mean-wealth
  set-current-plot-pen "sigma"
  plot stdev-wealth

  tick

  if ticks >= max-ticks
  [
    output-print (word "Total wealth: " precision total-wealth 2)
    output-print (word "Mean wealth: " precision mean-wealth 2)
    stop
  ]
end

;
;  INITIALIZATION ROUTINES
;
;

to initialize-globals
  ; set num-investors 100
  set profit-mean 5000
  ; set failure-min 0.01
  ; set failure-max 0.1
  set n-hplr 0
  set n-hphr 0
  set n-lplr 0
  set n-lphr 0
  set n-same 0
  set mv-hplr 0
  set mv-hphr 0
  set mv-lplr 0
  set mv-lphr 0
  set moves 0


  if failure-min > failure-max
  [
    user-message "ERROR: failure-min must be less than or equal to failure-max"
    set failure-max failure-min
  ]

  set time-horizon 5 ; years


  set g-mean-wealth 0
  set g-max-utility (profit-mean * time-horizon) * (1 - failure-min) ^ time-horizon

  ; set sense-radius 1
  ; set use-sense-radius? false

  ; set max-ticks 25

  set-default-shape turtles "circle"
end

to initialize-patches
  ask patches
  [
    set profit random-exponential profit-mean
    set p-failure failure-min + random-float (failure-max - failure-min)
  ]
  set g-max-utility max [expected-utility nobody] of patches
  color-patches
end

to initialize-turtle
  move-to one-of patches with [ not any? turtles-here ]
  set wealth 0
  set size 0.8
  color-turtle 1.0
end

;
;  TURTLE PROCESSING
;
;

to update-wealth ; turtle procedure
  set wealth wealth + profit
  if random-float 1.0 < p-failure [  set wealth 0 ]
end

to move
  let bp find-best-patch
  if [profit] of bp > profit and [p-failure] of bp < p-failure [ set n-hplr n-hplr + 1 ]
  if [profit] of bp > profit and [p-failure] of bp > p-failure [ set n-hphr n-hphr + 1 ]
  if [profit] of bp < profit and [p-failure] of bp < p-failure [ set n-lplr n-lplr + 1 ]
  if [profit] of bp < profit and [p-failure] of bp > p-failure [ set n-lphr n-lphr + 1 ]
  if bp = patch-here [ set n-same n-same + 1 ]
  set moves moves + 1
  move-to bp
end

to-report expected-utility [a-turtle]; patch reporter
  ifelse a-turtle = nobody
  [
    report (g-mean-wealth + time-horizon * profit) * (1.0 - p-failure) ^ time-horizon
  ]
  [
    report ([wealth] of a-turtle + time-horizon * profit) * (1.0 - p-failure) ^ time-horizon
  ]
end


to-report find-best-patch ; turtle reporter
  let candidates neighbors with [ not any? turtles-here ]

  let alt-hi-profit-lo-risk candidates with [
    (profit > [profit] of myself) and (p-failure < [p-failure] of myself) ]
  let alt-hi-profit-hi-risk candidates with [
    (profit > [profit] of myself) and (p-failure > [p-failure] of myself) ]
  let alt-lo-profit-lo-risk candidates with [
    (profit < [profit] of myself) and (p-failure < [p-failure] of myself) ]
  let alt-lo-profit-hi-risk candidates with [
    (profit < [profit] of myself) and (p-failure > [p-failure] of myself) ]


    let best-candidate patch-here

    let all-candidates (patch-set candidates patch-here)

    if any? alt-hi-profit-lo-risk [ set mv-hplr mv-hplr + 1]
    if any? alt-hi-profit-hi-risk [ set mv-hphr mv-hphr + 1]
    if any? alt-lo-profit-lo-risk [ set mv-lplr mv-lplr + 1]
    if any? alt-lo-profit-hi-risk [ set mv-lphr mv-lphr + 1]

    ifelse stochastic?
    [
      ifelse any? alt-hi-profit-lo-risk  and (random-bernoulli (p-high-profit-low-risk / 100))
        [ set best-candidate one-of alt-hi-profit-lo-risk ]
        [
          ifelse any? alt-hi-profit-hi-risk and (random-bernoulli (p-high-profit-high-risk / 100))
          [ set best-candidate one-of alt-hi-profit-hi-risk ]
          [
            ifelse any? alt-lo-profit-lo-risk and (random-bernoulli (p-low-profit-low-risk / 100))
            [ set best-candidate one-of alt-lo-profit-lo-risk ]
            [
              if any? alt-lo-profit-hi-risk and (random-bernoulli (p-low-profit-high-risk / 100))
              [ set best-candidate one-of alt-lo-profit-hi-risk ]
            ]
          ]
        ]
    ]
    [
      set best-candidate max-one-of all-candidates [expected-utility myself]
    ]

    report best-candidate
end

;
;  OBSERVER REPORTERS
;
;

to-report total-wealth ; observer reporter
  report sum [wealth] of turtles
end

to-report mean-wealth ; observer reporter
  report mean [wealth] of turtles
end

to-report stdev-wealth ; observer reporter
  report standard-deviation [wealth] of turtles
end

;
;
;  COLORING ROUTINES
;
;

to color-patches
  ;ifelse patch-color-mode = 1
  ifelse color-patches-by = "profit"
  [
    let min-profit 0
    let max-profit max [profit] of patches
    ask patches
    [
      set pcolor scale-color blue profit min-profit max-profit
    ]
  ]
  [
    ifelse color-patches-by = "p-failure"
    [
      ask patches
      [
        ifelse (failure-min < failure-max) and (failure-min > 0)
        [
          set pcolor scale-color red (ln p-failure) (ln failure-max) (ln failure-min)
        ]
        [
          set pcolor scale-color red (p-failure) 1 0
        ]
      ]
    ]
    [
      ask patches
      [
        set pcolor scale-color magenta (expected-utility nobody) 0 g-max-utility
      ]
    ]
  ]
end

to color-turtle [max-wealth]
  ifelse turtle-coloring-mode = "wealth"
  [
    ifelse max-wealth > 0
    [
      set color scale-color green wealth 0 max-wealth
    ]
    [
      set color black
    ]
  ]
  [
    set color red
  ]
end

to color-turtles
  let max-wealth max [wealth] of turtles
  ask turtles
    [
      color-turtle max-wealth
    ]
end

to-report random-bernoulli [p]
  if p < 0 or p > 1 [
    user-message (word
      "Warning in random-bernoulli: p = " p)
  ]
  report random-float 1.0 < p
end

to-report p-hplr
  if mv-hplr > 0
  [ report n-hplr / mv-hplr ]
  report 0
end

to-report p-lplr
  if mv-lplr > 0
  [ report n-lplr / mv-lplr ]
  report 0
end

to-report p-hphr
  if mv-hphr > 0
  [ report n-hphr / mv-hphr ]
  report 0
end

to-report p-lphr
  if mv-lphr > 0
  [ report n-lphr / mv-lphr ]
  report 0
end

to-report p-same
  if moves > 0
  [ report n-same / moves ]
  report 0
end

to-report pct-format [x n-places]
  report word (precision (100 * x) n-places) "%"
end


to get-percentages
  let runs 0
  let n  [ 0 0 0 0 0 ]
  let mv [ 0 0 0 0 0 ]
  let p  [ 0 0 0 0 0 ]
  let total-w (list)
  let mean-w (list)
  repeat 1000 [
    setup
    set runs runs + 1
    while [ticks < max-ticks] [ go ]
    set total-w lput (sum [wealth] of turtles) total-w
    set mean-w lput (mean [wealth] of turtles) mean-w
    set n  (map + n   (list  n-hplr  n-hphr  n-lplr  n-lphr n-same))
    set mv (map + mv  (list mv-hplr mv-hphr mv-lplr mv-lphr  moves))
    type word runs " "
    if (runs mod 50) = 0 [print ""]
  ]
  set n-hplr item 0 n
  set n-hphr item 1 n
  set n-lplr item 2 n
  set n-lphr item 3 n
  set n-same item 4 n

  set mv-hplr item 0 mv
  set mv-hphr item 1 mv
  set mv-lplr item 2 mv
  set mv-lphr item 3 mv
  set moves   item 4 mv

  set p (map / n mv)
  set p (map [x -> precision (100 * x) 2] p)
  show n
  show mv
  show p
  output-print (word "Total wealth = " precision mean(total-w) 2)
  output-print (word "Mean wealth = " precision mean(mean-w) 2)
  set p-high-profit-low-risk  precision (item 0 p) 1
  set p-high-profit-high-risk precision (item 1 p) 1
  set p-low-profit-low-risk   precision (item 2 p) 1
  set p-low-profit-high-risk  precision (item 3 p) 1
end]]></code>
  <widgets>
    <view x="211" wrappingAllowedX="false" y="10" frameRate="30.0" minPycor="0" height="574" showTickCounter="true" patchSize="30.0" fontSize="10" wrappingAllowedY="false" width="574" tickCounterLabel="ticks" maxPycor="18" updateMode="1" maxPxcor="18" minPxcor="0"></view>
    <button x="13" y="27" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="64" display="Setup">setup</button>
    <button x="14" y="75" height="40" disableUntilTicks="false" forever="true" kind="Observer" width="63" display="Go">go</button>
    <plot x="798" autoPlotX="true" yMax="10.0" autoPlotY="true" yAxis="wealth (dollars)" y="10" xMin="0.0" height="494" legend="true" xMax="25.0" yMin="0.0" width="687" xAxis="ticks" display="Mean  wealth">
      <setup></setup>
      <update></update>
      <pen interval="1.0" mode="0" display="mean" color="-16777216" legend="true">
        <setup></setup>
        <update></update>
      </pen>
      <pen interval="1.0" mode="0" display="sigma" color="-13791810" legend="true">
        <setup></setup>
        <update></update>
      </pen>
    </plot>
    <output x="797" y="509" height="119" fontSize="12" width="301"></output>
    <slider x="14" step="1" y="396" max="500" width="172" display="max-ticks" height="50" min="0" direction="Horizontal" default="25.0" variable="max-ticks"></slider>
    <slider x="14" step="1" y="451" max="381" width="172" display="num-investors" height="50" min="0" direction="Horizontal" default="25.0" variable="num-investors"></slider>
    <slider x="14" step="0.01" y="506" max="1" width="172" display="failure-min" height="50" min="0" direction="Horizontal" default="0.01" variable="failure-min"></slider>
    <slider x="14" step="0.01" y="561" max="1" width="172" display="failure-max" height="50" min="0" direction="Horizontal" default="0.1" variable="failure-max"></slider>
    <button x="87" y="76" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="63" display="Step">go</button>
    <switch x="15" y="130" height="40" on="true" variable="stochastic?" width="117" display="stochastic?"></switch>
    <slider x="13" step="0.1" y="175" max="100" width="186" display="p-high-profit-low-risk" height="50" min="0" direction="Horizontal" default="83.4" variable="p-high-profit-low-risk" units="%"></slider>
    <slider x="12" step="0.1" y="230" max="100" width="187" display="p-high-profit-high-risk" height="50" min="0" direction="Horizontal" default="5.4" variable="p-high-profit-high-risk" units="%"></slider>
    <slider x="12" step="0.2" y="285" max="100" width="186" display="p-low-profit-low-risk" height="50" min="0" direction="Horizontal" default="4.9" variable="p-low-profit-low-risk" units="%"></slider>
    <slider x="13" step="1" y="340" max="100" width="186" display="p-low-profit-high-risk" height="50" min="0" direction="Horizontal" default="0.0" variable="p-low-profit-high-risk" units="%"></slider>
    <button x="80" y="27" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="111" display="Default values">set p-high-profit-low-risk 83.4
set p-high-profit-high-risk 5.4
set p-low-profit-low-risk 4.9
set p-low-profit-high-risk 0</button>
    <monitor x="1169" precision="1" y="513" height="60" fontSize="11" width="100" display="P hp lr">pct-format p-hplr 1</monitor>
    <monitor x="1275" precision="1" y="512" height="60" fontSize="11" width="100" display="P hp hr">pct-format p-hphr 1</monitor>
    <monitor x="1382" precision="1" y="511" height="60" fontSize="11" width="100" display="P lp lr">pct-format p-lplr 1</monitor>
    <monitor x="1491" precision="1" y="495" height="60" fontSize="11" width="100" display="P lp hr">pct-format p-lphr 1</monitor>
    <monitor x="1599" precision="1" y="495" height="60" fontSize="11" width="100" display="P same">pct-format p-same 1</monitor>
    <chooser x="474" y="595" height="60" variable="turtle-coloring-mode" current="0" width="138" display="turtle-coloring-mode">
      <choice type="string" value="wealth"></choice>
      <choice type="string" value="red"></choice>
    </chooser>
    <chooser x="325" y="595" height="60" variable="color-patches-by" current="2" width="138" display="color-patches-by">
      <choice type="string" value="profit"></choice>
      <choice type="string" value="p-failure"></choice>
      <choice type="string" value="exp utility"></choice>
    </chooser>
    <button x="211" y="595" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="106" display="Redraw">color-patches
color-turtles</button>
  </widgets>
  <info><![CDATA[# Business Investor Model


# A Business Investor Model

We demonstrate the sensing concept via a simple business model. In fields dealing with people and organizations, other terms such as "information acquisition" might be more intuitive than "sensing," but the concept is the same: when building an ABM we need to decide, and then program, exactly what information our agents have and where they get it.

This model simulates how people decide which business to invest in, when the alternative businesses they choose from differ in their annual profit and in their risk of failing such that the investors lose all their wealth. These business alternatives are modeled as NetLogo patches, a use of patches to represent something other than geographic space. In the first version, investors (modeled as turtles) are assumed to sense financial information only from neighbor patches; in a second version we will add links among turtles and simulate sensing through a network. As exercises, we will explore how different assumptions about sensing affect the results of this model. (In later chapters we will explore the effects of other assumptions, especially the way investors make trade-offs between profit and risk.)

## Purpose

The primary purpose of this model is to explore effects of "sensing"---what information agents have and how they obtain it---on emergent outcomes of a model in which agents make adaptive decisions using sensed information. The model uses investment decisions as an example, but is not intended to represent any real investment approach or business sector. (In fact, you will see by the end of Chapter 12 that models like this one that are designed mainly to explore the system-level effects of sensing and other concepts can produce very different results depending on exactly how those concepts are implemented. What can we learn from such models if their results depend on what seem like details? In part III of this course we will learn to solve this problem by tying models more closely to real systems.)

This model could be thought of as approximately representing people who buy and operate local businesses: it assumes investors are familiar with investment opportunities within a limited range of their own experience, and that there is no cost of entering or switching investments (e.g., as if capital to buy a business is borrowed and the repayment is included in the annual profit calculation).

## Entities, state variables and scales

The entities in this model are investor agents (turtles) and business alternatives (patches) that vary in profit and risk. The investors have state variables for their location in the space and for their current wealth (*W*, in money units).

The landscape is a grid of business patches, which each have two static variables: the annual net profit the business there provides (*P*, in money units such as dollars per year), and the annual risk of the business there failing and its investor losing all its wealth (*F*, as probability per year). This landscape is *19 &times; 19* patches in size with no wrapping at its edges.

The model time step is one year, and simulations run for 25 years.

## Process overview and scheduling

The model includes the following actions that are executed in this order each time step.

* *Investor repositioning.* The investors decide whether any similar business (adjacent patch) offers a better trade-off of profit and risk; if so, they "reposition" and transfer their investment to that patch, by moving there. Only one investor can occupy a patch at a time. The agents execute this repositioning action in randomized order.

* *Accounting.* The investors update their wealth state variable. *W* is set equal to the previous wealth plus the profit of the agent's current patch. However, unexpected failure of the business is also included in the accounting action. This event is a stochastic function of F at the investor's patch. If a uniform random number between zero and one is less than *F*, then the business fails: the investor's *W* is set to zero, but the investor stays in the model and nothing else about it changes.

* *Output.* The World display, plots, and an output file are updated.

## Design concepts

### Basic principles

The basic topic of this model is how agents make decisions involving trade-offs between several objectives—here, increasing profit and decreasing risk.

### Emergence

The model's primary output is mean investor wealth, over time. Important secondary outputs are the mean profit and risk chosen by investors over time, and the number of investors who have suffered a failure. These outputs emerge from how individual investors make their trade-offs between profit and risk, but also from the "business climate": the ranges of *P* and *F* values among patches and the number of investors competing for locations on the landscape.

### Adaptation

The adaptive behavior of investor agents is their decision of which neighboring business to move to (or whether to stay put), considering the profit and risk of these alternatives. Each time step, investors can reposition to any unoccupied one of their adjacent patches, or retain their current position. In this version of the model, investors use a simplified microeconomic analysis to make their decision, moving to the patch providing highest value of an objective function.

### Objectives

In economics, the term "utility" is used for the objective that agents seek. Investors rate business alternatives by a utility measure that represents their expected future wealth at the end of a time horizon (*T*, a number of future years; we use 5). This expected future wealth is a function of their current wealth and the profit and failure risk offered by the patch:

U = (W + T P) (1 - F)<sup>T</sup>

where *U* is expected utility for the patch, *W* is the investor's current wealth, and *P* and *F* are defined above. The term *(W + T P)* estimates investor wealth at the end of the time horizon if no failures occur. The term *(1 - F)<sup>T</sup>* is the probability of not having a failure over the time horizon; it reduces utility more as failure risk increases. (Economists might expect to use a utility measure such as present value that includes a discount rate to reduce the value of future profit. We ignore discounting to keep this model simple.)

### Learning

There is no learning.

### Prediction

The utility measure estimates utility over a time horizon by using the explicit prediction that *P* and *F* will remain constant over the time horizon. This assumption is accurate here because the patches’ *P* and *F* values are static.

### Sensing

The investor agents are assumed to know the profit and risk at their own patch and the adjacent neighbor patches, without error.

### Interaction

The investors interact with each other only indirectly via competition for patches; an investor cannot take over a business (move into a patch) that is already occupied by another investor. Investors execute their repositioning action in randomized order, so there is no hierarchy in this competition: investors with higher wealth have no advantage over others in competing for locations.

### Stochasticity

The initial state of the model is stochastic: the values of *P* and *F* of each patch, and initial investor locations, are set randomly. Stochasticity is thus used to simulate an investment environment where alternatives are highly variable and risk is not correlated with profit. Whether each investor fails each year is also stochastic, a simple way to represent risk. The investor reposition action uses stochasticity only in the very unlikely event that more than one potential destination patch offers the same highest utility; when there is such a tie the agent randomly chooses one of the tied patches to move to.

### Collectives

There are no collectives.

### Observation

The World display shows the location of each agent on the investment landscape. Graphs show the mean profit and risk experienced by investors, and mean investor wealth over time. An output file reports the state of each investor at each time step.

## Initialization

Four model parameters are used to initialize the investment landscape. These define the minimum and maximum values of *P* (1000 and 10,000) and *F* (0.01 and 0.1). The values of *P* and *F* for each patch are drawn randomly from uniform real number distributions with these minimum and maximum values.

One hundred investor agents are initialized and put in random patches, but investors cannot be placed in a patch already occupied by another investor. Their wealth state variable *W* is initialized to zero.

## Input data

No time-series inputs are used.

## Submodels

* *Investor repositioning.* An agent identifies all the businesses that it could invest in; the neighboring (eight, or fewer if on the edge of the space) patches that are unoccupied, plus its current patch. The agent then determines which of these alternatives provides the highest value of the utility function, and moves (or stays) there.

* *Accounting.* This action is fully described above ("Process overview and scheduling").]]></info>
  <turtleShapes>
    <shape name="default" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="5"></point>
        <point x="40" y="250"></point>
        <point x="150" y="205"></point>
        <point x="260" y="250"></point>
      </polygon>
    </shape>
    <shape name="airplane" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="0"></point>
        <point x="135" y="15"></point>
        <point x="120" y="60"></point>
        <point x="120" y="105"></point>
        <point x="15" y="165"></point>
        <point x="15" y="195"></point>
        <point x="120" y="180"></point>
        <point x="135" y="240"></point>
        <point x="105" y="270"></point>
        <point x="120" y="285"></point>
        <point x="150" y="270"></point>
        <point x="180" y="285"></point>
        <point x="210" y="270"></point>
        <point x="165" y="240"></point>
        <point x="180" y="180"></point>
        <point x="285" y="195"></point>
        <point x="285" y="165"></point>
        <point x="180" y="105"></point>
        <point x="180" y="60"></point>
        <point x="165" y="15"></point>
      </polygon>
    </shape>
    <shape name="arrow" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="0"></point>
        <point x="0" y="150"></point>
        <point x="105" y="150"></point>
        <point x="105" y="293"></point>
        <point x="195" y="293"></point>
        <point x="195" y="150"></point>
        <point x="300" y="150"></point>
      </polygon>
    </shape>
    <shape name="box" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="285"></point>
        <point x="285" y="225"></point>
        <point x="285" y="75"></point>
        <point x="150" y="135"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="135"></point>
        <point x="15" y="75"></point>
        <point x="150" y="15"></point>
        <point x="285" y="75"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="15" y="75"></point>
        <point x="15" y="225"></point>
        <point x="150" y="285"></point>
        <point x="150" y="135"></point>
      </polygon>
      <line endX="150" startY="285" marked="false" color="255" endY="135" startX="150"></line>
      <line endX="15" startY="135" marked="false" color="255" endY="75" startX="150"></line>
      <line endX="285" startY="135" marked="false" color="255" endY="75" startX="150"></line>
    </shape>
    <shape name="bug" rotatable="true" editableColorIndex="0">
      <circle x="96" y="182" marked="true" color="-1920102913" diameter="108" filled="true"></circle>
      <circle x="110" y="127" marked="true" color="-1920102913" diameter="80" filled="true"></circle>
      <circle x="110" y="75" marked="true" color="-1920102913" diameter="80" filled="true"></circle>
      <line endX="80" startY="100" marked="true" color="-1920102913" endY="30" startX="150"></line>
      <line endX="220" startY="100" marked="true" color="-1920102913" endY="30" startX="150"></line>
    </shape>
    <shape name="butterfly" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="165"></point>
        <point x="209" y="199"></point>
        <point x="225" y="225"></point>
        <point x="225" y="255"></point>
        <point x="195" y="270"></point>
        <point x="165" y="255"></point>
        <point x="150" y="240"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="165"></point>
        <point x="89" y="198"></point>
        <point x="75" y="225"></point>
        <point x="75" y="255"></point>
        <point x="105" y="270"></point>
        <point x="135" y="255"></point>
        <point x="150" y="240"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="139" y="148"></point>
        <point x="100" y="105"></point>
        <point x="55" y="90"></point>
        <point x="25" y="90"></point>
        <point x="10" y="105"></point>
        <point x="10" y="135"></point>
        <point x="25" y="180"></point>
        <point x="40" y="195"></point>
        <point x="85" y="194"></point>
        <point x="139" y="163"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="162" y="150"></point>
        <point x="200" y="105"></point>
        <point x="245" y="90"></point>
        <point x="275" y="90"></point>
        <point x="290" y="105"></point>
        <point x="290" y="135"></point>
        <point x="275" y="180"></point>
        <point x="260" y="195"></point>
        <point x="215" y="195"></point>
        <point x="162" y="165"></point>
      </polygon>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="255"></point>
        <point x="135" y="225"></point>
        <point x="120" y="150"></point>
        <point x="135" y="120"></point>
        <point x="150" y="105"></point>
        <point x="165" y="120"></point>
        <point x="180" y="150"></point>
        <point x="165" y="225"></point>
      </polygon>
      <circle x="135" y="90" marked="false" color="255" diameter="30" filled="true"></circle>
      <line endX="195" startY="105" marked="false" color="255" endY="60" startX="150"></line>
      <line endX="105" startY="105" marked="false" color="255" endY="60" startX="150"></line>
    </shape>
    <shape name="car" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="300" y="180"></point>
        <point x="279" y="164"></point>
        <point x="261" y="144"></point>
        <point x="240" y="135"></point>
        <point x="226" y="132"></point>
        <point x="213" y="106"></point>
        <point x="203" y="84"></point>
        <point x="185" y="63"></point>
        <point x="159" y="50"></point>
        <point x="135" y="50"></point>
        <point x="75" y="60"></point>
        <point x="0" y="150"></point>
        <point x="0" y="165"></point>
        <point x="0" y="225"></point>
        <point x="300" y="225"></point>
        <point x="300" y="180"></point>
      </polygon>
      <circle x="180" y="180" marked="false" color="255" diameter="90" filled="true"></circle>
      <circle x="30" y="180" marked="false" color="255" diameter="90" filled="true"></circle>
      <polygon color="255" filled="true" marked="false">
        <point x="162" y="80"></point>
        <point x="132" y="78"></point>
        <point x="134" y="135"></point>
        <point x="209" y="135"></point>
        <point x="194" y="105"></point>
        <point x="189" y="96"></point>
        <point x="180" y="89"></point>
      </polygon>
      <circle x="47" y="195" marked="true" color="-1920102913" diameter="58" filled="true"></circle>
      <circle x="195" y="195" marked="true" color="-1920102913" diameter="58" filled="true"></circle>
    </shape>
    <shape name="circle" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"></circle>
    </shape>
    <shape name="circle 2" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"></circle>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"></circle>
    </shape>
    <shape name="cow" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="200" y="193"></point>
        <point x="197" y="249"></point>
        <point x="179" y="249"></point>
        <point x="177" y="196"></point>
        <point x="166" y="187"></point>
        <point x="140" y="189"></point>
        <point x="93" y="191"></point>
        <point x="78" y="179"></point>
        <point x="72" y="211"></point>
        <point x="49" y="209"></point>
        <point x="48" y="181"></point>
        <point x="37" y="149"></point>
        <point x="25" y="120"></point>
        <point x="25" y="89"></point>
        <point x="45" y="72"></point>
        <point x="103" y="84"></point>
        <point x="179" y="75"></point>
        <point x="198" y="76"></point>
        <point x="252" y="64"></point>
        <point x="272" y="81"></point>
        <point x="293" y="103"></point>
        <point x="285" y="121"></point>
        <point x="255" y="121"></point>
        <point x="242" y="118"></point>
        <point x="224" y="167"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="73" y="210"></point>
        <point x="86" y="251"></point>
        <point x="62" y="249"></point>
        <point x="48" y="208"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="25" y="114"></point>
        <point x="16" y="195"></point>
        <point x="9" y="204"></point>
        <point x="23" y="213"></point>
        <point x="25" y="200"></point>
        <point x="39" y="123"></point>
      </polygon>
    </shape>
    <shape name="cylinder" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"></circle>
    </shape>
    <shape name="dot" rotatable="false" editableColorIndex="0">
      <circle x="90" y="90" marked="true" color="-1920102913" diameter="120" filled="true"></circle>
    </shape>
    <shape name="face happy" rotatable="false" editableColorIndex="0">
      <circle x="8" y="8" marked="true" color="-1920102913" diameter="285" filled="true"></circle>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="255"></point>
        <point x="90" y="239"></point>
        <point x="62" y="213"></point>
        <point x="47" y="191"></point>
        <point x="67" y="179"></point>
        <point x="90" y="203"></point>
        <point x="109" y="218"></point>
        <point x="150" y="225"></point>
        <point x="192" y="218"></point>
        <point x="210" y="203"></point>
        <point x="227" y="181"></point>
        <point x="251" y="194"></point>
        <point x="236" y="217"></point>
        <point x="212" y="240"></point>
      </polygon>
    </shape>
    <shape name="face neutral" rotatable="false" editableColorIndex="0">
      <circle x="8" y="7" marked="true" color="-1920102913" diameter="285" filled="true"></circle>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <rectangle endX="240" startY="195" marked="false" color="255" endY="225" startX="60" filled="true"></rectangle>
    </shape>
    <shape name="face sad" rotatable="false" editableColorIndex="0">
      <circle x="8" y="8" marked="true" color="-1920102913" diameter="285" filled="true"></circle>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"></circle>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="168"></point>
        <point x="90" y="184"></point>
        <point x="62" y="210"></point>
        <point x="47" y="232"></point>
        <point x="67" y="244"></point>
        <point x="90" y="220"></point>
        <point x="109" y="205"></point>
        <point x="150" y="198"></point>
        <point x="192" y="205"></point>
        <point x="210" y="220"></point>
        <point x="227" y="242"></point>
        <point x="251" y="229"></point>
        <point x="236" y="206"></point>
        <point x="212" y="183"></point>
      </polygon>
    </shape>
    <shape name="fish" rotatable="false" editableColorIndex="0">
      <polygon color="-1" filled="true" marked="false">
        <point x="44" y="131"></point>
        <point x="21" y="87"></point>
        <point x="15" y="86"></point>
        <point x="0" y="120"></point>
        <point x="15" y="150"></point>
        <point x="0" y="180"></point>
        <point x="13" y="214"></point>
        <point x="20" y="212"></point>
        <point x="45" y="166"></point>
      </polygon>
      <polygon color="-1" filled="true" marked="false">
        <point x="135" y="195"></point>
        <point x="119" y="235"></point>
        <point x="95" y="218"></point>
        <point x="76" y="210"></point>
        <point x="46" y="204"></point>
        <point x="60" y="165"></point>
      </polygon>
      <polygon color="-1" filled="true" marked="false">
        <point x="75" y="45"></point>
        <point x="83" y="77"></point>
        <point x="71" y="103"></point>
        <point x="86" y="114"></point>
        <point x="166" y="78"></point>
        <point x="135" y="60"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="30" y="136"></point>
        <point x="151" y="77"></point>
        <point x="226" y="81"></point>
        <point x="280" y="119"></point>
        <point x="292" y="146"></point>
        <point x="292" y="160"></point>
        <point x="287" y="170"></point>
        <point x="270" y="195"></point>
        <point x="195" y="210"></point>
        <point x="151" y="212"></point>
        <point x="30" y="166"></point>
      </polygon>
      <circle x="215" y="106" marked="false" color="255" diameter="30" filled="true"></circle>
    </shape>
    <shape name="flag" rotatable="false" editableColorIndex="0">
      <rectangle endX="75" startY="15" marked="true" color="-1920102913" endY="300" startX="60" filled="true"></rectangle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="90" y="150"></point>
        <point x="270" y="90"></point>
        <point x="90" y="30"></point>
      </polygon>
      <line endX="90" startY="135" marked="true" color="-1920102913" endY="135" startX="75"></line>
      <line endX="90" startY="45" marked="true" color="-1920102913" endY="45" startX="75"></line>
    </shape>
    <shape name="flower" rotatable="false" editableColorIndex="0">
      <polygon color="1504722175" filled="true" marked="false">
        <point x="135" y="120"></point>
        <point x="165" y="165"></point>
        <point x="180" y="210"></point>
        <point x="180" y="240"></point>
        <point x="150" y="300"></point>
        <point x="165" y="300"></point>
        <point x="195" y="240"></point>
        <point x="195" y="195"></point>
        <point x="165" y="135"></point>
      </polygon>
      <circle x="85" y="132" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="130" y="147" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="192" y="85" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="85" y="40" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="177" y="40" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="177" y="132" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="70" y="85" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="130" y="25" marked="true" color="-1920102913" diameter="38" filled="true"></circle>
      <circle x="96" y="51" marked="true" color="-1920102913" diameter="108" filled="true"></circle>
      <circle x="113" y="68" marked="false" color="255" diameter="74" filled="true"></circle>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="189" y="233"></point>
        <point x="219" y="188"></point>
        <point x="249" y="173"></point>
        <point x="279" y="188"></point>
        <point x="234" y="218"></point>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="180" y="255"></point>
        <point x="150" y="210"></point>
        <point x="105" y="210"></point>
        <point x="75" y="240"></point>
        <point x="135" y="240"></point>
      </polygon>
    </shape>
    <shape name="house" rotatable="false" editableColorIndex="0">
      <rectangle endX="255" startY="120" marked="true" color="-1920102913" endY="285" startX="45" filled="true"></rectangle>
      <rectangle endX="180" startY="210" marked="false" color="255" endY="285" startX="120" filled="true"></rectangle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="15" y="120"></point>
        <point x="150" y="15"></point>
        <point x="285" y="120"></point>
      </polygon>
      <line endX="270" startY="120" marked="false" color="255" endY="120" startX="30"></line>
    </shape>
    <shape name="leaf" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="210"></point>
        <point x="135" y="195"></point>
        <point x="120" y="210"></point>
        <point x="60" y="210"></point>
        <point x="30" y="195"></point>
        <point x="60" y="180"></point>
        <point x="60" y="165"></point>
        <point x="15" y="135"></point>
        <point x="30" y="120"></point>
        <point x="15" y="105"></point>
        <point x="40" y="104"></point>
        <point x="45" y="90"></point>
        <point x="60" y="90"></point>
        <point x="90" y="105"></point>
        <point x="105" y="120"></point>
        <point x="120" y="120"></point>
        <point x="105" y="60"></point>
        <point x="120" y="60"></point>
        <point x="135" y="30"></point>
        <point x="150" y="15"></point>
        <point x="165" y="30"></point>
        <point x="180" y="60"></point>
        <point x="195" y="60"></point>
        <point x="180" y="120"></point>
        <point x="195" y="120"></point>
        <point x="210" y="105"></point>
        <point x="240" y="90"></point>
        <point x="255" y="90"></point>
        <point x="263" y="104"></point>
        <point x="285" y="105"></point>
        <point x="270" y="120"></point>
        <point x="285" y="135"></point>
        <point x="240" y="165"></point>
        <point x="240" y="180"></point>
        <point x="270" y="195"></point>
        <point x="240" y="210"></point>
        <point x="180" y="210"></point>
        <point x="165" y="195"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="195"></point>
        <point x="135" y="240"></point>
        <point x="120" y="255"></point>
        <point x="105" y="255"></point>
        <point x="105" y="285"></point>
        <point x="135" y="285"></point>
        <point x="165" y="240"></point>
        <point x="165" y="195"></point>
      </polygon>
    </shape>
    <shape name="line" rotatable="true" editableColorIndex="0">
      <line endX="150" startY="0" marked="true" color="-1920102913" endY="300" startX="150"></line>
    </shape>
    <shape name="line half" rotatable="true" editableColorIndex="0">
      <line endX="150" startY="0" marked="true" color="-1920102913" endY="150" startX="150"></line>
    </shape>
    <shape name="pentagon" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="15"></point>
        <point x="15" y="120"></point>
        <point x="60" y="285"></point>
        <point x="240" y="285"></point>
        <point x="285" y="120"></point>
      </polygon>
    </shape>
    <shape name="person" rotatable="false" editableColorIndex="0">
      <circle x="110" y="5" marked="true" color="-1920102913" diameter="80" filled="true"></circle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="105" y="90"></point>
        <point x="120" y="195"></point>
        <point x="90" y="285"></point>
        <point x="105" y="300"></point>
        <point x="135" y="300"></point>
        <point x="150" y="225"></point>
        <point x="165" y="300"></point>
        <point x="195" y="300"></point>
        <point x="210" y="285"></point>
        <point x="180" y="195"></point>
        <point x="195" y="90"></point>
      </polygon>
      <rectangle endX="172" startY="79" marked="true" color="-1920102913" endY="94" startX="127" filled="true"></rectangle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="195" y="90"></point>
        <point x="240" y="150"></point>
        <point x="225" y="180"></point>
        <point x="165" y="105"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="105" y="90"></point>
        <point x="60" y="150"></point>
        <point x="75" y="180"></point>
        <point x="135" y="105"></point>
      </polygon>
    </shape>
    <shape name="plant" rotatable="false" editableColorIndex="0">
      <rectangle endX="165" startY="90" marked="true" color="-1920102913" endY="300" startX="135" filled="true"></rectangle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="255"></point>
        <point x="90" y="210"></point>
        <point x="45" y="195"></point>
        <point x="75" y="255"></point>
        <point x="135" y="285"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="255"></point>
        <point x="210" y="210"></point>
        <point x="255" y="195"></point>
        <point x="225" y="255"></point>
        <point x="165" y="285"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="180"></point>
        <point x="90" y="135"></point>
        <point x="45" y="120"></point>
        <point x="75" y="180"></point>
        <point x="135" y="210"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="180"></point>
        <point x="165" y="210"></point>
        <point x="225" y="180"></point>
        <point x="255" y="120"></point>
        <point x="210" y="135"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="105"></point>
        <point x="90" y="60"></point>
        <point x="45" y="45"></point>
        <point x="75" y="105"></point>
        <point x="135" y="135"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="105"></point>
        <point x="165" y="135"></point>
        <point x="225" y="105"></point>
        <point x="255" y="45"></point>
        <point x="210" y="60"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="90"></point>
        <point x="120" y="45"></point>
        <point x="150" y="15"></point>
        <point x="180" y="45"></point>
        <point x="165" y="90"></point>
      </polygon>
    </shape>
    <shape name="sheep" rotatable="false" editableColorIndex="15">
      <circle x="203" y="65" marked="true" color="-1" diameter="88" filled="true"></circle>
      <circle x="70" y="65" marked="true" color="-1" diameter="162" filled="true"></circle>
      <circle x="150" y="105" marked="true" color="-1" diameter="120" filled="true"></circle>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="218" y="120"></point>
        <point x="240" y="165"></point>
        <point x="255" y="165"></point>
        <point x="278" y="120"></point>
      </polygon>
      <circle x="214" y="72" marked="false" color="-1920102913" diameter="67" filled="true"></circle>
      <rectangle endX="179" startY="223" marked="true" color="-1" endY="298" startX="164" filled="true"></rectangle>
      <polygon color="-1" filled="true" marked="true">
        <point x="45" y="285"></point>
        <point x="30" y="285"></point>
        <point x="30" y="240"></point>
        <point x="15" y="195"></point>
        <point x="45" y="210"></point>
      </polygon>
      <circle x="3" y="83" marked="true" color="-1" diameter="150" filled="true"></circle>
      <rectangle endX="80" startY="221" marked="true" color="-1" endY="296" startX="65" filled="true"></rectangle>
      <polygon color="-1" filled="true" marked="true">
        <point x="195" y="285"></point>
        <point x="210" y="285"></point>
        <point x="210" y="240"></point>
        <point x="240" y="210"></point>
        <point x="195" y="210"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="276" y="85"></point>
        <point x="285" y="105"></point>
        <point x="302" y="99"></point>
        <point x="294" y="83"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="219" y="85"></point>
        <point x="210" y="105"></point>
        <point x="193" y="99"></point>
        <point x="201" y="83"></point>
      </polygon>
    </shape>
    <shape name="square" rotatable="false" editableColorIndex="0">
      <rectangle endX="270" startY="30" marked="true" color="-1920102913" endY="270" startX="30" filled="true"></rectangle>
    </shape>
    <shape name="square 2" rotatable="false" editableColorIndex="0">
      <rectangle endX="270" startY="30" marked="true" color="-1920102913" endY="270" startX="30" filled="true"></rectangle>
      <rectangle endX="240" startY="60" marked="false" color="255" endY="240" startX="60" filled="true"></rectangle>
    </shape>
    <shape name="star" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="151" y="1"></point>
        <point x="185" y="108"></point>
        <point x="298" y="108"></point>
        <point x="207" y="175"></point>
        <point x="242" y="282"></point>
        <point x="151" y="216"></point>
        <point x="59" y="282"></point>
        <point x="94" y="175"></point>
        <point x="3" y="108"></point>
        <point x="116" y="108"></point>
      </polygon>
    </shape>
    <shape name="target" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"></circle>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"></circle>
      <circle x="60" y="60" marked="true" color="-1920102913" diameter="180" filled="true"></circle>
      <circle x="90" y="90" marked="false" color="255" diameter="120" filled="true"></circle>
      <circle x="120" y="120" marked="true" color="-1920102913" diameter="60" filled="true"></circle>
    </shape>
    <shape name="tree" rotatable="false" editableColorIndex="0">
      <circle x="118" y="3" marked="true" color="-1920102913" diameter="94" filled="true"></circle>
      <rectangle endX="180" startY="195" marked="false" color="-1653716737" endY="300" startX="120" filled="true"></rectangle>
      <circle x="65" y="21" marked="true" color="-1920102913" diameter="108" filled="true"></circle>
      <circle x="116" y="41" marked="true" color="-1920102913" diameter="127" filled="true"></circle>
      <circle x="45" y="90" marked="true" color="-1920102913" diameter="120" filled="true"></circle>
      <circle x="104" y="74" marked="true" color="-1920102913" diameter="152" filled="true"></circle>
    </shape>
    <shape name="triangle" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="30"></point>
        <point x="15" y="255"></point>
        <point x="285" y="255"></point>
      </polygon>
    </shape>
    <shape name="triangle 2" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="30"></point>
        <point x="15" y="255"></point>
        <point x="285" y="255"></point>
      </polygon>
      <polygon color="255" filled="true" marked="false">
        <point x="151" y="99"></point>
        <point x="225" y="223"></point>
        <point x="75" y="224"></point>
      </polygon>
    </shape>
    <shape name="truck" rotatable="false" editableColorIndex="0">
      <rectangle endX="195" startY="45" marked="true" color="-1920102913" endY="187" startX="4" filled="true"></rectangle>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="296" y="193"></point>
        <point x="296" y="150"></point>
        <point x="259" y="134"></point>
        <point x="244" y="104"></point>
        <point x="208" y="104"></point>
        <point x="207" y="194"></point>
      </polygon>
      <rectangle endX="195" startY="60" marked="false" color="-1" endY="105" startX="195" filled="true"></rectangle>
      <polygon color="255" filled="true" marked="false">
        <point x="238" y="112"></point>
        <point x="252" y="141"></point>
        <point x="219" y="141"></point>
        <point x="218" y="112"></point>
      </polygon>
      <circle x="234" y="174" marked="false" color="255" diameter="42" filled="true"></circle>
      <rectangle endX="214" startY="185" marked="true" color="-1920102913" endY="194" startX="181" filled="true"></rectangle>
      <circle x="144" y="174" marked="false" color="255" diameter="42" filled="true"></circle>
      <circle x="24" y="174" marked="false" color="255" diameter="42" filled="true"></circle>
      <circle x="24" y="174" marked="true" color="-1920102913" diameter="42" filled="false"></circle>
      <circle x="144" y="174" marked="true" color="-1920102913" diameter="42" filled="false"></circle>
      <circle x="234" y="174" marked="true" color="-1920102913" diameter="42" filled="false"></circle>
    </shape>
    <shape name="turtle" rotatable="true" editableColorIndex="0">
      <polygon color="1504722175" filled="true" marked="false">
        <point x="215" y="204"></point>
        <point x="240" y="233"></point>
        <point x="246" y="254"></point>
        <point x="228" y="266"></point>
        <point x="215" y="252"></point>
        <point x="193" y="210"></point>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="195" y="90"></point>
        <point x="225" y="75"></point>
        <point x="245" y="75"></point>
        <point x="260" y="89"></point>
        <point x="269" y="108"></point>
        <point x="261" y="124"></point>
        <point x="240" y="105"></point>
        <point x="225" y="105"></point>
        <point x="210" y="105"></point>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="105" y="90"></point>
        <point x="75" y="75"></point>
        <point x="55" y="75"></point>
        <point x="40" y="89"></point>
        <point x="31" y="108"></point>
        <point x="39" y="124"></point>
        <point x="60" y="105"></point>
        <point x="75" y="105"></point>
        <point x="90" y="105"></point>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="132" y="85"></point>
        <point x="134" y="64"></point>
        <point x="107" y="51"></point>
        <point x="108" y="17"></point>
        <point x="150" y="2"></point>
        <point x="192" y="18"></point>
        <point x="192" y="52"></point>
        <point x="169" y="65"></point>
        <point x="172" y="87"></point>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="85" y="204"></point>
        <point x="60" y="233"></point>
        <point x="54" y="254"></point>
        <point x="72" y="266"></point>
        <point x="85" y="252"></point>
        <point x="107" y="210"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="119" y="75"></point>
        <point x="179" y="75"></point>
        <point x="209" y="101"></point>
        <point x="224" y="135"></point>
        <point x="220" y="225"></point>
        <point x="175" y="261"></point>
        <point x="128" y="261"></point>
        <point x="81" y="224"></point>
        <point x="74" y="135"></point>
        <point x="88" y="99"></point>
      </polygon>
    </shape>
    <shape name="wheel" rotatable="false" editableColorIndex="0">
      <circle x="3" y="3" marked="true" color="-1920102913" diameter="294" filled="true"></circle>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"></circle>
      <line endX="150" startY="285" marked="true" color="-1920102913" endY="15" startX="150"></line>
      <line endX="285" startY="150" marked="true" color="-1920102913" endY="150" startX="15"></line>
      <circle x="120" y="120" marked="true" color="-1920102913" diameter="60" filled="true"></circle>
      <line endX="79" startY="40" marked="true" color="-1920102913" endY="269" startX="216"></line>
      <line endX="269" startY="84" marked="true" color="-1920102913" endY="221" startX="40"></line>
      <line endX="269" startY="216" marked="true" color="-1920102913" endY="79" startX="40"></line>
      <line endX="221" startY="40" marked="true" color="-1920102913" endY="269" startX="84"></line>
    </shape>
    <shape name="wolf" rotatable="false" editableColorIndex="0">
      <polygon color="255" filled="true" marked="false">
        <point x="253" y="133"></point>
        <point x="245" y="131"></point>
        <point x="245" y="133"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="2" y="194"></point>
        <point x="13" y="197"></point>
        <point x="30" y="191"></point>
        <point x="38" y="193"></point>
        <point x="38" y="205"></point>
        <point x="20" y="226"></point>
        <point x="20" y="257"></point>
        <point x="27" y="265"></point>
        <point x="38" y="266"></point>
        <point x="40" y="260"></point>
        <point x="31" y="253"></point>
        <point x="31" y="230"></point>
        <point x="60" y="206"></point>
        <point x="68" y="198"></point>
        <point x="75" y="209"></point>
        <point x="66" y="228"></point>
        <point x="65" y="243"></point>
        <point x="82" y="261"></point>
        <point x="84" y="268"></point>
        <point x="100" y="267"></point>
        <point x="103" y="261"></point>
        <point x="77" y="239"></point>
        <point x="79" y="231"></point>
        <point x="100" y="207"></point>
        <point x="98" y="196"></point>
        <point x="119" y="201"></point>
        <point x="143" y="202"></point>
        <point x="160" y="195"></point>
        <point x="166" y="210"></point>
        <point x="172" y="213"></point>
        <point x="173" y="238"></point>
        <point x="167" y="251"></point>
        <point x="160" y="248"></point>
        <point x="154" y="265"></point>
        <point x="169" y="264"></point>
        <point x="178" y="247"></point>
        <point x="186" y="240"></point>
        <point x="198" y="260"></point>
        <point x="200" y="271"></point>
        <point x="217" y="271"></point>
        <point x="219" y="262"></point>
        <point x="207" y="258"></point>
        <point x="195" y="230"></point>
        <point x="192" y="198"></point>
        <point x="210" y="184"></point>
        <point x="227" y="164"></point>
        <point x="242" y="144"></point>
        <point x="259" y="145"></point>
        <point x="284" y="151"></point>
        <point x="277" y="141"></point>
        <point x="293" y="140"></point>
        <point x="299" y="134"></point>
        <point x="297" y="127"></point>
        <point x="273" y="119"></point>
        <point x="270" y="105"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="-1" y="195"></point>
        <point x="14" y="180"></point>
        <point x="36" y="166"></point>
        <point x="40" y="153"></point>
        <point x="53" y="140"></point>
        <point x="82" y="131"></point>
        <point x="134" y="133"></point>
        <point x="159" y="126"></point>
        <point x="188" y="115"></point>
        <point x="227" y="108"></point>
        <point x="236" y="102"></point>
        <point x="238" y="98"></point>
        <point x="268" y="86"></point>
        <point x="269" y="92"></point>
        <point x="281" y="87"></point>
        <point x="269" y="103"></point>
        <point x="269" y="113"></point>
      </polygon>
    </shape>
    <shape name="x" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="270" y="75"></point>
        <point x="225" y="30"></point>
        <point x="30" y="225"></point>
        <point x="75" y="270"></point>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="30" y="75"></point>
        <point x="75" y="30"></point>
        <point x="270" y="225"></point>
        <point x="225" y="270"></point>
      </polygon>
    </shape>
  </turtleShapes>
  <linkShapes>
    <shape name="default" curviness="0.0">
      <lines>
        <line x="-0.2" visible="false">
          <dash value="0.0"></dash>
          <dash value="1.0"></dash>
        </line>
        <line x="0.0" visible="true">
          <dash value="1.0"></dash>
          <dash value="0.0"></dash>
        </line>
        <line x="0.2" visible="false">
          <dash value="0.0"></dash>
          <dash value="1.0"></dash>
        </line>
      </lines>
      <indicator>
        <shape name="link direction" rotatable="true" editableColorIndex="0">
          <line endX="90" startY="150" marked="true" color="-1920102913" endY="180" startX="150"></line>
          <line endX="210" startY="150" marked="true" color="-1920102913" endY="180" startX="150"></line>
        </shape>
      </indicator>
    </shape>
  </linkShapes>
  <previewCommands>setup repeat 75 [ go ]</previewCommands>
  <experiments>
    <experiment name="vary-stochasticity" repetitions="100" sequentialRunOrder="true" runMetricsEveryStep="true">
      <setup>setup</setup>
      <go>go</go>
      <metrics>
        <metric>mean [wealth] of turtles</metric>
        <metric>standard-deviation [wealth] of turtles</metric>
      </metrics>
      <constants>
        <enumeratedValueSet variable="stochastic?">
          <value value="false"></value>
          <value value="true"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="failure-max">
          <value value="0.1"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-low-profit-low-risk">
          <value value="3.4"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="turtle-coloring-mode">
          <value value="&quot;wealth&quot;"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-high-profit-high-risk">
          <value value="9.3"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="failure-min">
          <value value="0.01"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-low-profit-high-risk">
          <value value="0"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="max-ticks">
          <value value="25"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-high-profit-low-risk">
          <value value="78"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="color-patches-by">
          <value value="&quot;exp utility&quot;"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="num-investors">
          <value value="25"></value>
        </enumeratedValueSet>
      </constants>
    </experiment>
    <experiment name="vary-probabilities" repetitions="100" sequentialRunOrder="true" runMetricsEveryStep="false">
      <setup>setup</setup>
      <go>go</go>
      <metrics>
        <metric>mean [wealth] of turtles</metric>
        <metric>standard-deviation [wealth] of turtles</metric>
      </metrics>
      <constants>
        <enumeratedValueSet variable="stochastic?">
          <value value="true"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="failure-max">
          <value value="0.1"></value>
        </enumeratedValueSet>
        <steppedValueSet variable="p-low-profit-low-risk" first="0" step="2" last="10"></steppedValueSet>
        <enumeratedValueSet variable="turtle-coloring-mode">
          <value value="&quot;wealth&quot;"></value>
        </enumeratedValueSet>
        <steppedValueSet variable="p-high-profit-high-risk" first="0" step="10" last="50"></steppedValueSet>
        <enumeratedValueSet variable="failure-min">
          <value value="0.01"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-low-profit-high-risk">
          <value value="0"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="max-ticks">
          <value value="25"></value>
        </enumeratedValueSet>
        <steppedValueSet variable="p-high-profit-low-risk" first="70" step="10" last="100"></steppedValueSet>
        <enumeratedValueSet variable="color-patches-by">
          <value value="&quot;exp utility&quot;"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="num-investors">
          <value value="25"></value>
        </enumeratedValueSet>
      </constants>
    </experiment>
    <experiment name="get-probabilities" repetitions="100" sequentialRunOrder="true" runMetricsEveryStep="true">
      <setup>setup</setup>
      <go>go</go>
      <metrics>
        <metric>p-hplr</metric>
        <metric>p-hphr</metric>
        <metric>p-lplr</metric>
        <metric>p-lphr</metric>
        <metric>p-same</metric>
      </metrics>
      <constants>
        <enumeratedValueSet variable="stochastic?">
          <value value="false"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="failure-max">
          <value value="0.1"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-high-profit-high-risk">
          <value value="4.6"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="turtle-coloring-mode">
          <value value="&quot;wealth&quot;"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-low-profit-low-risk">
          <value value="3.2"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="failure-min">
          <value value="0.01"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-low-profit-high-risk">
          <value value="0"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="max-ticks">
          <value value="25"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="p-high-profit-low-risk">
          <value value="80"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="color-patches-by">
          <value value="&quot;exp utility&quot;"></value>
        </enumeratedValueSet>
        <enumeratedValueSet variable="num-investors">
          <value value="25"></value>
        </enumeratedValueSet>
      </constants>
    </experiment>
  </experiments>
</model>
