question

Maíra A avatar image
0 Likes"
Maíra A asked Jeanette F commented

Change the resource count by hour

I would like to have the same group of operators changing de quantity of them by a reference label. At the principal model, this label will chage by hour. At this atached model i've tried this using a global table by only 3 hours, but the logic isn't respecting the label. How can i do that without create another group of operators?


operator_qtty.fsm

FlexSim 22.0.16
global tableresourceoperator count
operator-qtty.fsm (47.8 KiB)
· 1
5 |100000

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

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Maíra A, was one of Jacob W2's or Felix Möhlmann's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·
Jacob W2 avatar image
0 Likes"
Jacob W2 answered

Hi @Maíra A,

One way to change the availability of operators or task executors is to add a field to the resource which checks the current state value of the operators.

field.png

Then on the acquire resources activity In the Query field I set had it pull operators who's state was not scheduled down (state value 12). You can check the states and their related values by opening a default state table in the toolbox.

query.png

You could also change the query to look for any operator who is currently Idle.

Finally I created a time table that sets the availability of each operator. In the model I am including I set operator2 to be unavailable all day. As tokens acquire operators, operator2 is never acquired because it is scheduled down indefinitely. By doing this you will be able to schedule operators to be available, and then only acquire those who are available.


Variable operators_JW.fsm


field.png (36.9 KiB)
query.png (48.8 KiB)
5 |100000

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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Maíra A commented

The quantity field is only evaluated when the model is reset. In general I would advise against creating/deleting task executers or fixed resources during the model run.

The maximum number of operators should be present at model start. By assigning them to a group you can forbid the acquisition of operators whose index in the group is larger than the current limit.

For that you add a "Group" field to the resource list. This field will contain the index of each operator within that group. In the query you can then use it as a filter condition in the WHERE clause.

1699530580616.png

operator-qtty_1.fsm


1699530580616.png (51.7 KiB)
operator-qtty-1.fsm (52.6 KiB)
· 4
5 |100000

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

Maíra A avatar image Maíra A commented ·

Hi @Felix Möhlmann thank you so much for your answer. The difficulty now is to generate an adaptably data through the dashboard. I need to collet the resource availability data but, the operator that is not working count on the availble avarage. I need them to desapeer for the analysis at the point that i'm not using them. Therefore, I want to calculate this data consedering only the operators that are working by hour. operator-qtty-2.fsm

0 Likes 0 ·
operator-qtty-2.fsm (57.8 KiB)
Felix Möhlmann avatar image Felix Möhlmann Maíra A commented ·
It might be an idea to generate tokens every time the limit is updated that then actually acquire and hold the excess operators. In that case you also wouldn't even need the query for the standard acquire activity. Just make sure that those "excess-tokens" have a higher priority in the back order strategy, so they are the first to acquire the operators.
1 Like 1 ·
Lucas Matheus avatar image Lucas Matheus Maíra A commented ·

Hi @Maíra A as fas was I know, this is not a simple question. A suggest you use the dashboard library and the state tables.

1699553299927.png

When the operators are not being used, set a state there is not "Utilized", as Schedule Down or Lunch.

1699553421751.png


1 Like 1 ·
1699553299927.png (37.8 KiB)
1699553421751.png (74.7 KiB)
Maíra A avatar image Maíra A Lucas Matheus commented ·

Hi @Lucas Matheus! Sorry, I struggle to understand how that could work. Can you give a model example?

0 Likes 0 ·