clear all ;clc;warning off all;
%% 主函数
NumPop=30;
MaxIter=500;
FunName='F3';
% [lb,ub,dim,fobj]=Get_Functions_details(FunName);
[lb,ub,dim,fobj]=Select_Functions(FunName);
[Best_score,Best_BOA,cg_curve]=BOA(NumPop,MaxIter,lb,ub,dim,fobj);
%%
figure(1)
plot(real(cg_curve),'Color','r','LineWidth',3);
title('Convergence curve');
xlabel('Iteration');ylabel('Best score obtained so far');
grid off;box on;legend('BOA');
%% %%%%%%%%%%%%%%%%% no more %%%%%%%%%%%%%%%%%%%%%