guofei9987 / guofei9987/scikit-opt
请问在使用GA做整数规划时,如何使得初始化的值均匀分布?When using GA for integer programming, how to make the initialized values evenly distributed?
Open
feature request
- Dominant language
- Python
- Stars
- 6.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
如题,我在使用GA做整数规划时,调用GA(func=my_fuc, n_dim=100, size_pop=50, max_iter=1000, lb=[0]*100, ub=[3]*100, precision=[1]*100) ,发现初始化的值大多集中在边界处(也就是3),看了一下源码,应该是因为GA.py源码里 X = np.where(X > self.ub, self.ub, X), 请问这样设置是否必要?或者能否使得超过边界值以后分布得更均匀一些,比如使用求余之类得操作?还有,其他方法能否适用整数规划?感谢!
Contributor guide
Assessment
This issue has not been assessed yet.