GA optimasation error during the running , the subcript indices must be integer positive or logical?
1 次查看(过去 30 天)
显示 更早的评论
i define my fiteness function for the GA using 'assignin' expression
function [y]=myfiteness(x)
assignin('base','na',x(1));
assignin('base','nb',x(2));
[~,~,Y]=sim('mymodel',[0,1]);
y=y(end,2);
after using otimtool for GA for the function , the running stops and a message apear in the running section of the optimtool which show the following ''the subcript indices must be integer positive or logical''
so how to solve this problem????????
3 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!