[求助]MATLAB中GA工具箱VECTORIZE是干什么的? 我是一个新手,对matlab不怎么熟练,正在学习ga,请教一些问题,谢谢~
MATLAB中GA工具箱第一个DEMO的最后一个方面的讲到的vectorize是干什么?
该程序源代码如下
%% Vectorizing your fitness function
% Consider the previous fitness function again:
%
% f(x) = a * (x(1)^2 - x(2)) ^2 + (b - x(1))^2;
%
% By default, the GA solver only passes in one point at a time to the
% fitness function. However, sometimes speed up can be achieved if the
% fitness function is vectorized to take a set of points and return a set
% of function valu