| 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
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method Execute |  | { |  |   Description: 'copies the settings in one Job, then starts optimizer run in another Job' |  |   TextBody: |  |   [* |  |     scenario := this.ScenarioMP(); |  |      |  |     company := MDSID::Create( scenario.DatasetMDSID() ); |  |     setting := this.LibOBT_RunTaskSetting(); |  |     issmartplan := scenario.Name().FindString( 'Smart Plan', 0 ) > -1;  |  |      |  |     if ( not scenario.IsLoaded() )  |  |     { |  |       debuginfo ( 'First loading dataset:', scenario.Name(), 'mds key=', company.MDSKey() );  |  |       options := DatasetLoadOptions::Construct();  |  |       options.State( DatasetState::MemoryOnly() );  |  |       MDSMacroPlan::Load( company.MDSKey(),options )->KickOffBenchmarkRunForUnloadedDataset( scenario, |  |                                                                                              this,  |  |                                                                                              setting,  |  |                                                                                              issmartplan );  |  |     } |  |     else |  |     { |  |       s := MDSMacroPlan::Change( company.MDSKey(), DatasetState::MemoryOnly()); // ensure mem only  |  |      |  |       if( issmartplan ) |  |       { |  |         s->RunSmartPlanForBenchmarking( this,  |  |                                          setting.Strategy(),  |  |                                          setting ); |  |       } |  |       else |  |       { |  |         s->RunBenchmarking( this, |  |                             setting.Strategy(),  |  |                             setting ); |  |       } |  |     } |  |   *] |  | } | 
 |