output_yield change2

This commit is contained in:
SongQi 2023-02-12 22:37:54 +08:00
parent d826a0deb9
commit e9f1cca775
1 changed files with 1 additions and 1 deletions

2
env.py
View File

@ -111,7 +111,7 @@ class Env(ap.Model):
self.out_f_avg_profit = sum(lst_profit) / n_firms
self.out_f_gini_profit = self.gini(lst_profit)
# self.out_w_percent_hired = n_hired / n_workers
self.out_f_avg_yield = sum(lst_a_yield)
self.out_f_avg_yield = sum(lst_a_yield) / n_firms
self.record('out_w_avg_salary')
self.record('out_f_avg_yield')