geatpy-dev / geatpy

Evolutionary algorithm toolbox and framework with high performance for Python
http://www.geatpy.com
GNU Lesser General Public License v3.0
1.96k stars 725 forks source link

关于决策变量为小数时的离散化情况 #343

Open XgSuen opened 8 months ago

XgSuen commented 8 months ago

请问如何实现决策变量为小数时,让其离散化的情况: 比如: 决策变量x区间为[0.1,0.4],是否能够让其在步长为0.1的情况下来更新,即可选集合为[0.1,0.2,0.3,0.4]

geatpy-dev commented 8 months ago

可以用映射的方法离散化