1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| Quintiq file version 2.0
| #parent: #root
| Method SetStartSolutionOperationInputNrOfLotsVar (
| MPVariable var,
| const OperationInput input,
| const Period_MP period
| ) const
| {
| TextBody:
| [*
| inputlotsize := input.ProductInStockingPoint_MP().PISPSpecification().InputLotSize();
|
| relevantdd := selectset( input,
| DependentDemand,
| dd,
| dd.ProductInStockingPointInPeriodPlanningLeaf().Period_MP() = period );
|
| quantitytotal := sum( relevantdd, Elements, dd, true, dd.Quantity() );
| startsolution := guard( round( quantitytotal / inputlotsize ), 0.0 );
|
| var.StartValue( startsolution );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|