question

Marc K avatar image
0 Likes"
Marc K asked Joerg Vogel answered

Is there a way to limit a resource (operator) usage?

When I acquire my resource (Group - Operators - total of 8) and then track states over time I see that operator 1 and then so on are used up close to 100%. Then the extra operators (maybe around operator 5) are almost never used. How can I put a cap on their usage so at 75% usage that operator cannot be used until all 8 are used up 75%? Can a dispatcher be used for this activity?

FlexSim 19.1.1
limiting staff usage
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

I must assume your logic is process flow. The acquire activity has the opportunity to query the resources by a sql clause. If you ORDER BY a statistical state value you can let work all operators. You can acquire the operator that has the highest idle time value.

0 Likes 0 ·
Marc K avatar image Marc K Joerg Vogel commented ·

Thank you for the reply. I am not very good sql clauses. I tried to find an answer with script that was close. I know I ma asking a lot.

What is the clause?

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

I built a model that chooses the operator with the lowest total utilize time. The utilize time value is a field in the resource activity of the advanced parameters.

double totalTime = value.as(Object).stats.state().getTotalTimeAt("utilize");

I called the field name as totalTimeInUtilize.

The SQL Clause is in the acquire activity

ORDER BY totalTimeInUtilize ASC

utilize-pf-ts.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.