1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method ScaleGoalTerm ( 
 |    const Type vartype, 
 |    const StrategyLevelMacroPlan level 
 |  ) const as Real 
 |  { 
 |    Description: 'Scale the goal first obtaining the unscaled variable, and dividing it with the goal scaling factor' 
 |    TextBody: 
 |    [* 
 |      // soh yee Mar-17-2015 (created) 
 |       
 |      // Similar to how the logic to scale the constraint 
 |      varscale := CapacityPlanningSuboptimizer::GetVariableScaleFactor( vartype );           // Get the unscaled variable by multiplying it back with its scaling factor. 
 |       
 |      return varscale / level.GoalScaling();     // Scale the goal 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |