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
| Quintiq file version 2.0
| #parent: #root
| Method AddNonLeafPlanning (
| LibOpt_Scope out_scope
| )
| {
| TextBody:
| [*
| pispips := out_scope.GetPISPIPInOptimizerRun();
|
| added := 0;
| traverse( pispips, Elements, pispip )
| {
| traverse( pispip.GetParentsOfProductDimension(), Elements.astype( ProductInStockingPointInPeriodPlanningNonLeaf ), parent )
| {
| if ( not out_scope.Contains( parent.PISPIPInOptimizerRun() ) )
| {
| out_scope.Add( parent );
| added++;
| }
| }
| }
| debuginfo( 'Added=', added, 'total = ', pispips.Size() + added );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|