Run Model grouping

Use cases

There are a few cases to consider when using the Run Model button component with a group component.

Case 1

Let’s say we’ve selected an output component that’s in a group, and that group has been repeated in some way. In this case, the Run Model button is outside of the group. Clicking the Run Model button will send calls for each instance of the selected output component, returning unique results per copy.

Case 2

In this case, let’s say the Run Model button is within the same group as its output component, and this group has also been repeated. Clicking any of the buttons will only return results for the output components that correspond to their own group.

Case 3

If the Run Model button’s input components have been repeated, only the inputs found in the same parent group(s) as the model output will be considered when making a call.

For example:

Let’s say we’ve got an ungrouped Input component (1). Then we have a group with another Input component (2). This group has another group inside it that contains: a third Input component (3), the Output component, and the Run Model button.

Clicking the Run Model button will use the values of Inputs 1, 2, and 3, when making a call to the model.

If we had a second collection of groups with the same structure, and the Input components within were (4) and (5), then clicking the Run Model button of this second set of groups would use the values of Inputs 1, 4, and 5.

Case 4

When the model output is found in a different group than the input component, and the input has been repeated, then all of the repeated inputs’ values will be collected into an array (e.g. ["componentvalue1","componentvalue2","componentvalue3"]) and sent to the model.

Case 5

When the model input component is in a subgroup of the parent group containing the output component, and the input has been repeated, then all of the repeated inputs’ values will be collected into an array (e.g. ["componentvalue1","componentvalue2","componentvalue3"]) and sent to the model.