From e9f1cca775683b3356a765da1ef93e36699408db Mon Sep 17 00:00:00 2001 From: SongQi Date: Sun, 12 Feb 2023 22:37:54 +0800 Subject: [PATCH] output_yield change2 --- env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.py b/env.py index 7e6b14e..d4102a2 100644 --- a/env.py +++ b/env.py @@ -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')