| Quintiq file version 2.0 | 
| #parent: #root | 
| Method InitConstraintsForGoals_TypeA ( | 
|   CapacityPlanningSuboptimizer_CapacityPlanningAlgorithm program, | 
|   const RunContextForCapacityPlanning runcontext, | 
|   const LibOpt_Scope scope, | 
|   const constcontent ProductInStockingPointInPeriodPlannings pispipsinrun, | 
|   constcontent ProductInStockingPointInPeriodPlanningLeafs leafpispipsinrun, | 
|   const constcontent ProductInStockingPoint_MPs pispsinrun, | 
|   const constcontent ProductInTrips pitinrun | 
| ) const | 
| { | 
|   Description: 'Initialize constraints for calculating goal value' | 
|   TextBody: | 
|   [* | 
|     if ( this.GetInitializeFinancialConstraints( runcontext ) ) | 
|     { | 
|       // Accounts kpi | 
|       //this.InitConstraintsGoalsForDriverInventoryHolding( program, runcontext, scope, pispsinrun ); | 
|       this.InitConstraintsGoalsForDriverSales( program, scope ); | 
|       this.InitConstraintsGoalsForDriverVolume( program, scope, pitinrun ); | 
|       this.InitConstraintsGoalsForDriverTime( program, scope ); | 
|       this.InitConstraintsGoalsForDriverLot( program, runcontext, scope ); | 
|       this.InitConstraintsGoalsForDriverChangeover( program, scope ); | 
|       this.InitConstraintsGoalsForDriverOneTime( program, runcontext, scope );  | 
|       this.InitConstraintsGoalsForDriverStaffing( program, runcontext, scope ); | 
|     } | 
|     // non financial kpi | 
|     this.InitConstraintsGoalsForPISPIPs( program, runcontext, scope, leafpispipsinrun, pispsinrun ); | 
|     this.InitConstraintsGoalsForServiceLevels( program, runcontext, scope ); | 
|     this.InitConstraintsGoalsForUnitPeriods( program, runcontext, scope, pitinrun ); // alg only needed for tabbed definition - remove | 
|     // type B this.InitConstraintsGoalsForStockingPointInPeriods( program, runcontext, scope ); | 
|     this.InitConstraintsGoalsForSupplySpecifications( program, runcontext, scope ); | 
|     this.InitConstraintsGoalsForShiftPatterns( program, runcontext, scope ); | 
|      | 
|     // Slacks | 
|     this.InitConstraintsGoalsForSlacks( program, runcontext, scope, pispipsinrun ); | 
|     this.InitConstraintsGoalsForTotalSlacks( program, runcontext, scope, leafpispipsinrun, pispsinrun ); | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |