Code covered by the BSD License
18 Sep 2012
19 Sep 2012)
Analysis and design of composite blades for wind and hydrokinetic turbines
function f = binarytestfcn(x)
% The minimum value of f should be obtained when x = [0,1,0,1,0,1, etc].
if length(x) < 2, x(2) = 0 ; end
f = sum(x(1:2:end)) - sum(x(2:2:end)) ;