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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
| Quintiq file version 2.0
| #parent: #root
| Method JobSynchronizeDemoDataAndRunOptimizer (
| ScenarioMP scenario,
| String foldername,
| String democategory,
| String strategyname
| )
| {
| Description: 'Automatically import data from sales demo folder and initialize SC view'
| TextBody:
| [*
| datapath := GlobalParameters_MP::GetSalesDemoPath() + "/" + foldername;
|
| this.SynchronizeAllFromDefinitionsDirectory( datapath );
| MacroPlan::JobSynchronizeDemoSupplyChainOverview( this.MDSMacroPlan().ID(), democategory );
|
| //When demo is created, set DemoType to 'Metal' or 'Food', otherwise 'Empty'
| this.DemoType( democategory );
|
| // run optimizer with last run algorithm
| // use default strategy
|
| strategy:= select( scenario.ScenarioManager(), Strategy, strg, true, strg.Name() = strategyname );
|
| this.RunOptimizer( false,
| false,
| false,
| 0.0,
| null( ProductInStockingPointInPeriodPlannings ), // is not Smart plan, no hastotalsupplyuser, no totalsupplyuser, no Smart plan pispip
| false,
| false,
| false,
| false,
| false,
| strategy,
| false, // overwrite manual planning
| this.StartOfPlanningPeriod(),
| this.LastPlanningPeriod(),
| false,
| false,
| null( Units ),
| null( Process_MP ),
| this.OptimizerPuzzleWorld() );
| *]
| InterfaceProperties { Accessibility: 'Module' }
| }
|
|