|
Algorithm 1: Environmental actions through the global feedback |
|
Input: the observables
|
|
Output: as the final action in environmental actions mode |
| Initialization:
|
| Pre-adaptive actions:
|
| Reduce data rate till BER<FEC-threshold
|
| Make steady state mode off, prediction mode on |
| Probability box% = 96, threshold = 0.01, , j = 1
|
|
|
| Apply to the environment (fiber optic channel) |
| 1: for
(see Table 3) |
| 2: Take the observable
|
| 3: if the model is not available then
|
| 4: if BER > FEC-threshold then
|
| 5: Estimate using
|
| 6: Estimate by decision making |
| 7: else
|
| 8: Extract the
|
| 9: Calculate the posterior
|
| 10: Estimate by decision making |
| 11: end if
|
| 12: else if model is available then
|
| 13: Load model, evidence and posterior from preceptor library |
| 14: Estimate by decision making |
| 15: end if
|
| 16: Send PF1, to the executive |
| Internal reward
|
| 17: Calculate and send it to executive |
| Planning
|
| 18: Localize the set of all close actions to ck
|
| Learning
|
| 19: Apply
virtually ()
|
| 20: Calculate
|
| 21: Predict
|
| 22: Calculate
|
| 23: if
|
| and
then
|
| 24: apply to the fiber link |
| 25:
|
| 26:
|
| 27: else
|
| 28: Turn steady state on (Stay on ) |
| 29: end if
|
| 30: end for
|