exp connect first
This commit is contained in:
@@ -75,7 +75,8 @@ class ControllerDB:
|
||||
# list_dct = [{'133': ['1.4.4.1']}]
|
||||
# list_dct = [{'2': ['1.1.3']}]
|
||||
# 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']}]
|
||||
|
||||
# fill g_bom
|
||||
BomNodes = pd.read_csv('BomNodes.csv', index_col=0)
|
||||
@@ -94,7 +95,7 @@ class ControllerDB:
|
||||
df_xv = pd.read_csv("xv_without_exp.csv", index_col=None)
|
||||
# read the OA table
|
||||
df_oa = pd.read_csv("oa_without_exp.csv", index_col=None)
|
||||
df_oa = df_oa.iloc[:, 0:10]
|
||||
df_oa = df_oa.iloc[:, 0:df_xv.shape[1]]
|
||||
for idx_scenario, row in df_oa.iterrows():
|
||||
dct_exp_para = {}
|
||||
for idx_col, para_level in enumerate(row):
|
||||
@@ -112,10 +113,11 @@ class ControllerDB:
|
||||
|
||||
def add_experiment_1(self, idx_scenario, idx_init_removal,
|
||||
dct_lst_init_remove_firm_prod, g_bom,
|
||||
n_max_trial, crit_supplier, firm_req_prf_size,
|
||||
firm_acc_prf_size, netw_sply_prf_n,
|
||||
netw_sply_prf_size, cap_limit, diff_new_conn,
|
||||
diff_remove, proactive_ratio):
|
||||
n_max_trial, crit_supplier,
|
||||
firm_req_prf_size, firm_req_prf_conn,
|
||||
firm_acc_prf_size, firm_acc_prf_conn,
|
||||
netw_sply_prf_n, netw_sply_prf_size, cap_limit,
|
||||
diff_new_conn, diff_remove, proactive_ratio):
|
||||
e = Experiment(
|
||||
idx_scenario=idx_scenario,
|
||||
idx_init_removal=idx_init_removal,
|
||||
@@ -126,7 +128,9 @@ class ControllerDB:
|
||||
n_max_trial=n_max_trial,
|
||||
crit_supplier=crit_supplier,
|
||||
firm_req_prf_size=firm_req_prf_size,
|
||||
firm_req_prf_conn=firm_req_prf_conn,
|
||||
firm_acc_prf_size=firm_acc_prf_size,
|
||||
firm_acc_prf_conn=firm_acc_prf_conn,
|
||||
netw_sply_prf_n=netw_sply_prf_n,
|
||||
netw_sply_prf_size=netw_sply_prf_size,
|
||||
cap_limit=cap_limit,
|
||||
|
||||
Reference in New Issue
Block a user