Quintiq file version 2.0
#parent: #root
Method ResetGoalWeights () id:Method_DialogEditAutomaticScaling_ResetGoalWeights
{
  #keys: '[122872.0.2144575608]'
  Body:
  [*
    // Resets all goal weights to their default value
    Dialog.EditorWeightSlackOverallMinTargets().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightMinSlackOverall ) ) );
    Dialog.EditorWeightSlackOverallMaxTargets().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightMaxSlackOverall ) ) );
    Dialog.EditorWeightSlackMinTargetsType().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightMinSlackScalingType ) ) );
    Dialog.EditorWeightSlackMaxTargetsType().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightMaxSlackScalingType ) ) );
    Dialog.EditorWeightMaxValues().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightMaxValues ) ) );
    Dialog.EditorPieceWiseLinearFactor().Text( ApplicationLibMacroPlanner.FormatRealToString( defaultvalue( AlgorithmScaling, GoalWeightPieceWiseLinearFactor ) ) );
  *]
}
