set maximun interation limit: para n_iter

This commit is contained in:
HaoYizhi 2023-07-02 15:17:46 +08:00
parent 206dd2fbc0
commit 695bfb409c
3 changed files with 0 additions and 4 deletions

View File

@ -5,8 +5,6 @@ meta_seed: 0
test: # only for test scenarios
n_sample: 1
n_iter: 20
not_test: # normal scenarios
n_sample: 50
n_iter: 20

View File

@ -134,7 +134,6 @@ class ControllerDB:
idx_scenario=idx_scenario,
idx_init_removal=idx_init_removal,
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,
g_bom=g_bom,
n_max_trial=n_max_trial,

View File

@ -13,7 +13,6 @@ class Model(ap.Model):
# self para
self.sample = self.p.sample
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.firm_network = None # agentpy network
self.firm_prod_network = None # networkx