Create a subset calculation and calculation constraints within a zone

Apply a calculation and apply a calculation constraint to a subset within a zone. 


00:03

In FlexSim, creating subsets allows you to control flow items and gather valuable statistics for Zones within your process flow.

00:13

Additionally, you can apply calculations to a subset, and then set up calculation constraints to further control the activity of those items.

00:23

In this example, a simple process flow and a Dashboard are already set up.

00:28

Tokens enter the flow, receive a random weight label of between 5 and 15 pounds, and then flow into the Zone based on specific constraints.

00:39

The Zone also has a Heavy Parts subset that was created to identify items that are greater than or equal to 10 pounds.

00:47

To add a subset calculation to the Zone, first, create a new subset.

00:54

With Zone selected in the flow, in Properties, click More Properties.

01:00

In the Zone Properties dialog, you see the Heavy Parts subset.

01:06

Add a new Subset called “All tokens” and then reorder the subsets, so that the new one appears first.

01:14

This subset includes every token that enters the Zone.

01:19

Now, Add a Subset Calculation.

01:23

In the Calculation name column, enter “Total Weight”, and in the Label/expression to sum field, type “Weight”.

01:32

This creates a subset of all tokens that uses the weight labels to calculate the combined weight of tokens in the zone.

01:40

Click Apply, and then OK.

01:43

Reset, Run, and Step the model forward.

01:48

Then, stop the model, and with Zone selected, in Properties, click View Status.

01:57

On the Subsets tab, you see the data for both subsets.

02:03

For the All Tokens subset, the Content row shows the Current, Average and Maximum number of tokens in the Zone.

02:12

The Total Weight row shows the Current total weight of tokens in the Zone,

02:16

as well as the average and maximum total weights for tokens that have been in the Zone.

02:21

Next, on the Dashboard, add a Zone Statistics > Table.

02:29

In Properties, select the Zone sampler, and then select the Zone in the process flow.

02:37

In the Statistic drop-down, there are multiple Calculation statistics that you can select from.

02:43

In this case, select Calculation Total.

02:48

Then, deselect Minimum.

02:52

It is also important to remember to manually select the Subset/Calculation field.

02:58

If you use the default selection, as shown, when you Reset and Run the model, the chart will not populate properly.

03:07

Here, select All Tokens Total Weight for the Subset/Calculation.

03:13

Then, Reset the model and the error number disappears from the table.

03:19

Now, Run the model forward, and then Stop it to see the Current, Maximum, and Average weights of tokens in the Zone.

03:29

Continue running the simulation to view more statistics, and then Stop and Reset the model.

03:36

Next, in Properties, expand Statistic again, and notice that you can also show a Calculation Input,

03:43

the total weight of all tokens that enter the Zone throughout the simulation,

03:48

or a Calculation Output, which shows the same for all tokens that exit the Zone.

03:54

In this case, select Calculation Per Token.

03:59

Now, when you Run the model, this calculation looks at an individual token in the Zone at a given time.

04:06

You can use calculations with any type of label.

04:10

For example, you can apply a cost label to items in your flow, and then calculate a total cost of all items.

04:19

Next, apply a constraint to the calculation.

04:23

With Zone selected, in Properties, select More Properties.

04:30

In the Zone Properties dialog, click the Subset Constraints tab.

04:35

Right now, there is a constraint applied to limit the number of heavy tokens in the Zone to 2.

04:42

Delete this, and then create a new constraint to all tokens by clicking Add > Add constraint to: All Tokens.

04:52

Expand Calculation and select Total Weight.

04:56

Then, set the Value to “100” pounds.

05:01

This means only 100 total pounds can be in the Zone at a given time.

05:06

Click Apply, and then OK.

05:10

Run, and Step the model forward until you meet the limit.

05:15

Here, there are two tokens waiting to enter the Zone because the weight restriction has been met.

05:22

Select the Zone, and in Properties, click View Status.

05:28

In the Zone Status dialog, 92.28% of the limit has been reached.

05:35

If you select the waiting tokens in the flow, you see in Properties, that their Weight would exceed the 100-pound limit.

05:43

Therefore, the tokens wait to enter the Zone.

05:48

Next, on the Dashboard, add a Zone Statistics > Line Chart, and then sample the Zone.

05:59

Expand the Statistic drop-down one more time to look at the request options.

06:04

Calculation Request Total provides the total weight of parts requesting to enter the Zone.

06:11

Calculation Request Input and Output gather the total weights of tokens that request to enter the Zone,

06:17

and that have entered the Zone, respectively.

06:21

In this case, select Calculation Request Total.

06:26

Select All Tokens: Total Weight for the Subset/Calculation, and then Run the simulation.

06:34

The chart displays the total weight of tokens waiting to enter the Zone at a given time.

06:40

For example, Stop the simulation to see that, shortly after 8:01 AM, just over thirty pounds of weight was waiting to enter the Zone.

