Smart-Algorithm icon indicating copy to clipboard operation
Smart-Algorithm copied to clipboard

遗传算法报错IndexError: index 10 is out of bounds for axis 1 with size 10

Open Ryan-Lily opened this issue 2 years ago • 1 comments

IndexError: index 10 is out of bounds for axis 1 with size 10

Ryan-Lily avatar Jun 24 '23 05:06 Ryan-Lily

IndexError: index 10 is out of bounds for axis 1 with size 10

作者在将matlab转为python代码时没注意两种编程语言的数组索引的区别,你可以将m_point改为m_point - 1。

tian0zhi avatar Feb 23 '24 09:02 tian0zhi