|
Algorithm 1 Guard-Layer Action Filtering |
-
1:
Input: state , policy action , threshold , relaxation
-
2:
Output: safe action
-
3:
GetEligibleNodes
-
4:
if then
-
5:
return no-transmit
-
6:
end if
-
7:
Decode(at) {extract node index}
-
8:
{relaxed threshold}
-
9:
if and then
-
10:
return {action is safe}
-
11:
end if
-
12:
for each do
-
13:
-
14:
end for
-
15:
return Encode
|