140
X-Machines for Agent-Based Modeling: FLAME Perspectives
attained. Thus, firms try to come closer to equilibrium again which was later
achieved after t = 350.
Figure 6.16(b) illustrates the plots of quantities produced at time t versus
those produced at time t = t + 1. As all three firms were homogeneous, the
strategy space of only one firm (F irm 1) is shown. Here the firm is trying out
every possible strategy, making the strategy space spread across the graph.
Although in the end it does concentrate around the equilibrium, the firm had
to try a large number of possibilities before this was found.
Figures 6.17 and 6.18 depict the variation in prices, when crossover and
mutation probabilities are varied. Price is a central variable, affected by quantities and profits of all firms. The simulations show that by increasing the
crossover rates, the time for the price to find equilibrium increased. For instance, crossover rate 0.1 finds equilibrium at t = 50, 0.5 at t = 100 and 0.7
at t = 200.
Varying the mutation rate also shows similar behavior of extending time
to oscillate about the equilibrium. This is very evident in P crossover = 0.7 with
the price stretched by increasing the mutation rates.
The model details are as follows:
Memory of Firm Agent. (int) id, (strategy) firm strategy map[10], (strategy) current strategy, (strategy) chosen strategy, (double) profit, (double) cost, (int) quantity, (double) avg fitness.
List of Firm Functions. Firm generate strategies, Firm idle, Firm select
and post representative,
Firm read reps evolve,
Firm generate
childstrategy, Firm play strategy, Firm collect actual fitness, Firm
post histogram.
Memory of Demand Price Agent. (int) id, (double) pzero, (double) pt,
(int) qmax.
List of Demand Price Functions. Demand Price calculate.
Memory of Averager Agent. (double) profit firm1, (double) profit firm2,
(double) profit firm3, (double)price, (double) quantity firm1, (double)
quantity firm2, (double) quantity firm3.
List of Averager Functions. Averager collect.
Messages. Current strategy: Contains firm id, production, scene id; priceP: Contains mprice, scene id; current profit: Contains firm id,
quantity, profit, scene id; firm representative: Contains firm id, current strategy, scene id; my chosen strategy: Contains firm id, chosen quantity, scene id
Datatypes. Strategy: Contains output[9], score, frequency
X-Machines for Agent-Based Modeling: FLAME Perspectives
attained. Thus, firms try to come closer to equilibrium again which was later
achieved after t = 350.
Figure 6.16(b) illustrates the plots of quantities produced at time t versus
those produced at time t = t + 1. As all three firms were homogeneous, the
strategy space of only one firm (F irm 1) is shown. Here the firm is trying out
every possible strategy, making the strategy space spread across the graph.
Although in the end it does concentrate around the equilibrium, the firm had
to try a large number of possibilities before this was found.
Figures 6.17 and 6.18 depict the variation in prices, when crossover and
mutation probabilities are varied. Price is a central variable, affected by quantities and profits of all firms. The simulations show that by increasing the
crossover rates, the time for the price to find equilibrium increased. For instance, crossover rate 0.1 finds equilibrium at t = 50, 0.5 at t = 100 and 0.7
at t = 200.
Varying the mutation rate also shows similar behavior of extending time
to oscillate about the equilibrium. This is very evident in P crossover = 0.7 with
the price stretched by increasing the mutation rates.
The model details are as follows:
Memory of Firm Agent. (int) id, (strategy) firm strategy map[10], (strategy) current strategy, (strategy) chosen strategy, (double) profit, (double) cost, (int) quantity, (double) avg fitness.
List of Firm Functions. Firm generate strategies, Firm idle, Firm select
and post representative,
Firm read reps evolve,
Firm generate
childstrategy, Firm play strategy, Firm collect actual fitness, Firm
post histogram.
Memory of Demand Price Agent. (int) id, (double) pzero, (double) pt,
(int) qmax.
List of Demand Price Functions. Demand Price calculate.
Memory of Averager Agent. (double) profit firm1, (double) profit firm2,
(double) profit firm3, (double)price, (double) quantity firm1, (double)
quantity firm2, (double) quantity firm3.
List of Averager Functions. Averager collect.
Messages. Current strategy: Contains firm id, production, scene id; priceP: Contains mprice, scene id; current profit: Contains firm id,
quantity, profit, scene id; firm representative: Contains firm id, current strategy, scene id; my chosen strategy: Contains firm id, chosen quantity, scene id
Datatypes. Strategy: Contains output[9], score, frequency
