| Quintiq file version 2.0 | 
| #parent: #root | 
| Method OnFinish | 
| { | 
|   Description: 'This method is called as a post-process or clean-up after a run ends.' | 
|   TextBody: | 
|   [* | 
|     this.FinishedOn( DateTime::ActualTime() ); | 
|     this.FinishedOnPrecision( OS::PrecisionCounter() / OS::PrecisionCounterFrequency() ); | 
|     if( this.AutoIterationsEnabled() ) | 
|     { | 
|       this.HasIterations( true ); | 
|     } | 
|      | 
|     traverse( this, Scope.astype( LibOpt_ScopeThin ), scope ) | 
|     { | 
|       scope.ConvertToFat(); | 
|     } | 
|     if( this.IsAutoCleanupSnapshots() ) | 
|     { | 
|       this.CleanupSnapshots(); | 
|     } | 
|     Transaction::Transaction().Propagate( method( LibOpt_Run, CreateStatisticsAndIssuesPrecondition, Boolean ) ); | 
|     if( this.AutoAnalysisEnabled() and this.CreateStatisticsAndIssuesPrecondition( true /*is fail-fast check*/ ) ) | 
|     { | 
|       this.CreateStatisticsAndIssues(); | 
|     } | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |