[討論] GA新手使用內建的toolbox之問題已回收
我想要求解 min y=normcdf(-x(1)+2*x(2)^0.5)+normcdf(-x(1)-2*x(2)^0.5)
適應性函數寫成的M檔案如下:
function y =fitness(x)
y=normcdf(-x(1)+2*x(2)^0.5)+normcdf(-x(1)-2*x(2)^0.5)
為什麼執行toolbox裡的GA會出現如下的訊息呢?
Optimization running.
Undefined function or method 'erfc' for input arguments of type 'double'
and attributes 'full scalar complex'.
拜託熟悉MATLAB的好心人解答一下 謝謝~~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.251.191.230