首页 > 解决方案 > 时间图每三个输出显示一点等待时间间隔(生产率)

问题描述

我正在显示生产时间梨小时的输出率。每第三个输出*有一点等待时间,这与第一个和第二个输出之间的等待时间不同。我不明白为什么每三个输出都有不同的等待时间?* (图片1)。此外,Y 轴上的输出与源或接收器的输出或输入值不同(图 1 和图 2)。我对这些问题有点困惑。下图进一步说明:

图片1

图二

我创建了一个变量(hourOutput)、数据集(dataProductionRate)和事件(productionRateCount)来计算输出率。图 1 中的时间图读取数据集值作为输出 (dataProductionRate)。

事件中使用的代码:dataProductionRate.add( hourOutput );

Sink 中使用的代码:

hourOutput++;
Hyber_Facadesink_V++;
agent.TimeOut = time();
variable++;

if(self.count()>=Gen_Item){
   
    getEngine().finish(); //to end the model execution  

}

标签: anylogic

解决方案


推荐阅读