its starting to get stable
This commit is contained in:
@@ -79,8 +79,7 @@ class Simulation():
|
||||
agentstep=time.time()
|
||||
for b in self.businesses:
|
||||
b.tick(self.tick_count)
|
||||
if b.balance<=0:
|
||||
self.remove_business(b.id)
|
||||
|
||||
busstep=time.time()
|
||||
self.tick_count+=1
|
||||
self.log_cxs_tick(episode_length)
|
||||
@@ -103,7 +102,9 @@ class Simulation():
|
||||
v(self.episode_count)
|
||||
for cell_id,cell in self.cells.items():
|
||||
cell.setup_supply_for_episode()
|
||||
|
||||
for b in self.businesses:
|
||||
if b.balance<=0:
|
||||
self.remove_business(b.id)
|
||||
self.tick_count=0
|
||||
self.episode_count+=1
|
||||
|
||||
@@ -170,7 +171,7 @@ class Simulation():
|
||||
profit[id]=0
|
||||
profit[id]+=diff
|
||||
best=None
|
||||
bestv=0
|
||||
bestv=-1000000000000
|
||||
for k,v in profit.items():
|
||||
if bestv<v:
|
||||
bestv=v
|
||||
|
||||
Reference in New Issue
Block a user