lihongji
2024-11-13 3d65ee18d645a30e600c9b63f0daefe2fc2b1151
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' }
}