Quintiq file version 2.0
|
#parent: #root
|
Method OnStop (
|
LibOpt_Task task
|
)
|
{
|
TextBody:
|
[*
|
// code to be executed when stop has happened
|
|
if ( this.FocusLevel() < this.MaxLevel() ) // for the last level no need to do this. Good to keep tried counters for debugging.
|
{
|
rcm := RunContextMeta::GetRunContextMeta( task.Run() );
|
rcm.RestoreAutotuneParameters();
|
periods := task.Scope().GetPeriodInOptimizerRun();
|
if ( rcm.OptionCopyDataSetAfterFocusLevel() )
|
{
|
Optimization::DebugCopyDataSet( task );
|
}
|
OptimizerMeta::ResetIsTried( periods ); // reset counters tried anchor when going to the next level
|
}
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|