exp
This commit is contained in:
parent
67aa573154
commit
dbbdbc935a
|
@ -12,9 +12,9 @@
|
||||||
"console": "integratedTerminal",
|
"console": "integratedTerminal",
|
||||||
"justMyCode": true,
|
"justMyCode": true,
|
||||||
"args": [
|
"args": [
|
||||||
"--exp", "test",
|
"--exp", "without_exp",
|
||||||
"--reset_db", "True",
|
"--reset_db", "True",
|
||||||
"--job", "1"
|
"--job", "30"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Binary file not shown.
|
@ -77,7 +77,7 @@ class ControllerDB:
|
||||||
# list_dct = [{'135': ['1.3.2.1']}]
|
# list_dct = [{'135': ['1.3.2.1']}]
|
||||||
# list_dct = [{'79': ['2.1.3.4']}]
|
# list_dct = [{'79': ['2.1.3.4']}]
|
||||||
# list_dct = [{'99': ['1.3.3']}]
|
# list_dct = [{'99': ['1.3.3']}]
|
||||||
list_dct = [{'41': ['1.4.5']}]
|
# list_dct = [{'41': ['1.4.5']}]
|
||||||
|
|
||||||
# fill g_bom
|
# fill g_bom
|
||||||
BomNodes = pd.read_csv('BomNodes.csv', index_col=0)
|
BomNodes = pd.read_csv('BomNodes.csv', index_col=0)
|
||||||
|
|
10
model.py
10
model.py
|
@ -346,17 +346,17 @@ class Model(ap.Model):
|
||||||
'Product': di_supp_prod.code
|
'Product': di_supp_prod.code
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
print(f"proactive add {select_cand.code} to "
|
# print(f"proactive add {select_cand.code} to "
|
||||||
f"{pro_firm.code} "
|
# f"{pro_firm.code} "
|
||||||
f"for {di_supp_node['Firm_Code']} "
|
# f"for {di_supp_node['Firm_Code']} "
|
||||||
f"{di_supp_node['Product_Code']}")
|
# f"{di_supp_node['Product_Code']}")
|
||||||
# change capacity
|
# change capacity
|
||||||
select_cand.dct_prod_capacity[di_supp_prod] -= 1
|
select_cand.dct_prod_capacity[di_supp_prod] -= 1
|
||||||
break
|
break
|
||||||
|
|
||||||
# nx.to_pandas_adjacency(G_Firm).to_csv('adj_g_firm_proactive.csv')
|
# nx.to_pandas_adjacency(G_Firm).to_csv('adj_g_firm_proactive.csv')
|
||||||
# draw network
|
# draw network
|
||||||
self.draw_network()
|
# self.draw_network()
|
||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
self.a_lst_total_firms.clean_before_time_step()
|
self.a_lst_total_firms.clean_before_time_step()
|
||||||
|
|
Loading…
Reference in New Issue