Skip to main content
. 2019 May 10;19(9):2175. doi: 10.3390/s19092175
Algorithm 1: Environmental actions through the global feedback
Input: the observables Ynk
Output:ck+1 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, PF=2, j = 1
   ck+1firstactionfromC
  Apply ck+1 to the environment (fiber optic channel)
  1: for k=(k+1)toK (see Table 3)
  2:   Take the observable Ynk
  3:    if the model is not available then
  4:    if BER > FEC-threshold then
  5:    Estimate P(X^nk|Ynk) using P(Y^nk1|X^nk1)
  6:    Estimate X¯nk by decision making
  7:   else
  8:     Extract the P(Y^nk|X^nk)andP(Y^nk)
  9:      Calculate the posterior P(X^nk|Y^nk)
  10:   Estimate X¯nk by decision making
  11:  end if
  12:  else if model is available then
  13:  Load model, evidence and posterior from preceptor library
  14:   Estimate X¯nk by decision making
  15:  end if
  16:   Send PF1, P(Y^nk|Xnk)andP(Y^nk) to the executive
  Internal reward
  17:  Calculate BERk,andrwjk and send it to executive
  Planning
  18:  Localize the set of all close actions to ck
  Learning
  19:  Apply ck+1 virtually (ck+1C)
  20:  Calculate P(Xn(k+1)|Y^nk)
  21:  Predict X¯n(k+1)
  22:  Calculate BERk+1andrwj+1k+1
  23:  if BER(k+1)threshold
  and rwj+1k+1rwjk then
  24:    apply ck+1 to the fiber link
  25:    jj+1
  26:    kk+1
  27:  else
  28:    Turn steady state on (Stay on ck)
  29:  end if
  30: end for