【发布时间】:2018-05-01 00:27:49
【问题描述】:
∀ d1, d2 ∈ D: ∃ ( p[i] ∈ P[d1]) ∩(p[j] ∈ P[d2] ) ∩ (l ∈ p[i] ∩ l ∈ p[j])
我想写这个条件但是不知道怎么写!
我写的如你所见,对吗?
{int} path[Demands][K_sp]=...; ( we have k_sp shortest pathes for each demand, that each shortest path includes index of links)
{int} Path[Demands]=...; (i insert all of index links for k_sp shortest paths a demand in this array)
forall (i in Demands, j in Demands : i!=j && card(Path[i] inter Path[j])!=0)
D[i][j]+D[j][i]==1;
【问题讨论】:
标签: optimization conditional-statements cplex