-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving examples to use the new discrete spaces #198
Changes from all commits
41b2dd1
e775b42
1b629a6
a1a15b3
bd0a4fa
bab2de8
a0d40a4
9b89085
9b833f4
ef61c59
281e9db
ca2317f
e88d645
a94c325
7fd5774
4e99603
28a348b
878b51a
891a94c
4c4bae1
9972fa8
f457639
e2d1b7b
fa6cef8
e2eff63
d57aa74
480cdb4
c433382
40399c7
86f8592
e5c69b6
95f862e
f9f7b84
acbff93
6b804bd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -3,6 +3,7 @@ | |||||
import mesa | ||||||
import networkx as nx | ||||||
import numpy as np | ||||||
from mesa.experimental.cell_space import CellAgent, Network | ||||||
|
||||||
|
||||||
@dataclass | ||||||
|
@@ -77,7 +78,7 @@ def from_tsp_file(cls, file_path: str) -> "TSPGraph": | |||||
return cls(g) | ||||||
|
||||||
|
||||||
class AntTSP(mesa.Agent): | ||||||
class AntTSP(CellAgent): | ||||||
""" | ||||||
An agent | ||||||
""" | ||||||
|
@@ -93,6 +94,7 @@ def __init__(self, model, alpha: float = 1.0, beta: float = 5.0): | |||||
self._traveled_distance = 0 | ||||||
self.tsp_solution = [] | ||||||
self.tsp_distance = 0 | ||||||
self.graph = self.model.grid.G | ||||||
|
||||||
def calculate_pheromone_delta(self, q: float = 100): | ||||||
results = {} | ||||||
|
@@ -102,31 +104,39 @@ def calculate_pheromone_delta(self, q: float = 100): | |||||
|
||||||
return results | ||||||
|
||||||
def move_to(self, cell) -> None: | ||||||
self._cities_visited.append(cell) | ||||||
if self.cell: | ||||||
self._traveled_distance += self.graph[self.cell.coordinate][ | ||||||
cell.coordinate | ||||||
]["distance"] | ||||||
super().move_to(cell) | ||||||
|
||||||
def decide_next_city(self): | ||||||
# Random | ||||||
# new_city = self.random.choice(list(self.model.all_cities - set(self.cities_visited))) | ||||||
# Choose closest city not yet visited | ||||||
g = self.model.grid.G | ||||||
current_city = self.pos | ||||||
neighbors = list(g.neighbors(current_city)) | ||||||
neighbors = self.cell.neighborhood | ||||||
candidates = [n for n in neighbors if n not in self._cities_visited] | ||||||
if len(candidates) == 0: | ||||||
return current_city | ||||||
return self.cell | ||||||
|
||||||
# p_ij(t) = 1/Z*[(tau_ij)**alpha * (1/distance)**beta] | ||||||
results = [] | ||||||
for city in candidates: | ||||||
val = ( | ||||||
(g[current_city][city]["pheromone"]) ** self.alpha | ||||||
* (g[current_city][city]["visibility"]) ** self.beta | ||||||
(self.graph[self.cell.coordinate][city.coordinate]["pheromone"]) | ||||||
** self.alpha | ||||||
* (self.graph[self.cell.coordinate][city.coordinate]["visibility"]) | ||||||
** self.beta | ||||||
) | ||||||
results.append(val) | ||||||
|
||||||
results = np.array(results) | ||||||
norm = results.sum() | ||||||
results /= norm | ||||||
|
||||||
new_city = self.model.random.choices(candidates, weights=results)[0] | ||||||
new_city = self.random.choices(candidates, weights=results)[0] | ||||||
|
||||||
return new_city | ||||||
|
||||||
|
@@ -135,16 +145,13 @@ def step(self): | |||||
Modify this method to change what an individual agent will do during each step. | ||||||
Can include logic based on neighbors states. | ||||||
""" | ||||||
g = self.model.grid.G | ||||||
for idx in range(self.model.num_cities - 1): | ||||||
|
||||||
for _ in range(self.model.num_cities - 1): | ||||||
# Pick a random city that isn't in the list of cities visited | ||||||
current_city = self.pos | ||||||
new_city = self.decide_next_city() | ||||||
self._cities_visited.append(new_city) | ||||||
self.model.grid.move_agent(self, new_city) | ||||||
self._traveled_distance += g[current_city][new_city]["distance"] | ||||||
self.move_to(new_city) | ||||||
|
||||||
self.tsp_solution = self._cities_visited.copy() | ||||||
self.tsp_solution = [entry.coordinate for entry in self._cities_visited] | ||||||
self.tsp_distance = self._traveled_distance | ||||||
self._cities_visited = [] | ||||||
self._traveled_distance = 0 | ||||||
|
@@ -173,14 +180,15 @@ def __init__( | |||||
self.num_cities = tsp_graph.num_cities | ||||||
self.all_cities = set(range(self.num_cities)) | ||||||
self.max_steps = max_steps | ||||||
self.grid = mesa.space.NetworkGrid(tsp_graph.g) | ||||||
self.grid = Network(tsp_graph.g, random=self.random) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe call it space here, since it isn't really a grid?
Suggested change
|
||||||
|
||||||
for _ in range(self.num_agents): | ||||||
agent = AntTSP(model=self, alpha=ant_alpha, beta=ant_beta) | ||||||
|
||||||
city = tsp_graph.cities[self.random.randrange(self.num_cities)] | ||||||
self.grid.place_agent(agent, city) | ||||||
agent._cities_visited.append(city) | ||||||
city = self.grid.all_cells.select_random_cell() | ||||||
agent.move_to(city) | ||||||
quaquel marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
# self.grid.place_agent(agent, city) | ||||||
# agent._cities_visited.append(city) # FIXME should be endogenous to agent | ||||||
|
||||||
self.num_steps = 0 | ||||||
self.best_path = None | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really want this data file included? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure, but the entire batch run example stuff seems incorrect so this needs a bit more attention |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
,RunId,iteration,Step,init_people,rich_threshold,reserve_percent,Rich,Poor,Middle Class,Savings,Wallets,Money,Loans,AgentID,Wealth | ||
0,0,0,1000,25,5,5,11,5,7,251,0,251,173,1,2 | ||
1,0,0,1000,25,5,5,11,5,7,251,0,251,173,2,44 | ||
2,0,0,1000,25,5,5,11,5,7,251,0,251,173,3,-22 | ||
3,0,0,1000,25,5,5,11,5,7,251,0,251,173,4,-10 | ||
4,0,0,1000,25,5,5,11,5,7,251,0,251,173,5,8 | ||
5,0,0,1000,25,5,5,11,5,7,251,0,251,173,6,17 | ||
6,0,0,1000,25,5,5,11,5,7,251,0,251,173,7,5 | ||
7,0,0,1000,25,5,5,11,5,7,251,0,251,173,8,1 | ||
8,0,0,1000,25,5,5,11,5,7,251,0,251,173,9,2 | ||
9,0,0,1000,25,5,5,11,5,7,251,0,251,173,10,51 | ||
10,0,0,1000,25,5,5,11,5,7,251,0,251,173,11,14 | ||
11,0,0,1000,25,5,5,11,5,7,251,0,251,173,12,-22 | ||
12,0,0,1000,25,5,5,11,5,7,251,0,251,173,13,10 | ||
13,0,0,1000,25,5,5,11,5,7,251,0,251,173,14,57 | ||
14,0,0,1000,25,5,5,11,5,7,251,0,251,173,15,7 | ||
15,0,0,1000,25,5,5,11,5,7,251,0,251,173,16,3 | ||
16,0,0,1000,25,5,5,11,5,7,251,0,251,173,17,12 | ||
17,0,0,1000,25,5,5,11,5,7,251,0,251,173,18,-64 | ||
18,0,0,1000,25,5,5,11,5,7,251,0,251,173,19,-2 | ||
19,0,0,1000,25,5,5,11,5,7,251,0,251,173,20,9 | ||
20,0,0,1000,25,5,5,11,5,7,251,0,251,173,21,7 | ||
21,0,0,1000,25,5,5,11,5,7,251,0,251,173,22,-1 | ||
22,0,0,1000,25,5,5,11,5,7,251,0,251,173,23,-23 | ||
23,0,0,1000,25,5,5,11,5,7,251,0,251,173,24,2 | ||
24,0,0,1000,25,5,5,11,5,7,251,0,251,173,25,-29 | ||
25,1,0,1000,25,10,5,12,8,3,422,5,427,251,1,38 | ||
26,1,0,1000,25,10,5,12,8,3,422,5,427,251,2,30 | ||
27,1,0,1000,25,10,5,12,8,3,422,5,427,251,3,-21 | ||
28,1,0,1000,25,10,5,12,8,3,422,5,427,251,4,65 | ||
29,1,0,1000,25,10,5,12,8,3,422,5,427,251,5,40 | ||
30,1,0,1000,25,10,5,12,8,3,422,5,427,251,6,10 | ||
31,1,0,1000,25,10,5,12,8,3,422,5,427,251,7,-12 | ||
32,1,0,1000,25,10,5,12,8,3,422,5,427,251,8,8 | ||
33,1,0,1000,25,10,5,12,8,3,422,5,427,251,9,30 | ||
34,1,0,1000,25,10,5,12,8,3,422,5,427,251,10,20 | ||
35,1,0,1000,25,10,5,12,8,3,422,5,427,251,11,-5 | ||
36,1,0,1000,25,10,5,12,8,3,422,5,427,251,12,-38 | ||
37,1,0,1000,25,10,5,12,8,3,422,5,427,251,13,-12 | ||
38,1,0,1000,25,10,5,12,8,3,422,5,427,251,14,27 | ||
39,1,0,1000,25,10,5,12,8,3,422,5,427,251,15,-29 | ||
40,1,0,1000,25,10,5,12,8,3,422,5,427,251,16,6 | ||
41,1,0,1000,25,10,5,12,8,3,422,5,427,251,17,-37 | ||
42,1,0,1000,25,10,5,12,8,3,422,5,427,251,18,27 | ||
43,1,0,1000,25,10,5,12,8,3,422,5,427,251,19,-38 | ||
44,1,0,1000,25,10,5,12,8,3,422,5,427,251,20,-10 | ||
45,1,0,1000,25,10,5,12,8,3,422,5,427,251,21,-49 | ||
46,1,0,1000,25,10,5,12,8,3,422,5,427,251,22,37 | ||
47,1,0,1000,25,10,5,12,8,3,422,5,427,251,23,35 | ||
48,1,0,1000,25,10,5,12,8,3,422,5,427,251,24,37 | ||
49,1,0,1000,25,10,5,12,8,3,422,5,427,251,25,12 | ||
50,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,1,-81 | ||
51,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,2,27 | ||
52,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,3,-56 | ||
53,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,4,53 | ||
54,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,5,86 | ||
55,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,6,77 | ||
56,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,7,20 | ||
57,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,8,-28 | ||
58,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,9,51 | ||
59,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,10,-72 | ||
60,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,11,-96 | ||
61,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,12,81 | ||
62,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,13,-43 | ||
63,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,14,66 | ||
64,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,15,70 | ||
65,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,16,7 | ||
66,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,17,32 | ||
67,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,18,21 | ||
68,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,19,64 | ||
69,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,20,-54 | ||
70,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,21,11 | ||
71,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,22,-30 | ||
72,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,23,-21 | ||
73,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,24,24 | ||
74,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,25,-4 | ||
75,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,26,-12 | ||
76,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,27,-67 | ||
77,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,28,53 | ||
78,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,29,79 | ||
79,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,30,-9 | ||
80,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,31,-6 | ||
81,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,32,-2 | ||
82,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,33,45 | ||
83,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,34,85 | ||
84,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,35,23 | ||
85,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,36,-32 | ||
86,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,37,-36 | ||
87,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,38,-75 | ||
88,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,39,-67 | ||
89,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,40,-44 | ||
90,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,41,-13 | ||
91,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,42,-53 | ||
92,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,43,105 | ||
93,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,44,20 | ||
94,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,45,-77 | ||
95,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,46,36 | ||
96,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,47,-35 | ||
97,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,48,-87 | ||
98,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,49,-70 | ||
99,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,50,98 | ||
100,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,51,109 | ||
101,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,52,-93 | ||
102,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,53,-18 | ||
103,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,54,72 | ||
104,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,55,38 | ||
105,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,56,-33 | ||
106,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,57,43 | ||
107,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,58,87 | ||
108,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,59,-2 | ||
109,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,60,29 | ||
110,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,61,123 | ||
111,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,62,-22 | ||
112,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,63,47 | ||
113,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,64,108 | ||
114,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,65,-53 | ||
115,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,66,-3 | ||
116,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,67,-58 | ||
117,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,68,-16 | ||
118,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,69,-28 | ||
119,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,70,41 | ||
120,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,71,-60 | ||
121,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,72,-69 | ||
122,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,73,93 | ||
123,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,74,9 | ||
124,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,75,37 | ||
125,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,76,-108 | ||
126,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,77,-69 | ||
127,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,78,75 | ||
128,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,79,-11 | ||
129,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,80,-18 | ||
130,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,81,16 | ||
131,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,82,-32 | ||
132,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,83,12 | ||
133,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,84,8 | ||
134,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,85,25 | ||
135,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,86,16 | ||
136,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,87,-99 | ||
137,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,88,-15 | ||
138,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,89,33 | ||
139,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,90,12 | ||
140,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,91,43 | ||
141,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,92,2 | ||
142,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,93,-139 | ||
143,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,94,25 | ||
144,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,95,101 | ||
145,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,96,78 | ||
146,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,97,44 | ||
147,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,98,3 | ||
148,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,99,-44 | ||
149,2,0,1000,100,5,5,50,42,8,2563,7,2570,2219,100,-59 | ||
150,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,1,-22 | ||
151,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,2,27 | ||
152,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,3,60 | ||
153,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,4,89 | ||
154,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,5,11 | ||
155,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,6,12 | ||
156,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,7,-47 | ||
157,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,8,60 | ||
158,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,9,34 | ||
159,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,10,2 | ||
160,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,11,5 | ||
161,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,12,-27 | ||
162,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,13,-13 | ||
163,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,14,105 | ||
164,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,15,-63 | ||
165,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,16,138 | ||
166,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,17,65 | ||
167,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,18,40 | ||
168,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,19,-68 | ||
169,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,20,39 | ||
170,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,21,-27 | ||
171,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,22,64 | ||
172,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,23,50 | ||
173,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,24,-86 | ||
174,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,25,21 | ||
175,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,26,42 | ||
176,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,27,-2 | ||
177,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,28,-124 | ||
178,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,29,90 | ||
179,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,30,-39 | ||
180,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,31,-40 | ||
181,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,32,21 | ||
182,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,33,55 | ||
183,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,34,60 | ||
184,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,35,71 | ||
185,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,36,-27 | ||
186,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,37,66 | ||
187,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,38,48 | ||
188,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,39,-63 | ||
189,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,40,74 | ||
190,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,41,3 | ||
191,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,42,13 | ||
192,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,43,-20 | ||
193,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,44,0 | ||
194,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,45,-51 | ||
195,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,46,45 | ||
196,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,47,44 | ||
197,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,48,-110 | ||
198,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,49,-95 | ||
199,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,50,-21 | ||
200,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,51,-46 | ||
201,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,52,-34 | ||
202,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,53,31 | ||
203,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,54,-42 | ||
204,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,55,52 | ||
205,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,56,39 | ||
206,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,57,112 | ||
207,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,58,39 | ||
208,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,59,-57 | ||
209,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,60,108 | ||
210,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,61,-33 | ||
211,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,62,28 | ||
212,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,63,7 | ||
213,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,64,33 | ||
214,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,65,-22 | ||
215,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,66,69 | ||
216,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,67,-77 | ||
217,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,68,-58 | ||
218,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,69,19 | ||
219,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,70,27 | ||
220,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,71,-41 | ||
221,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,72,63 | ||
222,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,73,97 | ||
223,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,74,60 | ||
224,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,75,32 | ||
225,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,76,36 | ||
226,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,77,-48 | ||
227,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,78,-47 | ||
228,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,79,45 | ||
229,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,80,-5 | ||
230,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,81,-27 | ||
231,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,82,13 | ||
232,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,83,48 | ||
233,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,84,-69 | ||
234,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,85,-55 | ||
235,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,86,-41 | ||
236,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,87,-31 | ||
237,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,88,-14 | ||
238,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,89,-103 | ||
239,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,90,-29 | ||
240,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,91,64 | ||
241,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,92,-74 | ||
242,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,93,1 | ||
243,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,94,-72 | ||
244,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,95,57 | ||
245,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,96,6 | ||
246,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,97,-15 | ||
247,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,98,-15 | ||
248,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,99,-46 | ||
249,3,0,1000,100,10,5,49,42,9,2598,33,2631,2046,100,58 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be useful to make this a property or function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what you are proposing. This is in the agent class.