Fix duplicate solutions in the final Pareto solution set and address issues with blank Pareto front plots in newer versions of matplotlib. #377
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pareto前沿图
原项目在绘制3维帕累托前沿图时使用
self.ax = Axes3D(self.fig)
创建绘图区域,但是在目前较高版本中已被弃用,绘制出的3维pareto前沿图空白,而修改为self.ax = self.fig.add_subplot(111, projection='3d')
可以正常绘制,如下图所示pareto解集中存在重复解
本人在使用
moea_NSGA2_templet
进行多目标问题求解时最终求得的pareto解集中总是会出现重复解,且各个解顺序杂乱,不利于作出决策图中两个解的值完全一样(包括后面精确到所有位数),并且随着种群大小、迭代次数的增多,重复解个数会越来越多
本人通过
NDSet = NDSet[np.unique(NDSet.ObjV,return_index=True,axis=0)[1]]
对重复解进行排除,并且各个解按照大小顺序排列