Video transcript

00:03

In FlexSim, creating subsets allows you to control flow items and gather valuable statistics for Zones within your process flow.

00:13

Additionally, you can apply calculations to a subset, and then set up calculation constraints to further control the activity of those items.

00:23

In this example, a simple process flow and a Dashboard are already set up.

00:28

Tokens enter the flow, receive a random weight label of between 5 and 15 pounds, and then flow into the Zone based on specific constraints.

00:39

The Zone also has a Heavy Parts subset that was created to identify items that are greater than or equal to 10 pounds.

00:47

To add a subset calculation to the Zone, first, create a new subset.

00:54

With Zone selected in the flow, in Properties, click More Properties.

01:00

In the Zone Properties dialog, you see the Heavy Parts subset.

01:06

Add a new Subset called “All tokens” and then reorder the subsets, so that the new one appears first.

01:14

This subset includes every token that enters the Zone.

01:19

Now, Add a Subset Calculation.

01:23

In the Calculation name column, enter “Total Weight”, and in the Label/expression to sum field, type “Weight”.

01:32

This creates a subset of all tokens that uses the weight labels to calculate the combined weight of tokens in the zone.

01:40

Click Apply, and then OK.

01:43

Reset, Run, and Step the model forward.

01:48

Then, stop the model, and with Zone selected, in Properties, click View Status.

01:57

On the Subsets tab, you see the data for both subsets.

02:03

For the All Tokens subset, the Content row shows the Current, Average and Maximum number of tokens in the Zone.

02:12

The Total Weight row shows the Current total weight of tokens in the Zone,

02:16

as well as the average and maximum total weights for tokens that have been in the Zone.

02:21

Next, on the Dashboard, add a Zone Statistics > Table.

02:29

In Properties, select the Zone sampler, and then select the Zone in the process flow.

02:37

In the Statistic drop-down, there are multiple Calculation statistics that you can select from.

02:43

In this case, select Calculation Total.

02:48

Then, deselect Minimum.

02:52

It is also important to remember to manually select the Subset/Calculation field.

02:58

If you use the default selection, as shown, when you Reset and Run the model, the chart will not populate properly.

03:07

Here, select All Tokens Total Weight for the Subset/Calculation.

03:13

Then, Reset the model and the error number disappears from the table.

03:19

Now, Run the model forward, and then Stop it to see the Current, Maximum, and Average weights of tokens in the Zone.

03:29

Continue running the simulation to view more statistics, and then Stop and Reset the model.

03:36

Next, in Properties, expand Statistic again, and notice that you can also show a Calculation Input,

03:43

the total weight of all tokens that enter the Zone throughout the simulation,

03:48

or a Calculation Output, which shows the same for all tokens that exit the Zone.

03:54

In this case, select Calculation Per Token.

03:59

Now, when you Run the model, this calculation looks at an individual token in the Zone at a given time.

04:06

You can use calculations with any type of label.

04:10

For example, you can apply a cost label to items in your flow, and then calculate a total cost of all items.

04:19

Next, apply a constraint to the calculation.

04:23

With Zone selected, in Properties, select More Properties.

04:30

In the Zone Properties dialog, click the Subset Constraints tab.

04:35

Right now, there is a constraint applied to limit the number of heavy tokens in the Zone to 2.

04:42

Delete this, and then create a new constraint to all tokens by clicking Add > Add constraint to: All Tokens.

04:52

Expand Calculation and select Total Weight.

04:56

Then, set the Value to “100” pounds.

05:01

This means only 100 total pounds can be in the Zone at a given time.

05:06

Click Apply, and then OK.

05:10

Run, and Step the model forward until you meet the limit.

05:15

Here, there are two tokens waiting to enter the Zone because the weight restriction has been met.

05:22

Select the Zone, and in Properties, click View Status.

05:28

In the Zone Status dialog, 92.28% of the limit has been reached.

05:35

If you select the waiting tokens in the flow, you see in Properties, that their Weight would exceed the 100-pound limit.

05:43

Therefore, the tokens wait to enter the Zone.

05:48

Next, on the Dashboard, add a Zone Statistics > Line Chart, and then sample the Zone.

05:59

Expand the Statistic drop-down one more time to look at the request options.

06:04

Calculation Request Total provides the total weight of parts requesting to enter the Zone.

06:11

Calculation Request Input and Output gather the total weights of tokens that request to enter the Zone,

06:17

and that have entered the Zone, respectively.

06:21

In this case, select Calculation Request Total.

06:26

Select All Tokens: Total Weight for the Subset/Calculation, and then Run the simulation.

06:34

The chart displays the total weight of tokens waiting to enter the Zone at a given time.

06:40

For example, Stop the simulation to see that, shortly after 8:01 AM, just over thirty pounds of weight was waiting to enter the Zone.

Was this information helpful?