| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod ValidateInput ( | 
|   output String feedback_o, | 
|   Number timelimit, | 
|   Real absolutegap, | 
|   Real relativegap, | 
|   Real relativegoalslack, | 
|   String solversettinggroupname, | 
|   Boolean usehierarchicalabstol, | 
|   Boolean usehierarchicalreltol, | 
|   Real hierarchicalabstol, | 
|   Real hierarchicalreltol | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Validate input from the dialog' | 
|   TextBody: | 
|   [* | 
|     // Validate input of StrategyLevel | 
|     feedback_o := ''; | 
|      | 
|     // Check if time limit is not less than zero | 
|     if( timelimit < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_IsNegativeTimeLimit( timelimit ); | 
|     } | 
|     // Check if absolute gap is not less than zero | 
|     else if( absolutegap < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_IsNegativeAbsoluteGap( absolutegap ); | 
|     } | 
|     // Check if relative gap is not less than zero | 
|     else if( relativegap < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_IsNegativeRelativeGap( relativegap ); | 
|     } | 
|     // Check if relative goal slack is not less than zero | 
|     else if( relativegoalslack < 0 ) | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_IsNegativeRelativeGoalSlack( relativegoalslack ); | 
|     } | 
|     // Check if solver setting group name is entered | 
|     else if( solversettinggroupname = "" ) | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_IsNullSolverSettingGroup(); | 
|     } | 
|     // Check if hierarchical absolute tolerance is not less than zero when used | 
|     else if ( usehierarchicalabstol and hierarchicalabstol < 0 )  | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_HierarchicalAbsTol( hierarchicalabstol );    | 
|     } | 
|     // Check if hierarchical relative tolerance is not less than zero when used | 
|     else if ( usehierarchicalreltol and hierarchicalreltol < 0 )  | 
|     { | 
|       feedback_o := Translations::MP_StrategyLevel_ValidateInput_HierarchicalRelTol( hierarchicalreltol );  | 
|     } | 
|     return feedback_o = ''; | 
|   *] | 
| } |