chenqinghong
2024-05-07 3ec06a830367465068963156dcc1d8e522571c13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Quintiq file version 2.0
#parent: #root
Method CapacityPlanningAlgorithmInitConstraints_ParallelTypeC (
  CapacityPlanningSuboptimizer_CapacityPlanningAlgorithm program,
  const constcontent ProductInStockingPointInPeriodPlannings pispipssmartplan,
  const LibOpt_Task task,
  const constcontent ProductInStockingPointInPeriodPlannings pispipsinrun,
  constcontent ProductInStockingPointInPeriodPlanningLeafs leafpispipsinrun,
  const constcontent ProductInStockingPoint_MPs pispsinrun,
  const constcontent ProductInTrips pitinrun
) const
{
  TextBody:
  [*
    start := OS::PrecisionCounter(); 
    runcontext := this.GetRunContextConst(); 
    scope := task.Scope();
    
    thread := 2; 
    this.InitConstraintsForOperationDependentDemands( program, runcontext, scope, thread );
    this.InitConstraintsForUnitPeriods( program, runcontext, scope );
    this.InitConstraintsForPISPIPs_TYPEC( program, pispipssmartplan, runcontext, scope, pispipsinrun, leafpispipsinrun, pispsinrun, pitinrun );
    // not used yet this.InitConstraintsForGoals_TypeB( program, runcontext, task.Scope() ); 
    
    this.FilterCPLEXNoiseInitialization( program, runcontext );
    
    end := OS::PrecisionCounter(); 
    durationtypec := (end-start) / OS::PrecisionCounterFrequency(); 
    program.StoreReal( 'type_C_constraints', durationtypec );
  *]
  InterfaceProperties { Accessibility: 'Module' }
}