Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod Create (LibOpt_Runs runs) as owning LibOpt_Analysiss 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    result := construct( structured[LibOpt_Analysis] ); 
 | 
     
 | 
    traverse( runs, Elements, run ) 
 | 
    { 
 | 
      analysis := run.Analysis( relnew ); 
 | 
      analysis.ForceIterations(); 
 | 
       
 | 
      opt := run.Optimization(); 
 | 
       
 | 
      analysis.Name( 'Analysis #' + [String] opt.GetNextAnalysisNr()  ); 
 | 
      analysis.AddNewSnapshots(); 
 | 
       
 | 
      result.Add( analysis ); 
 | 
    } 
 | 
     
 | 
    return & result; 
 | 
  *] 
 | 
  InterfaceProperties { Accessibility: 'Module' } 
 | 
} 
 |