Open xfby2016 opened 1 year ago
@geatpy-dev 求助
你print一下self.problem.M,和population.sizes,应该就能解决了。
File "D:\Anaconda\envs\pyn\lib\site-packages\geatpy\algorithms\moeas\nsga3\moea_NSGA3_DE_templet.py", line 81, in run uniformPoint, NIND = ea.crtup(self.problem.M, population.sizes) # 生成在单位目标维度上均匀分布的参考点集 File "core\crtup.py", line 85, in crtup.crtup OverflowError: integer division result too large for a float
这个报错解决后引出如下报错: File "D:\Anaconda\envs\pyn\lib\site-packages\geatpy\algorithms\moeas\nsga3\moea_NSGA3_DE_templet.py", line 81, in run uniformPoint, NIND = ea.crtup(self.problem.M, population.sizes) # 生成在单位目标维度上均匀分布的参考点集 File "core\crtup.py", line 85, in crtup.crtup OverflowError: integer division result too large for a float
目标变量201个、决策变量1077个;代码如下: 问题定义:
参数设置:
报错: File "D:\Anaconda\envs\pyn\lib\site-packages\geatpy\algorithms\moeas\nsga3\moea_NSGA3_DE_templet.py", line 81, in run uniformPoint, NIND = ea.crtup(self.problem.M, population.sizes) # 生成在单位目标维度上均匀分布的参考点集 File "core\crtup.py", line 85, in crtup.crtup OverflowError: integer division result too large for a float
是NIND设置的太大吗?但是小于目标函数个数的时候抛出: uniformPoint, NIND = ea.crtup(self.problem.M, population.sizes) # 生成在单位目标维度上均匀分布的参考点集 File "core\crtup.py", line 79, in crtup.crtup RuntimeError: error in crtup: The number of expected points must not be smaller than the dimension. (期望得到的点集大小不能小于空间的维数。)