|
Algorithm 1 HRL for Dynamic Defense Strategy Solving |
Require: System state space S, belief space , strategy sets . Learning rates , discount factor , convergence threshold , exploration rate .
-
1:
Initialize:
-
2:
and with random weights;
-
3:
initial belief .
-
4:
for each episode do
-
5:
Observe initial system state .
-
6:
while s is not terminal do
-
7:
High-level (Meta-Policy):
-
8:
Observe attacker behavior history .
-
9:
Update Bayesian belief using Equation (8).
-
10:
Select strategic posture using -greedy policy based on .
-
11:
Low-level (Sub-Policy):
-
12:
Retrieve attacker cognitive error parameter from hypergame model.
-
13:
Execute specific action based on
.
-
14:
Environment Interaction:
-
15:
Observe attacker action , next state , and transitions.
-
16:
Calculate High-level reward:
-
17:
-
18:
Calculate Low-level reward:
-
19:
-
20:
Policy Update:
-
21:
.
-
22:
.
-
23:
.
-
24:
end while
-
25:
Convergence Check:
-
26:
if and then Terminate: Stable hierarchical policy profile reached.
-
27:
end if
-
28:
end for
|