function used in the script
% Function of Box's evolutionary Optimization Method
function fval = evolutionfun(x)
x1 = x(1);
x2 = x(2);
fval = ((x1.^2+ x2 -11).^2 + (x1 + x2.^2-7).^2) ; % enter your function here
end
% save this function in the same place as the script file
引用格式
Vaibhav (2026). Box's Evolutionary algorithm (https://ww2.mathworks.cn/matlabcentral/fileexchange/62649-box-s-evolutionary-algorithm), MATLAB Central File Exchange. 检索时间: .
