Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

离散变量怎么设置取值间隔,以提升取值的精度 #374

Open
huhewen opened this issue Jul 30, 2024 · 6 comments
Open

离散变量怎么设置取值间隔,以提升取值的精度 #374

huhewen opened this issue Jul 30, 2024 · 6 comments

Comments

@huhewen
Copy link

huhewen commented Jul 30, 2024

比如变量的取值范围是[3,10], 设置为离散变量后只能取整数值, 有没有什么办法让其以一定的间隔(步长,分辨率)取小数值, 比如以0.1为间隔,取 3.1,3.2,3.3 .........

@geatpy-dev
Copy link
Owner

参考soea_demo11

@huhewen
Copy link
Author

huhewen commented Aug 2, 2024

参考soea_demo11

谢谢指导,有个地方稍微不太明白。soea_demo11 里的方法应该把传入到evalVars 里的 参数当作索引取 设定的参数集里取值形成变量矩阵, 那是不是每进化一次都要从设定的参数集里重新取值形成变量矩阵,然后遗传算法就没啥用了。这个点理解的不是很明白,能否给解释一下,谢谢

@whkrain
Copy link

whkrain commented Dec 9, 2024

参考soea_demo11

谢谢指导,有个地方稍微不太明白。soea_demo11 里的方法应该把传入到evalVars 里的 参数当作索引取 设定的参数集里取值形成变量矩阵, 那是不是每进化一次都要从设定的参数集里重新取值形成变量矩阵,然后遗传算法就没啥用了。这个点理解的不是很明白,能否给解释一下,谢谢

我的理解,这个只是用来生成变量矩阵的,遗传算法起作用的还是后续的重组、变异和选择。参数集虽然是固定的,但是索引每次都是不一样的,因此最终的变量矩阵也不一样。遗传算法不会失效。

@zeroraiser
Copy link

zeroraiser commented Dec 9, 2024 via email

@xm1490
Copy link

xm1490 commented Dec 9, 2024 via email

@zzxzfy
Copy link

zzxzfy commented Dec 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants