remove firm that denied request from candidate list
This commit is contained in:
2
model.py
2
model.py
@@ -221,7 +221,7 @@ class Model(ap.Model):
|
||||
1) / (max(lst_size) - min(lst_size) + 1)
|
||||
prod_remove = 1 - std_size * (1 - lost_percent)
|
||||
if self.nprandom.choice(
|
||||
[True, False], p=[prod_remove, 1 - prod_remove]):
|
||||
[True, False], p=[prod_remove, 1 - prod_remove]):
|
||||
firm.a_lst_product_removed.append(product)
|
||||
if firm in self.dct_lst_remove_firm_prod.keys():
|
||||
self.dct_lst_remove_firm_prod[firm].append(
|
||||
|
||||
Reference in New Issue
Block a user