【优化求解】基于世界杯算法求解最优目标matlab代码
1 简介
世界杯算法(World Cup Optimization(WCO))是于2016年提出的,一种基于国际足联世界杯比赛的数
学函数优化方法。该方法具有收敛速度快,寻优能力强等特点。
This paper presents a new optimization algorithm based on human society’s intelligent contests.
FIFA World Cup is an international association football competition competed by the senior men’s
national teams. This contest is one of the most significant competitions among the humans in
which people/teams try hard to overcome the others to earn the victory. In this competition there
is only one winner which has the best position rather than the others. This paper introduces a
new technique for optimization of mathematic functions based on FIFA World Cup competitions.
The main difficulty of the optimization problems is that each type of them can be interpreted in a
specific manner. World Cup Optimization (WCO) algorithm has a number of parameters to solve
any type of problems due to defined parameters. For analyzing the system performance, it is
applied on some benchmark functions. It is also applied on an optimal control problem as a
practical case study to find the optimal parameters of PID controller with considering to the
nominal operating points (Kg(Kg, Tg)Tg) changes of the AVR system. The main objective of the
proposed system is to minimize the steady-state error and also to improve the transient response
of the AVR system by optimal PID controller. Optimal values of the PID controller which are
achieved by WCO algorithm are then compared with particle swarm optimization and imperialist
competitive algorithm in different situations. Finally for illustrating the system capability against
the disturbance, it is applied on a generator with disturbance on it and the results are compared
by the other algorithms. The simulation results show the excellence of WCO algorithm
performance into the nature base and other competitive algorithms.
2 部分代码
%% ---------------------------Function-------------------------------------
%1.wca Main Function%2.my_cost_function Fitness
(Cost) Function
%% ------------------INITIALIZATION OF PARAMETERS--------------------------
commandwindow
clear all;
close all;
clc;
disp('************************************** ')
disp(' World Cup Optimization Algorithm ')
disp('************************************** ')
tic
warning('off')
itr=0;
iter=100; %no_competition_periods
no_par=2;
% countries=4;
% continents=5;
% popsize=countries*continents;
le1=length(current_position1);
dle1=popsize-le1;