[討論] GA新手使用內建的toolbox之問題已回收

看板MATLAB作者 (阿水)時間14年前 (2011/07/14 19:30), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我想要求解 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
文章代碼(AID): #1E7jDBiI (MATLAB)