haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Quintiq file version 2.0
#parent: #root
Method CheckScalingFactors
{
  Description: 'Make sure that the scaling factors are larger than 0'
  TextBody:
  [*
    traverse( this, MacroPlan.Optimization.AlgorithmScaling.ScaleFactor, sf, sf.Value() <= 0 ) 
    {
      sf.Value( 1.0 ); 
      info( 'Error in setup - corrected scale factor to 1.0. Type = ', sf.Type(), 'value = ', sf.Value() ); 
    }
  *]
  InterfaceProperties { Accessibility: 'Module' }
}