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

似乎无法基于先验解继续寻优 #364

Open
ludedage99 opened this issue May 29, 2024 · 3 comments
Open

似乎无法基于先验解继续寻优 #364

ludedage99 opened this issue May 29, 2024 · 3 comments

Comments

@ludedage99
Copy link

开发者您好,我在计算时输入的prophetChrom是比较优的解,但是为什么保留不下来,不能基于其再寻优呢?无论是哪个进化算法似乎都在重新搜索而产生比先验解更差的解。

@geatpy-dev
Copy link
Owner

请根据代码自行检查修改框架代码。Geatpy主要只提供和维护EA算子。

@ludedage99
Copy link
Author

请根据代码自行检查修改框架代码。Geatpy主要只提供和维护EA算子。

好的,谢谢您的回复。可能是算法机制的导致先验解无法保留,应该不是函数没有起作用

@ludedage99
Copy link
Author

请根据代码自行检查修改框架代码。Geatpy主要只提供和维护EA算子。

进一步测试发现原因在于算法的调用方式。使用myAlgorithm.call_aimFunc(prophetPop)的方式调用算法模板不会丢失先验解,而使用res = ea.optimize(myAlgorithm, prophets=prophetPop)的调用方式会丢失,可能是es.optimize调用方式中的prophets=prophetPop未起作用

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

2 participants