IEEE Computational Intelligence Magazine - February 2023 - 91

Algorithm 4. The Pseudo-Code of DQ-HSES
Input: an optimization function fðxÞ; x 2 R
1: Set Idx 2 R
Output: an optimal solution x
ed ~0; t 0; a0 0;
2: while at 6¼ 1 and t < T do
3: Xtþ1 UniSamplingðXt; f; Idx; 10Þ;
4:
5:
6:
t t þ 1;
st RepresentðXt; log ðfðXtÞÞÞ;
at arg maxaDQNðst; a; wÞ;
7: end
8: ½Xt2
10: ½Xt3
; x
9: Idx DetectðXt2
; x
11: return x x
2 CMA-ESðXt; uÞ;
Þ;
3 UniSamplingðXt2
3.
; f; IdxÞ;
Action: The action spaceA is f0; 1g.
ed, initial population X0 2 R
maximum number of evaluations maxNFEs
edN, and the
That is, the agent can either choose to
switch (the action takes 1) to CMA-ES or
not switch (the action takes 0).
Transition Probability: In case at
at ¼ 1, and t ¼
some t < T,
T 1; at ¼ 0, stþ1 will be the " terminal
state " . The horizon T constrains the
maximal computational resources used
for the first univariate sampling.
Reward: Three cases are considered
B. DQ-HSES
Here we present how to use a Deep Q
Network (DQN) to control the switching
time in HSES. Algorithm 4 summarizes
the pseudo-code of the developed
algorithm (named as DQ-HSES).
In DQ-HSES, whether to switch
from univariate sampling to CMA-ES is
judged in every 10 generations. In
Algorithm 4, univariate sampling is first
carried out for 10 generations (line 3).
The obtained function values are summarized
to obtain the current state
(line 5). The DQN with the learned
parameter w determines an action in
line 6, which takes a value of 0 or 1. If
the action is 1, the switch happens; otherwise
the univariate sampling is carried
out again. The rest of the components,
including the parameter settings, are the
same as in HSES. Notice that in the
original HSES, the fitness evaluation
number of CMA-ES is limited to
maxNFEs/2. In our experiment, we
guarantee the evaluations for the first
univariate sampling is not larger than
maxNFEs/2 by setting T for the first
univariate sampling procedure. The
flow chart of DQ-HSES is shown in
Figure 3, in which the RL agent is used
to control when to escape from the univariate
sampling phase.
C. Training the SwitcherAgent
To find the optimal weights (denoted as
w) for the DQN, which is called the
switcher agent, deep Q-learning is used
by modeling the evolution process of
DQ-HSES as a finite-horizon MDP
with continuous state and discrete
action space. fk
best represents the minimum
function value obtained up to the
k-th generation.
State: st is a concatenation of s1
t and
s2
t which are defined as follows. When
t > 1,
s1
t ,
s2
t ,
log f10ðt2Þ
best
log f0
log f10ðt2Þ
log f10t
best
best
log f0
1 ,
t
best
best log f10t
best
In case t ¼ 1, s1
the definition, s1
log ðf0
bestÞlog ðf10
jlog ðf0
is used to measure the
bestÞj
difference between the best function
values in adjacent 20 generations; s2
t
measures the descent rate from the first
population.
The state st is thenmodified as a combination
of various bins including ½10s1
10s2
t; ½10s1
t ; 10s2
t; ½s1
t ; 200s2
t; ½s1
t ; 200s2
t
for 10D, 30D, 50D and 100D problems,
respectively.
t ;
bestÞ
: In
;
(4)
when defining the reward. For the terminal
state stþ1,
❏ if t ¼ T 1; at ¼ 0 the reward rtþ1
will be the negative logarithm ofthe
minimum function value found by
HSES by switching at the 10Tth
generation.
❏ if t < T and at ¼ 1, the reward rtþ1
will be the negative logarithm ofthe
minimum function value found by
HSES by switching at the ð10tÞ-th
generation.
For non-terminal state, its reward is
set to zero.
1) The Training Details
Given the above tuple definitions, the
DQL training procedure can be summarized
in Algorithm 5. Algorithm 5 differs
from the classical DQL in two aspects.
First, in classical DQL, the network takes a
state as input. Its output is a vector which
has the same dimension as the action space.
Each component ofthe output vector corresponds
to the Q-value for each action
[50]. This means that the weights in the
DQN except the last layer are shared for
all actions. The shared weights can extract
some common features of the state, but
such structure could sacrifice the DQN's
learning capacity. To address this problem,
two networks Q1ðS; wÞ and Q2ðS; wÞ
are used to replace QðS; 0; wÞ and
QðS; 1; wÞ, respectively.
Second, a DQN is trained for each
training function rather than a DQN for
all the functions. This is to eliminate the
interferences among different learned
DQNs due to the diverse ranges ofdifferent
training functions.
Notice that in line 3, the trajectory
m is generated similarly to that in the
Trl
FIGURE 3 The flow chart of the proposed approach DQ-HSES.
training process for Q-LSHADE (Algorithm
3). The difference is implementing
FEBRUARY 2023 | IEEE COMPUTATIONAL INTELLIGENCE MAGAZINE 91

