geatpy icon indicating copy to clipboard operation
geatpy copied to clipboard

请问 为什么我把myAlgorithm.drawing =设置为1代码可以正常运行并结束,但是设置为2的时候就会报“x and y must have same first dimension, but have shapes (50,) and (38, 1)”这样的错误?

Open wenkang2261 opened this issue 3 years ago • 2 comments

请问 为什么我把myAlgorithm.drawing =设置为1代码可以正常运行并结束,但是设置为2的时候就会报“x and y must have same first dimension, but have shapes (50,) and (38, 1)”这样的错误?

wenkang2261 avatar Jun 11 '21 01:06 wenkang2261

你把可以重现问题的完整代码发来看看。

geatpy-dev avatar Jun 13 '21 05:06 geatpy-dev

您好:   主程序是main.py文件,我的问题是myAlgorithm.drawing = 1时程序正常运行结束并绘制出了收敛曲线,但设置为2运行到20代的样子就报错误了。

------------------ 原始邮件 ------------------ 发件人: "geatpy-dev/geatpy" @.>; 发送时间: 2021年6月13日(星期天) 中午1:35 @.>; @.@.>; 主题: Re: [geatpy-dev/geatpy] 请问 为什么我把myAlgorithm.drawing =设置为1代码可以正常运行并结束,但是设置为2的时候就会报“x and y must have same first dimension, but have shapes (50,) and (38, 1)”这样的错误? (#195)

你把可以重现问题的完整代码发来看看。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wenkang2261 avatar Jun 13 '21 05:06 wenkang2261