Create subsets and subset constraints within a zone

Apply a subset to tokens within a zone, apply constraints to a subset, and gather statistics for a subset.


00:03

In FlexSim, subsets can be used to control objects within a specific area, or zone, within your process flow.

00:12

You can use a subset to monitor, apply rules to, or control how objects flow within a zone.

00:21

Additionally, you can use a subset to gather statistics and analyze specific items within the zone.

00:28

In this example, a flow that includes a Zone is already set up, along with a Dashboard to display statistics.

00:36

In the Zone Properties, Use Max Content was applied previously as an easy way to limit the number of tokens in the Zone.

00:45

However, a more flexible alternative is to use subsets, which can help you to set criteria for how and when tokens enter or exit a Zone,

00:54

as well as to gather valuable statistics.

00:57

To add a subset, first, add a Label to the tokens in your process flow.

01:03

Add an Assign Labels activity beneath the Source.

01:08

Then, for Assign Labels, add a Label with a Name of “Weight”.

01:16

For Value, select Statistical Distribution > Uniform.

01:24

In this case, leave the defaults of 5 and 15 for the Minimum and Maximum.

01:30

This means that a random weight label will be applied to each token with a weight of between 5 and 15 pounds.

01:38

Reset, Run, and Step the model forward.

01:42

When you Stop the simulation and select a token, in Properties, under Labels,

01:49

you see the Weight, which is 11.58 for Token 1 and 5.48 for Token 2.

01:57

Now, you can use the weight label to apply a subset.

02:01

Select the Zone.

02:05

In Properties, ensure that Use Max Content is deselected, then click More Properties.

02:13

In the Zone Properties dialog, there are multiple tabs for applying different criteria to the Zone.

02:20

On the Subsets tab, click Add.

02:25

For the Subset Name, type “Heavy Parts”.

02:29

Notice that Include all tokens is the default for the Token Selection Criteria.

02:35

Expand the drop-down to see examples of criteria for this field, such as Type = 1.

02:43

In this case, enter “Weight >= 10”.

02:48

This means that any token with a weight label greater than or equal to 10 will be included in the Heavy Parts subset.

02:56

Click Apply, and then OK.

02:59

Run the model, then Stop it and select the Zone.

03:04

In Properties, click View Status.

03:08

In the Zone Status dialog, Subsets tab, a table displays information about the Heavy Parts Subset,

03:16

including the Current, Average, and Maximum number of Heavy Parts tokens in the zone.

03:24

Run the model, and you can continue gathering statistics for this subset.

03:29

Next, for the Dashboard, add a Zone Statistics > Bar Chart.

03:38

In Properties, for Zone, sample the Zone in the process flow.

03:43

Then, select the Statistic that you want to display for the subset.

03:48

Subset Content reports the current number of tokens in the zone,

03:53

while Subset Input and Subset Output report on the number of subset tokens that enter or exit the zone, respectively.

04:01

In this case, select Subset Staytime.

04:06

Back in Properties, select the desired Options.

04:10

First, deselect Minimum.

04:14

Since the Zone begins without tokens, the minimum will always be zero.

04:20

Leave Current, Maximum, and Average selected, and then set the Subset/Calculation to Heavy Parts.

04:31

When you run the model, on the Dashboard, you see the staytime for tokens that are part of the Heavy Parts subset.

04:39

In this case, the Maximum time is 21.74.

04:45

You can create subsets based on any label that you apply to your tokens.

04:50

For example, you might create a subset based on an item type or the cost of an item.

04:57

With Zone selected, again, click More Properties.

05:04

In the Zone Properties dialog, this time, select Subset Constraints to add a constraint to the Heavy Parts subset.

05:13

In this case, set the Calculation to Number of tokens, with a Value of 2.

05:20

This means that a maximum of two Heavy Parts tokens are allowed in the Zone at a given time.

05:26

Run the model, and then Stop it once there are several tokens waiting to enter the Zone.

05:33

When you select the tokens in the Enter Zone activity, you see that each has a Weight label that is equal to or greater than 10,

05:41

and each is part of the Heavy Parts subset.

05:44

Therefore, these tokens must wait to enter the Zone, based on the constraint applied.

05:51

Next, add a Line Chart to the Dashboard.

05:55

Then, from Properties, sample the Zone.

05:60

For the Statistic, notice that there are several available subset request statistics.

06:06

Subset Request Content shows the number of tokens currently requesting to enter the Zone,

06:13

while Subset Request Input and Output display the total number of tokens that have requested entry, and have then entered the Zone.

06:21

In this case, select Subset Request Staytime to view the length of time that tokens are waiting to enter the zone at a given time.

06:31

When the simulation is run, you see that this chart is not populating as intended.

06:36

Note that in Properties, even though Heavy Parts was the default for the Subset/Calculation,

06:43

you must actively select this field for the chart to display the corresponding statistics.

06:49

To resolve the issue, reselect Subset Request Staytime for the Statistics, and then select Heavy Parts for the Subset/Calculation.

06:59

Run the model, and then Stop once enough data is available.

07:04

The chart populates as expected and displays the staytime for tokens waiting to enter the Zone at a given time.

07:12

Now that you know how to use subsets and subset constraints to monitor, control the flow of, and gather data about items within a zone,

07:21

