main
This commit is contained in:
6
firm.py
6
firm.py
@@ -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, [])
|
||||
|
||||
Reference in New Issue
Block a user