Applying Ranges to Parameters by Using a Rule

You can apply ranges to parameters by using a rule.


Before you begin: Refer to the Sample 3 topic to create the model required to perform this scenario.
  1. Click Formula and select Real from the New Parameter of type

    scrolling list to create two parameters of Real type: Real.1 and Real.2.

  2. Select Real.1 and right-click the field next to the Edit name or value of the current parameter box.

  3. Select Add Range. The Range of Real.1dialog box opens.

  4. Specify the inferior and the superior bounds (-5 and 5 for example), and click OK twice to close the Range of Real.1 dialog box and the Formula

    editor.

  5. Access the Knowledge Advisor workbench and click Rule .

    The Rule editor opens.

  6. Enter the following rule: Real.2 =Real.1 .InferiorRange and click OK: Real.2 value changes to -5.



  7. Double-click the rule under the Relations node and replace the existing script with Real.2 =Real.1 .SuperiorRange and click OK: Real.2 value changes to 5.