IEEE Computational Intelligence Magazine - February 2023

Table of Contents for the Digital Edition of IEEE Computational Intelligence Magazine - February 2023

Contents
IEEE Computational Intelligence Magazine - February 2023 - Cover1
IEEE Computational Intelligence Magazine - February 2023 - Cover2
IEEE Computational Intelligence Magazine - February 2023 - Contents
IEEE Computational Intelligence Magazine - February 2023 - 2
IEEE Computational Intelligence Magazine - February 2023 - 3
IEEE Computational Intelligence Magazine - February 2023 - 4
IEEE Computational Intelligence Magazine - February 2023 - 5
IEEE Computational Intelligence Magazine - February 2023 - 6
IEEE Computational Intelligence Magazine - February 2023 - 7
IEEE Computational Intelligence Magazine - February 2023 - 8
IEEE Computational Intelligence Magazine - February 2023 - 9
IEEE Computational Intelligence Magazine - February 2023 - 10
IEEE Computational Intelligence Magazine - February 2023 - 11
IEEE Computational Intelligence Magazine - February 2023 - 12
IEEE Computational Intelligence Magazine - February 2023 - 13
IEEE Computational Intelligence Magazine - February 2023 - 14
IEEE Computational Intelligence Magazine - February 2023 - 15
IEEE Computational Intelligence Magazine - February 2023 - 16
IEEE Computational Intelligence Magazine - February 2023 - 17
IEEE Computational Intelligence Magazine - February 2023 - 18
IEEE Computational Intelligence Magazine - February 2023 - 19
IEEE Computational Intelligence Magazine - February 2023 - 20
IEEE Computational Intelligence Magazine - February 2023 - 21
IEEE Computational Intelligence Magazine - February 2023 - 22
IEEE Computational Intelligence Magazine - February 2023 - 23
IEEE Computational Intelligence Magazine - February 2023 - 24
IEEE Computational Intelligence Magazine - February 2023 - 25
IEEE Computational Intelligence Magazine - February 2023 - 26
IEEE Computational Intelligence Magazine - February 2023 - 27
IEEE Computational Intelligence Magazine - February 2023 - 28
IEEE Computational Intelligence Magazine - February 2023 - 29
IEEE Computational Intelligence Magazine - February 2023 - 30
IEEE Computational Intelligence Magazine - February 2023 - 31
IEEE Computational Intelligence Magazine - February 2023 - 32
IEEE Computational Intelligence Magazine - February 2023 - 33
IEEE Computational Intelligence Magazine - February 2023 - 34
IEEE Computational Intelligence Magazine - February 2023 - 35
IEEE Computational Intelligence Magazine - February 2023 - 36
IEEE Computational Intelligence Magazine - February 2023 - 37
IEEE Computational Intelligence Magazine - February 2023 - 38
IEEE Computational Intelligence Magazine - February 2023 - 39
IEEE Computational Intelligence Magazine - February 2023 - 40
IEEE Computational Intelligence Magazine - February 2023 - 41
IEEE Computational Intelligence Magazine - February 2023 - 42
IEEE Computational Intelligence Magazine - February 2023 - 43
IEEE Computational Intelligence Magazine - February 2023 - 44
IEEE Computational Intelligence Magazine - February 2023 - 45
IEEE Computational Intelligence Magazine - February 2023 - 46
IEEE Computational Intelligence Magazine - February 2023 - 47
IEEE Computational Intelligence Magazine - February 2023 - 48
IEEE Computational Intelligence Magazine - February 2023 - 49
IEEE Computational Intelligence Magazine - February 2023 - 50
IEEE Computational Intelligence Magazine - February 2023 - 51
IEEE Computational Intelligence Magazine - February 2023 - 52
IEEE Computational Intelligence Magazine - February 2023 - 53
IEEE Computational Intelligence Magazine - February 2023 - 54
IEEE Computational Intelligence Magazine - February 2023 - 55
IEEE Computational Intelligence Magazine - February 2023 - 56
IEEE Computational Intelligence Magazine - February 2023 - 57
IEEE Computational Intelligence Magazine - February 2023 - 58
IEEE Computational Intelligence Magazine - February 2023 - 59
IEEE Computational Intelligence Magazine - February 2023 - 60
IEEE Computational Intelligence Magazine - February 2023 - 61
IEEE Computational Intelligence Magazine - February 2023 - 62
IEEE Computational Intelligence Magazine - February 2023 - 63
IEEE Computational Intelligence Magazine - February 2023 - 64
IEEE Computational Intelligence Magazine - February 2023 - 65
IEEE Computational Intelligence Magazine - February 2023 - 66
IEEE Computational Intelligence Magazine - February 2023 - 67
IEEE Computational Intelligence Magazine - February 2023 - 68
IEEE Computational Intelligence Magazine - February 2023 - 69
IEEE Computational Intelligence Magazine - February 2023 - 70
IEEE Computational Intelligence Magazine - February 2023 - 71
IEEE Computational Intelligence Magazine - February 2023 - 72
IEEE Computational Intelligence Magazine - February 2023 - 73
IEEE Computational Intelligence Magazine - February 2023 - 74
IEEE Computational Intelligence Magazine - February 2023 - 75
IEEE Computational Intelligence Magazine - February 2023 - 76
IEEE Computational Intelligence Magazine - February 2023 - 77
IEEE Computational Intelligence Magazine - February 2023 - 78
IEEE Computational Intelligence Magazine - February 2023 - 79
IEEE Computational Intelligence Magazine - February 2023 - 80
IEEE Computational Intelligence Magazine - February 2023 - 81
IEEE Computational Intelligence Magazine - February 2023 - 82
IEEE Computational Intelligence Magazine - February 2023 - 83
IEEE Computational Intelligence Magazine - February 2023 - 84
IEEE Computational Intelligence Magazine - February 2023 - 85
IEEE Computational Intelligence Magazine - February 2023 - 86
IEEE Computational Intelligence Magazine - February 2023 - 87
IEEE Computational Intelligence Magazine - February 2023 - 88
IEEE Computational Intelligence Magazine - February 2023 - 89
IEEE Computational Intelligence Magazine - February 2023 - 90
IEEE Computational Intelligence Magazine - February 2023 - 91
IEEE Computational Intelligence Magazine - February 2023 - 92
IEEE Computational Intelligence Magazine - February 2023 - 93
IEEE Computational Intelligence Magazine - February 2023 - 94
IEEE Computational Intelligence Magazine - February 2023 - 95
IEEE Computational Intelligence Magazine - February 2023 - 96
IEEE Computational Intelligence Magazine - February 2023 - 97
IEEE Computational Intelligence Magazine - February 2023 - 98
IEEE Computational Intelligence Magazine - February 2023 - 99
IEEE Computational Intelligence Magazine - February 2023 - 100
IEEE Computational Intelligence Magazine - February 2023 - 101
IEEE Computational Intelligence Magazine - February 2023 - 102
IEEE Computational Intelligence Magazine - February 2023 - 103
IEEE Computational Intelligence Magazine - February 2023 - 104
IEEE Computational Intelligence Magazine - February 2023 - Cover3
IEEE Computational Intelligence Magazine - February 2023 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202311
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202308
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202305
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202302
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202211
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202208
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202205
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202202
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202111
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202108
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202105
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202102
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202011
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202008
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202005
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_202002
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201911
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201908
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201905
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201902
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201811
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201808
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201805
https://www.nxtbook.com/nxtbooks/ieee/computationalintelligence_201802
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter17
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall17
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_summer17
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_spring17
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter16
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall16
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_summer16
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_spring16
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter15
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall15
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_summer15
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_spring15
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter14
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall14
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_summer14
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_spring14
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter13
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall13
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_summer13
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_spring13
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_winter12
https://www.nxtbook.com/nxtbooks/ieee/computational_intelligence_fall12
https://www.nxtbookmedia.com