1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod GetDemandDistributionTimesMinusOne ( 
 |    ProductInStockingPoint_MP pisp, 
 |    Number periodNumber 
 |  ) as owning ProbabilityDistribution 
 |  { 
 |    Description: 'workaround for not being able to use ProbabilityDistribution::Subtract' 
 |    TextBody: 
 |    [* 
 |      pispip := pisp.GetPISPIPFromPeriodNumber( periodNumber );   
 |      distr := MEIO_Engine::GetRandomDistribution( -pispip.MEIO_DemandExpectedValue(), pispip.MEIO_DemandStandardDeviation() );  
 |      return &distr; 
 |    *] 
 |  } 
 |  
  |