no message

This commit is contained in:
Cricial
2025-12-13 12:56:14 +08:00
parent 0e52fcb34b
commit 03ac80715f
2 changed files with 3 additions and 7 deletions

View File

@@ -17,13 +17,11 @@ from orm import connection, engine
def fitness(individual, controller_db_obj):
"""
遗传算法适应度函数:用于评估个体(模型参数)的优劣。
参数:
individual : list
个体参数列表:
[n_max_trial, prf_size, prf_conn, cap_limit_prob_type, cap_limit_level,
diff_new_conn, netw_prf_n, s_r, S_r, x, k, production_increase_ratio]
目标:
使 ABM 模型生成的“脆弱产业集合”与目标产业集合尽可能相似。
- fitness = -error

View File

@@ -15,12 +15,10 @@
├── controller_db.py # 数据库控制器(需补充)
├── my_model.py # ABM模型实现需补充
├── orm.py # 数据库ORM配置需补充
── GA_Agent_0925/ # 遗传算法相关模块
├── creating.py # 工具箱创建
├── orm.py # 数据库配置
│ └── SQL_analysis_risk_ga.sql # 分析SQL脚本
── creating.py # 工具箱创建
── orm.py # 数据库配置
── SQL_analysis_risk_ga.sql # 分析SQL脚本
├── results/ # 结果输出目录(自动创建)
└── requirements.txt # 依赖包列表(需补充)
```
## 功能特性