Quintiq file version 2.0
#parent: #root
Method Start (
  LibOpt_Optimizer optimizer
) id:Method_LibOpt_GlobalState_Start
{
  #keys: '[144996.0.1717284219]'
  Body:
  [*
    // Start a new Run
    
    if ( this.StartNewRunChecks( optimizer, null( LibOpt_Run ) ) )
    {
      
      run := null( LibOpt_Run );
    
      try
      {
        run := optimizer.CreateAndStartRun();
      }
      onerror
      {
        run := optimizer.RecoverLastFailedRun();
      }
    
      this.Select( run );
    }
  *]
}
