Quintiq file version 2.0
|
#parent: #root
|
Function CalcIsBottleneck
|
{
|
TextBody:
|
[*
|
// Adhi Dec-22-2015 (created)
|
|
numofup := this.MacroPlan().PeriodInBottleneckWindow( relsize );
|
bottleneckpercentage := 0.0;
|
|
if( numofup > 0 )
|
{
|
bottleneckpercentage := ( this.NumBottleneckPeriods() / numofup ) * 100; // we take percentage
|
}
|
|
// if x% of UP is bottleneck then we flag this unit as bottlneck
|
value := bottleneckpercentage >= this.MacroPlan().GlobalParameters_MP().BottleneckTolerance();
|
|
this.IsBottleneck( value );
|
*]
|
}
|