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

Fix duplicate solutions in the final Pareto solution set and address issues with blank Pareto front plots in newer versions of matplotlib. #377

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

daytime001
Copy link
Contributor

pareto前沿图

原项目在绘制3维帕累托前沿图时使用self.ax = Axes3D(self.fig)创建绘图区域,但是在目前较高版本中已被弃用,绘制出的3维pareto前沿图空白,而修改为self.ax = self.fig.add_subplot(111, projection='3d')可以正常绘制,如下图所示
pareto前沿图空白
pareto前沿图_修改后

pareto解集中存在重复解

本人在使用moea_NSGA2_templet进行多目标问题求解时最终求得的pareto解集中总是会出现重复解,且各个解顺序杂乱,不利于作出决策
重复解
图中两个解的值完全一样(包括后面精确到所有位数),并且随着种群大小、迭代次数的增多,重复解个数会越来越多
本人通过NDSet = NDSet[np.unique(NDSet.ObjV,return_index=True,axis=0)[1]]对重复解进行排除,并且各个解按照大小顺序排列
无重复解

…issues with blank Pareto front plots in newer versions of matplotlib.
@geatpy-dev geatpy-dev merged commit a48a6e7 into geatpy-dev:master Sep 20, 2024
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants