裴琦斐 发表于 2016-4-7 10:34:43

em-plant仿真技术教程352页库存参数仿真 代码求助

is
        seedTab:table;
do
        seedTab.create;
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
        seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
        seedTab.writeRow(1,3,1,1,"Lead time");
       
        setSeedTable(seedTab);
        eventController.end := str_to_time("3600:00:00:00");
end;



代码中1,1,0,1
         1,2,1,0
            1,3,1,1      
分别代表什么意思??谢谢

Amethysp 发表于 2016-4-7 13:57:13

你用下面代码输出就知道了
do
        seedTab.create;
        seedTab.writeRow(1,1,0,1,"Size of demand");-- stream 1 = stream 2
      seedTab.writeRow(1,2,1,0,"Interarrival time of customers");
                seedTab.writeRow(1,3,1,1,"Lead time");
                print seedTab;

-- ……
end;

<Path>.writeRow(Column:<any>, Row:<any>, Value:<any> [,Value:<any>, ..., Value:<any>]);
这个说的也很清楚
writeRow(1,1,0,1,"Size of demand") 就是从 第一列 第一行开始依次按排写入 0,1,"Size of demand"

裴琦斐 发表于 2016-4-7 17:01:38

Amethysp 发表于 2016-4-7 13:57 static/image/common/back.gif
你用下面代码输出就知道了
do
        seedTab.create;


谢谢啊,还有两个问题需要请教

1.        @.CurrIconNo := z_Emp(1,SizeOfDemand,1);
   SizeOfDemand是一个1列4行的Table文件,内容是:
         1
         2
         2
         1



2.Delivery.proctime.setParam("gleich",3, earliestDelivery * 86400, latestDelivery * 86400);
这个是设置Delivery处理时间的代码。能不能帮忙解释一下“gleich”的意思


请赐教   谢谢

Amethysp 发表于 2016-4-7 18:57:45

Distribution:Uniform distribution
Name in Plant Simulation English/German :Uniform/Gleich

为何不用自带的help 自己搜?前面一个也可以搜到的。

裴琦斐 发表于 2016-4-7 19:01:57

Amethysp 发表于 2016-4-7 18:57 static/image/common/back.gif
Distribution:Uniform distribution
Name in Plant Simulation English/German :Uniform/Gleich



谢谢!
页: [1]
查看完整版本: em-plant仿真技术教程352页库存参数仿真 代码求助