set maximun interation limit: para n_iter
This commit is contained in:
parent
206dd2fbc0
commit
695bfb409c
|
@ -5,8 +5,6 @@ meta_seed: 0
|
||||||
|
|
||||||
test: # only for test scenarios
|
test: # only for test scenarios
|
||||||
n_sample: 1
|
n_sample: 1
|
||||||
n_iter: 20
|
|
||||||
|
|
||||||
not_test: # normal scenarios
|
not_test: # normal scenarios
|
||||||
n_sample: 50
|
n_sample: 50
|
||||||
n_iter: 20
|
|
||||||
|
|
|
@ -134,7 +134,6 @@ class ControllerDB:
|
||||||
idx_scenario=idx_scenario,
|
idx_scenario=idx_scenario,
|
||||||
idx_init_removal=idx_init_removal,
|
idx_init_removal=idx_init_removal,
|
||||||
n_sample=int(self.dct_parameter['n_sample']),
|
n_sample=int(self.dct_parameter['n_sample']),
|
||||||
n_iter=int(self.dct_parameter['n_iter']),
|
|
||||||
dct_lst_init_disrupt_firm_prod=dct_lst_init_disrupt_firm_prod,
|
dct_lst_init_disrupt_firm_prod=dct_lst_init_disrupt_firm_prod,
|
||||||
g_bom=g_bom,
|
g_bom=g_bom,
|
||||||
n_max_trial=n_max_trial,
|
n_max_trial=n_max_trial,
|
||||||
|
|
1
model.py
1
model.py
|
@ -13,7 +13,6 @@ class Model(ap.Model):
|
||||||
# self para
|
# self para
|
||||||
self.sample = self.p.sample
|
self.sample = self.p.sample
|
||||||
self.int_stop_times, self.int_stop_t = 0, None
|
self.int_stop_times, self.int_stop_t = 0, None
|
||||||
self.int_n_iter = int(self.p.n_iter)
|
|
||||||
self.product_network = None # agentpy network
|
self.product_network = None # agentpy network
|
||||||
self.firm_network = None # agentpy network
|
self.firm_network = None # agentpy network
|
||||||
self.firm_prod_network = None # networkx
|
self.firm_prod_network = None # networkx
|
||||||
|
|
Loading…
Reference in New Issue