-
Open a simulation process.
-
Select the activity to contain the new parameter.
-
From the shortcut toolbar, click Parameters
.
The Parameters panel appears.
-
Click Add new parameter
to create a new parameter.
The Create New Parameter dialog box
appears.
-
Enter a value for the Number of parameters to
create.
-
In the Name field, enter a name for the parameter.
-
From the Structure options, select one of the
following:
| Option | Description |
|---|
| Scalar |
Stores a single value that represents a specific quantity. |
| Array |
Stores multiple values in an ordered collection. |
-
If you selected the Structure as
Array, specify the following in the Array
Dimensions area:
-
Select the number of Dimensions (1, 2, 3, or
4).
-
Enter the Size of the dimensions.
-
Click Edit values to edit the values of the
array using the Edit Array Parameter Value
table.
-
Select Dimensions are resizable to resize the
array during execution.
-
From the Mode options, select one of the
following:
| Option | Description |
|---|
| In |
Represents a parameter mode defined as an input. |
| Out |
Represents a parameter mode defined as an output. |
| InOut |
Represents a parameter mode defined as an input and an
output. |
| Neutral |
Represents a parameter mode that applies only to the current
activity. The app prevents mapping of neutral parameters.
|
-
From the parameter value Type options, select one of the
following:
| Option | Description |
|---|
| Real |
A number that includes decimals. Enter a value for the
Real number. |
| Integer |
A whole number without decimals. Enter a value for the
Integer. |
| String |
A sequence of characters to represent text. Enter a value for the
String. |
| Boolean |
A data type that represents two values, either true or
false. Enter a value for the Boolean
parameter. |
| Timestamp |
Current date and time information. For example, Nov 27, 2025
16:05:10, depending on locale. You can override the
Date and Time
values. |
| Object |
Allows you to add a physics simulation object to the parameter.
Click to search and select
an object parameter, which the app creates as a referenced parameter. |
-
If you selected the Structure as
Scalar, define the initial (default)
Value. By default, the value is 0.0.
Note:
On machines with non-English language configurations, the decimal
separator is a comma.
- Optional:
To define an expression using parameters, key words, or environment variables,
expand Advanced, click ..., and do
the following:
-
To filter the selections, click Parameter,
Key Word, or Environment
Variable.
-
Select the value, and click
.
Note:
Optimization Process Composer does not display the list of attributes that can be used in an
expression for an activity. However, you can enter the attributes
directly in the expression.
-
Click
to evaluate the expression.
-
Click OK to save your changes and to close the
Parameter Expression dialog box.
- Optional:
To add a choice of values by explicitly specifying the values, expand
Advanced, and do the following:
-
Click
.
-
Enter a value.
-
Repeat the previous steps to enter additional values.
-
Click
to remove a value.
-
Click
or
arrows to move a value up or down.
The values are available from the Parameters
panel.
- Optional:
To add a choice of values using lower and upper bound values with an increment,
expand Advanced, and do the following:
-
In the Choices section, click Add New
Choice Values
....
-
In the Define Choices Set dialog box, enter
values for the following:
| Option |
Description |
| From |
Specifies the lower bound value. |
| To |
Specifies the upper bound value. |
| Increment |
Specifies the allowable increment measured from
the lower bound value. For example, if you specify
the lower bound as 1 and upper bound as 10 with an
increment of 2, the app generates the choice values as 1, 3, 5, 7,
9. |
-
Click OK.
The values are available from the Parameters
panel.
- Optional:
To import choice values from a file in your local directory, expand
Advanced, and do the following:
-
Click Import Choices.
-
From your local directory, select a .csv or a
.txt file containing the choice values.
-
Click OK.
|