| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcOptimizerRemark | 
| { | 
|   TextBody: | 
|   [* | 
|     // soh yee Sep-17-2014 (created) | 
|      | 
|     value := ''; | 
|     feasibility := this.Feasibility(); | 
|      | 
|     if( feasibility = Translations::MP_GlobalParameters_GetOptimizerInfeasibleStatus() | 
|         or feasibility = Translations::MP_GlobalParameters_GetOptimizerTimeLimitExceededStatus() ) | 
|     { | 
|       runlevel := maxselect( this, AlgorithmRunLevel, level, level.IsFeasible(), level.Level() ); | 
|      | 
|       if( guard( runlevel.Level() >= 1, false ) ) | 
|       { | 
|         value := Translations::MP_OptimizerInfeasibleWithResult( runlevel ); | 
|       } | 
|       else | 
|       { | 
|         runlevel := this.FirstLevel(); | 
|         value := Translations::MP_OptimizerInfeasible( runlevel ); | 
|       } | 
|     } | 
|     else if( feasibility = Translations::MP_GlobalParameters_GetOptimizerFeasibleWithNumericalWarnings() ) | 
|     { | 
|       runlevel := minselect( this, AlgorithmRunLevel, level, not level.IsFeasible(), level.Level() ); | 
|      | 
|       if( isnull( runlevel ) ) | 
|       { | 
|         runlevel := this.LastLevel(); | 
|       } | 
|       value := Translations::MP_OptimizerFeasibleWithNumericalWarnings( runlevel ); | 
|     } | 
|      | 
|     this.OptimizerRemark( value ); | 
|   *] | 
| } |