This commit is contained in:
2023-03-07 12:29:27 +08:00
parent b291578889
commit 586272c923
5 changed files with 70 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ class FirmAgent(ap.Agent):
]
# print(select_edges)
if len(select_edges) == 0:
print('affect', customer.name, remove_product.code)
print(self.name, remove_product.code, 'affect', customer.name)
if remove_product not in \
customer.a_list_up_product_removed:
customer.a_list_up_product_removed.append(
@@ -136,3 +136,7 @@ class FirmAgent(ap.Agent):
def clean_before_trial(self):
self.dct_request_prod_from_firm = {}
def clean_before_time_step(self):
self.dct_num_trial_up_product_removed = {}
self.a_list_up_product_removed = ap.AgentList(self.model, [])