you can further extend the functionality with the use of subset calculations and calculation constraints.

Video transcript

00:03

In FlexSim, subsets can be used to control objects within a specific area, or zone, within your process flow.

00:12

You can use a subset to monitor, apply rules to, or control how objects flow within a zone.

00:21

Additionally, you can use a subset to gather statistics and analyze specific items within the zone.

00:28

In this example, a flow that includes a Zone is already set up, along with a Dashboard to display statistics.

00:36

In the Zone Properties, Use Max Content was applied previously as an easy way to limit the number of tokens in the Zone.

00:45

However, a more flexible alternative is to use subsets, which can help you to set criteria for how and when tokens enter or exit a Zone,

00:54

as well as to gather valuable statistics.

00:57

To add a subset, first, add a Label to the tokens in your process flow.

01:03

Add an Assign Labels activity beneath the Source.

01:08

Then, for Assign Labels, add a Label with a Name of “Weight”.

01:16

For Value, select Statistical Distribution > Uniform.

01:24

In this case, leave the defaults of 5 and 15 for the Minimum and Maximum.

01:30

This means that a random weight label will be applied to each token with a weight of between 5 and 15 pounds.

01:38

Reset, Run, and Step the model forward.

01:42

When you Stop the simulation and select a token, in Properties, under Labels,

01:49

you see the Weight, which is 11.58 for Token 1 and 5.48 for Token 2.

01:57

Now, you can use the weight label to apply a subset.

02:01

Select the Zone.

02:05

In Properties, ensure that Use Max Content is deselected, then click More Properties.

02:13

In the Zone Properties dialog, there are multiple tabs for applying different criteria to the Zone.

02:20

On the Subsets tab, click Add.

02:25

For the Subset Name, type “Heavy Parts”.

02:29

Notice that Include all tokens is the default for the Token Selection Criteria.

02:35

Expand the drop-down to see examples of criteria for this field, such as Type = 1.

02:43

In this case, enter “Weight >= 10”.

02:48

This means that any token with a weight label greater than or equal to 10 will be included in the Heavy Parts subset.

02:56

Click Apply, and then OK.

02:59

Run the model, then Stop it and select the Zone.

03:04

In Properties, click View Status.

03:08

In the Zone Status dialog, Subsets tab, a table displays information about the Heavy Parts Subset,

03:16

including the Current, Average, and Maximum number of Heavy Parts tokens in the zone.

03:24

Run the model, and you can continue gathering statistics for this subset.

03:29

Next, for the Dashboard, add a Zone Statistics > Bar Chart.

03:38

In Properties, for Zone, sample the Zone in the process flow.

03:43

Then, select the Statistic that you want to display for the subset.

03:48

Subset Content reports the current number of tokens in the zone,

03:53

while Subset Input and Subset Output report on the number of subset tokens that enter or exit the zone, respectively.

04:01

In this case, select Subset Staytime.

04:06

Back in Properties, select the desired Options.

04:10

First, deselect Minimum.

04:14

Since the Zone begins without tokens, the minimum will always be zero.

04:20

Leave Current, Maximum, and Average selected, and then set the Subset/Calculation to Heavy Parts.

04:31

When you run the model, on the Dashboard, you see the staytime for tokens that are part of the Heavy Parts subset.

04:39

In this case, the Maximum time is 21.74.

04:45

You can create subsets based on any label that you apply to your tokens.

04:50

For example, you might create a subset based on an item type or the cost of an item.

04:57

With Zone selected, again, click More Properties.

05:04

In the Zone Properties dialog, this time, select Subset Constraints to add a constraint to the Heavy Parts subset.

05:13

In this case, set the Calculation to Number of tokens, with a Value of 2.

05:20

This means that a maximum of two Heavy Parts tokens are allowed in the Zone at a given time.

05:26

Run the model, and then Stop it once there are several tokens waiting to enter the Zone.

05:33

When you select the tokens in the Enter Zone activity, you see that each has a Weight label that is equal to or greater than 10,

05:41

and each is part of the Heavy Parts subset.

05:44

Therefore, these tokens must wait to enter the Zone, based on the constraint applied.

05:51

Next, add a Line Chart to the Dashboard.

05:55

Then, from Properties, sample the Zone.

05:60

For the Statistic, notice that there are several available subset request statistics.

06:06

Subset Request Content shows the number of tokens currently requesting to enter the Zone,

06:13

while Subset Request Input and Output display the total number of tokens that have requested entry, and have then entered the Zone.

06:21

In this case, select Subset Request Staytime to view the length of time that tokens are waiting to enter the zone at a given time.

06:31

When the simulation is run, you see that this chart is not populating as intended.

06:36

Note that in Properties, even though Heavy Parts was the default for the Subset/Calculation,

06:43

you must actively select this field for the chart to display the corresponding statistics.

06:49

To resolve the issue, reselect Subset Request Staytime for the Statistics, and then select Heavy Parts for the Subset/Calculation.

06:59

Run the model, and then Stop once enough data is available.

07:04

The chart populates as expected and displays the staytime for tokens waiting to enter the Zone at a given time.

07:12

Now that you know how to use subsets and subset constraints to monitor, control the flow of, and gather data about items within a zone,

07:21

you can further extend the functionality with the use of subset calculations and calculation constraints.

Was this information helpful?