Skip to content

Commit

Permalink
doc: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
guofei9987 committed Aug 11, 2020
1 parent 156767c commit 0d9db89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/zh/args.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ help(sko.AFSA.AFSA)
| F | 0\.5 | 变异系数 |
| lb | \-1 | 每个参数的最小值 |
| ub | 1 | 每个参数的最大值 |

| constraint\_eq | 空元组 | 线性约束 |
| constraint\_ueq | 空元组 | 非线性约束 |

### SA

Expand Down
2 changes: 1 addition & 1 deletion docs/zh/more_ga.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ plt.show()
## 如何设定初始点或初始种群

- 对于遗传算法 `GA`, 运行 `ga=GA(**params)` 生成模型后,赋值设定初始种群,例如 `ga.Chrom = np.random.randint(0,2,size=(80,20))`
- 对于查分进化算法 `DE`,设定 `de.X` 为初始 X.
- 对于差分进化算法 `DE`,设定 `de.X` 为初始 X.
- 对于模拟退火算法 `SA`,入参 `x0` 就是初始点.
- 对于粒子群算法 `PSO`,手动赋值 `pso.X` 为初始 X, 然后执行 `pso.cal_y(); pso.update_gbest(); pso.update_pbest()` 来更新历史最优点

0 comments on commit 0d9db89

Please sign in to comment.