遗传算法

This commit is contained in:
Cricial
2026-03-15 17:15:30 +08:00
parent 03ac80715f
commit a69e272e43
27 changed files with 934 additions and 191 deletions

View File

@@ -61,7 +61,7 @@ class MyModel(Model):
self.cap_limit_prob_type = params['cap_limit_prob_type'] # 产能限制的概率分布类型。
self.cap_limit_level = params['cap_limit_level'] # 产能限制的水平。
self.diff_new_conn = params['diff_new_conn'] # 是否允许差异化的新连接。
# 初始化停止时间步,可能是用户通过参数传入
# 初始化停止时间步
self.int_stop_ts = params.get('n_iter', 100) # 默认停止时间为 100
# 网络初始化