We model the system as a directed capacitated network:
G = (V, E)
Where: - V: set of nodes - E: set of edges
The network contains three layers:
Node set:
V = V1 ∪ V2 ∪ V3
Edge set:
E = E12 ∪ E13 ∪ E23 ∪ E1 ∪ E2 ∪ E3
Where:
Edge Type Description
E12 Layer1 → Layer2 E13 Layer1 → Layer3 E23 Layer2 → Layer3 E1 within Layer1 E2 within Layer2 E3 within Layer3
Each edge e has a stochastic capacity:
Ce
Capacity is a discrete random variable:
Ce ∈ {c1, c2, ..., ck}
Probability:
P(Ce = ci) = pi
with:
Σ pi = 1
Randomly select 1--5 capacity levels and assign random probabilities.
Example:
capacity: [100,200,300] probability: [0.2,0.5,0.3]
Only one capacity value is selected with probability 1.
Example:
capacity: [400] probability: [1]
Traditional graph learning uses nodes as entities. However, in capacitated flow networks the key variable is edge capacity. Therefore, we transform edges into nodes.
We construct a Line Graph:
Ge = (Ve, Ee)
Where:
Ve = original network edges
Two edges are connected if they share a node.
Example:
(A,B) and (A,C) share node A → connected in line graph.
This produces adjacency matrix:
Ae
Each edge (treated as a node in the line graph) is associated with a time series feature vector.
For edge e:
xe(t)
Basic feature:
xe(t) = Ce(t)
Optional structural features:
xe(t) = [Ce(t), layer_type, centrality]
Input tensor:
X ∈ R^(Ne × T × d)
Where:
Spatial attention captures dependencies between adjacent edges.
Attention score:
a(i,j) = (Qhi)(Khj)^T / √d + φ(i,j)
Where:
Q,K = learnable parameters
Normalize:
α(i,j) = softmax_j(a(i,j))
Update representation:
hi = Σ α(i,j) hj
This mechanism allows the model to focus on important neighboring edges.
Temporal attention models temporal dependencies in edge states.
For time steps ts and tr:
b(ts,tr) = (Qh_ts)(Kh_tr)^T / √d
Normalize:
β(ts,tr)
Update representation:
h(ts) = Σ β(ts,tr) h(tr)
This allows the model to identify important historical states.
Spatial and temporal features are fused using a gating mechanism.
H = r ⊙ H_prev + (1-r) ⊙ (gs Hs + gt Ht)
Where:
Finally, a prediction layer estimates network reliability.
Input:
H
Prediction:
R̂ = f(H)
Where:
R represents:
R = P(all demands satisfied)
Loss function:
L = ||R - R̂||²
Three-layer network → Random capacity generation → Edge-to-node transformation → Edge time-series features → Spatial attention → Temporal attention → Feature fusion → Reliability prediction
本文作者:Darren
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!