| Quintiq file version 2.0 | 
| #parent: #root | 
| Method UpdateStategySettingsInGlobalParameter ( | 
|   Strategy strategy, | 
|   Boolean forceupdateglobalparam | 
| ) #extension | 
| { | 
|   TextBody: | 
|   [* | 
|     strategyname := guard( this.GetLastAlgorithmRun().StrategyName(), Translations::MP_GlobalParameters_DefaultStrategyName() ); | 
|      | 
|     if ( strategyname = strategy.Name() or forceupdateglobalparam ) | 
|     { | 
|       globalprameter := this.GlobalParameters_MP(); | 
|       globalprameter.Update( strategy.DefaultNumberOfPeriodsForAvgDemand(), | 
|                              strategy.DurationLotsizeHorizon(), | 
|                              strategy.DurationInventoryMixBalancingCheck(), | 
|                              strategy.NumberOfPeriodsInWindow(), | 
|                              strategy.NumberOfPeriodsPerSlide(), | 
|                              strategy.NumberOfPeriodsSmartPlan(), | 
|                              strategy.UseSlidingWindowsApproach() );   | 
|     } | 
|   *] | 
| } |