This commit is contained in:
2023-06-11 16:14:23 +08:00
parent 67aa573154
commit dbbdbc935a
4 changed files with 8 additions and 8 deletions

View File

@@ -346,17 +346,17 @@ class Model(ap.Model):
'Product': di_supp_prod.code
})
])
print(f"proactive add {select_cand.code} to "
f"{pro_firm.code} "
f"for {di_supp_node['Firm_Code']} "
f"{di_supp_node['Product_Code']}")
# print(f"proactive add {select_cand.code} to "
# f"{pro_firm.code} "
# f"for {di_supp_node['Firm_Code']} "
# f"{di_supp_node['Product_Code']}")
# change capacity
select_cand.dct_prod_capacity[di_supp_prod] -= 1
break
# nx.to_pandas_adjacency(G_Firm).to_csv('adj_g_firm_proactive.csv')
# draw network
self.draw_network()
# self.draw_network()
def update(self):
self.a_lst_total_firms.clean_before_time_step()