Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
2.6 kB
1
Indexable
Never
map_allPossible_Actions
 [0, 2, 5, 16]
dict_encap creato:
dict_encap_8:
 {9: [8, 16, 1, 11, 9]}
dict_encap creato:
dict_encap_0:
 {9: [0, 16, 9]}
cammini 8 0  [13, 0, 1, 8, 9]
go





primo aggionramento PSID
 [230  13   9]
!!! START COMPUTING THE TOTAL BIG PATH OF THE FLOW !!!!
flow:
 [217 13 9 1 3.3971815407213173]
segment list of the flow
 [13, 9]
start iterating over sl
active segment:  9
underlay_path[13][9] = [13, 0, 1, 8, 9]
total_underlay_path [(13, 9), (0, 9), (1, 9), (8, 9), (9, 9)]
lista di (agent,action):
 [(0, 9, [0, 16, 9]), (8, 9, [8, 16, 1, 11, 9])]
applica for n in range(len(underlay_path)-1):incapsulamenti
mod:  (0, 9, [0, 16, 9])
index 1
index:  1        new_sl:  [0, 16, 9]
modifico
encaps -  underlay_path
 [0, 16]
new total_underlay_path
 [(13, 9), (0, 16), (9, 9)]
encaps -  underlay_path
 [16, 8, 9]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (9, 9)]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 9), (9, 9)]
mod:  (0, 9, [0, 16, 9])
index -1
mod:  (8, 9, [8, 16, 1, 11, 9])
index 3
index:  3        new_sl:  [8, 16, 1, 11, 9]
modifico
encaps -  underlay_path
 [8, 16]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 16), (9, 9)]
encaps -  underlay_path
 [16, 1]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 16), (16, 1), (9, 9)]
encaps -  underlay_path
 [1, 11]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 16), (16, 1), (1, 11), (9, 9)]
encaps -  underlay_path
 [11, 10, 9]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 16), (16, 1), (1, 11), (11, 9), (9, 9)]
new total_underlay_path
 [(13, 9), (0, 16), (16, 9), (8, 16), (16, 1), (1, 11), (11, 9), (10, 9), (9, 9)]
FINAL TOTAL UNDERLAY PATH:    [(13, 9), (0, 16), (16, 9), (8, 16), (16, 1), (1, 11), (11, 9), (10, 9), (9, 9)]
Abbiamo cicli! dobbiamo andare a reward negativa! come lo facciamo???????
(13, 9) (0, 16)
link rete in pos id_link
 [39 13 0 0 150]
psid in pos id_psid
 [9 0 9]
(0, 16) (16, 9)
link rete in pos id_link
 [5 0 16 0 150]
psid in pos id_psid
 [288  16  16]
(16, 9) (8, 16)
link rete in pos id_link
 [51 16 8 0 150]
psid in pos id_psid
 [145   8   9]
(8, 16) (16, 1)
link rete in pos id_link
 [29 8 16 0 150]
psid in pos id_psid
 [288  16  16]
(16, 1) (1, 11)
link rete in pos id_link
 [49 16 1 0 150]
psid in pos id_psid
 [18  1  1]
(1, 11) (11, 9)
link rete in pos id_link
 [8 1 11 0 150]
psid in pos id_psid
 [198  11  11]
(11, 9) (10, 9)
link rete in pos id_link
 [36 11 10 0 150]
psid in pos id_psid
 [179  10   9]
(10, 9) (9, 9)
link rete in pos id_link
 [33 10 9 0 150]
psid in pos id_psid
 [162   9   9]