Home > Process Behavior Procedures and Reference > Functions

Functions

To create a function, you must first define it in the Add New Function dialog box.

Task

Procedure

Add a function

  1. On the Model toolbar, click the model_functions.bmptool or, on the Model menu, choose Functions.

  2. In the Define Functions dialog box, click the Add button.

  3. In the Add New Function dialog box, type a function name and select the function type.

  • Use No Argument for distribution functions.

  • Use Argument for mapping functions.

Define a distribution function

  1. On the Model menu, choose Functions.

  2. In the Define Functions dialog box, select an existing function name.

    The function must be previously declared to be a distribution function as explained in the Add a function row above.

  3. Specify the number of intervals, and enter a range and value for each interval.

  4. Select the Continuous check box to specify a continuous function if desired.

    The continuous function option is only available if the function return type is Value.

Define a mapping function

  1. On the Model menu, choose Functions.

  2. In the Define Functions dialog box, select an existing function name.

    The function must be previously declared to be a mapping function.

  3. If the argument type is a number, specify the number of intervals.

  4. For each interval, type a range and value.

  5. Select the Continuous check box to specify a continuous function if desired.

    The continuous function option is only available if the function return type is Value.

  6. If the argument is a type, specify a value for each type member, then click OK.

Related Topics

Process Behavior Procedures and Reference

 

Overview Topics

Functions

User Defined Functions

Attribute and Function Types

Overview Topics

System Defined Functions Reference