如何随机制作链
我正在根据文章实施模型。但是有一个我不知道的段落,我该怎么办?该段落说:
A flow f ∈ F is a sequence of
data packets that are
generated at expected rate λf
and sent from a source to a
destination node, traversing a
sequence of intermediate nodes
and links in the network. Each
flow f has a specified service
chain of NFs, denoted as
→S [f] = (S[1][f], S[2].
[f],..., S[J[f]][f]), which
is an ordered sequence of
required NFs that the flow’s
packets must go through,
where S[j][f] ∈ V denotes the
j-th NF on flow f’s service
chain and Jf := |→S [f] | is
the length of the NF chain
of flow f.
我的代码中有这些信息:
int F = 50;
Nuflow = 1..F;
int V = 5;
Nuvnf = 1..V;
我知道λf按日志正常计算,平均速率为0.5,每个流的服务链的长度都在2至4 nfs的范围内变化,而服务类型则在每个流的链条都是随机选择的。 我是CPLEX的新手,我不知道如何为该参数编写代码。你能帮助我吗?非常感谢。
I'm implementing a model based on an article. But there is a paragraph that I don't know, what should I do? That paragraph says :
A flow f ∈ F is a sequence of
data packets that are
generated at expected rate λf
and sent from a source to a
destination node, traversing a
sequence of intermediate nodes
and links in the network. Each
flow f has a specified service
chain of NFs, denoted as
→S [f] = (S[1][f], S[2].
[f],..., S[J[f]][f]), which
is an ordered sequence of
required NFs that the flow’s
packets must go through,
where S[j][f] ∈ V denotes the
j-th NF on flow f’s service
chain and Jf := |→S [f] | is
the length of the NF chain
of flow f.
I have these information in my code:
int F = 50;
Nuflow = 1..F;
int V = 5;
Nuvnf = 1..V;
I know λf calculate with log normal with average rate 0.5 and the length of the service chain for each flow is assumed to vary in the range of 2 to 4 NFs and the service types in the chain for each flow are selected randomly.
I am new in cplex and I don't know how to write code for that parameters. Can you help me? Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 httpps :/ https :/ https:/ 。在OPL中获得正态分布的两种方法。
然后您可以使用EXP使日志正常
See https://github.com/AlexFleischerParis/howtowithopl/blob/master/randomnumber.mod in How to with OPL to see 2 ways to get normal distribution in OPL.
And then you can use exp to get log normal