| | |
| | | |
| | | if ( ddperiodstotal.Size() > 0 ) |
| | | { |
| | | minstart := min( ddperiodstotal, Elements, p, p.Start() ); |
| | | minstartperiods := min( periods, Elements, p, p.Start() ); |
| | | pispiptoadd := selectset( operation, |
| | | OperationInput.ProductInStockingPoint_MP.ProductInStockingPointInPeriodPlanning, |
| | | pispip, |
| | | ddperiodstotal.Find( pispip.Period_MP() ) > 0 |
| | | pispip.Start() >= minstart and pispip.Start() < minstartperiods // must add the entire block. Don't want gaps in the pispip horizon |
| | | and ( pispip.HasRegularProductForOptimizer() or pispip.GetProductIsIncludedInOptimizerRun( runcontext.IsPostProcessing() ) ) |
| | | and not scope.Contains( pispip.PISPIPInOptimizerRun() ) ) |
| | | |