no message

This commit is contained in:
Cricial
2025-12-13 12:44:15 +08:00
parent a6b06735f6
commit 0e52fcb34b
41 changed files with 42682 additions and 34029 deletions

View File

@@ -42,7 +42,7 @@ class MyModel(Model):
- netw_prf_n (int): 每个企业的首选供应商数量。
- seed (int): 随机种子的值,用于确保实验的可重复性。
"""
#ga参数增加
# ga参数增加
self.k = params["k"]
self.production_increase_ratio = params["production_increase_ratio"]
self.s_r = params["s_r"]
@@ -93,6 +93,20 @@ class MyModel(Model):
self.product_agents = [] # 初始化产品代理列表
self.company_agents = [] # 初始化公司代理列表
# 进行参数设定计算
# self.n_max_trial = 51.0
# self.prf_size = 0.4550083673391433
# self.prf_conn = 0.4230074859901629
# self.cap_limit_prob_type = "normal"
# self.cap_limit_level = 24.0
# self.diff_new_conn = 0.9607789032744504
# self.netw_prf_n = 3.0
# self.s_r = 0.4271578472186195
# self.S_r = 0.5342606663518962
# self.x = 0.06796086337575724
# self.k = 4.322914089653634
# self.production_increase_ratio = 1.2286610916299323
# 初始化模型的网络和代理
# 检查缓存是否存在
cache_file = "firm_network.pkl"