设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2523|回复: 0

關於模組設定問題(新手請多多指教!)

[复制链接]
发表于 2008-11-22 16:40:54 | 显示全部楼层 |阅读模式
5仿真币
假設:
Entity1每3秒鐘產生實體,呈指數分配,如果每次產生的實體為random,大小約40~60不等,
Entity2每6秒鐘產生實體,呈指數分配,如果每次產生的實體為random,大小約60~800不等,
Entity1每次處理時間為6秒鐘,Entity2每次處理時間為24秒鐘,
由於Entity number每次產生不一樣,所以用到的Resource capacity都不一樣
Entity1每次產生的(Entity number)/6=Resource Quantity
Entity2每次產生的(Entity number)/12=Resource Quantity
問題:
1.關於處理時間的設定是否正確?
2.關於資源的設定是否正確,Cyclical代表麼意思?
3.如果資源夠的情況下,平行處理多個Entity,該如何設定?
4.觀察每次Entity的使用資源數量,要用哪種模組紀錄,是Storages?還是record,該怎麼設定?
Build Model:
Create1:
Name:Create1
Entity type:Entity1
Type:Random(expo)
value:3
Units:Seconds
Entity per Arrival:UNIF(40,60).
Max Arrival:60

Create2:
Name:Create2
Entity type:Entity2
Type:Random(expo)
value:2
Units:Seconds
Entity per Arrival:UNIF(60,80).
Max Arrival:80

Assign1:分配Entity1處理時間
Type:Attribute
Attribute Name:processtime
New Value:SecondsToBaseTime(3)

Assign2:分配Entity2處理時間
Type:Attribute
Attribute Name:processtime
New Value:SecondsToBaseTime(6)

Process:
Action:Size Delay Release
Priorityow(3)==>(代表Entity1比Entity2優先)
Resource:
Resource:Resource1
Type:Set
Set Name:Set1
Quantity:IDENT/6==>(代表Entity1產生的Entity number除以6,就是Entity1所需要的資源量)
Select Rule:Cyclical
Save Attribute1

Resource:Resource1
Type:Set
Set Name:Set2
Quantity:IDENT/12==>(代表Entity1產生的Entity number除以12,就是Entity2所需要的資源量)
Select Rule:Cyclical
Save Attribute2

Delay Type:Expression
Units:Secnods
Expression:processtime

Dispose

Attribute:
P1
P2

Resource:
Name:Resource1
Type:Fixed Capacity
Capacity:34

[ 本帖最后由 dog 于 2008-11-22 16:58 编辑 ]

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2024-5-30 01:55 , Processed in 0.013293 second(s), 11 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表