hongji.li
2023-11-05 2713c338a98325cad21ebec2085802a5e49a98ef
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
Quintiq file version 2.0
#parent: #root
Method Run (
  LibOpt_Component component
) id:Method_LibOpt_GlobalState_Run
{
  #keys: '[144996.0.1717284615]'
  Body:
  [*
    // Start a new Run
    
    if ( this.StartNewRunChecks( null( LibOpt_Optimizer ), component.Run() ) )
    {
      dlg := construct( LibOpt_DialogScopeElements );
    
      scope_elements := null( LibOpt_ScopeElements );
    
      if( dlg.Open( this, component.Run(), scope_elements ) )
      {
        run := null( LibOpt_Run );
    
        try
        {
          run := component.Run().CopyAndStart( component, scope_elements );
        }
        onerror
        {
          run := component.Run().RecoverLastFailedRunInOptimizer();
        }
    
        this.Select( run );
      }
    }
  *]
}