question

Scarlett X avatar image
0 Likes"
Scarlett X asked Scarlett X commented

OptQuest parameter setting to minimize the output time


Can I use optquest to min the output time by choosing the different processor 1,2,3?

The model as follow: After queue 1 it needs to take a decision to go to which processor so that I can minimize the output time.

Can I choose option variable ? If can, how to set it ? if I have 10 types items,and I have to do ten times decision, what can I do? THX!

FlexSim 21.2.0
optquestparametersoption
5 |100000

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

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Scarlett X commented

I'm not sure I understand enough to make a recommendation, but here are my thoughts.

It sounds like you have 10 types of items, and that you must make this decision for each of the 10 types. Perhaps you want to run the model where you say "how does the model run if I send types 1, 2, and 3 to port 1, and types 4, 5, 6, and 7 to port 2, and the rest to port 3". In this case, you'd need to add one parameter per type (so 10 parameters). Option parameters are the perfect choice, with three options. If you name the parameters in a pattern (Type1Port, Type2Port, etc.), then you can write code to get the correct value based on the type, in the Send to Port field:

Model.parameters["Type" + item.Type + "Port"].value

PortByTypeParameters.fsm

Once you have those parameters set up, using the Optimizer is easy; just add those values to the optimizer, so you can try different combinations of ports, and see which combination is best. The optimizer will try different assignments (perhaps types 3, 7, and 8 will go to Port 1, and types 1, 2, and 9 will go to port 2, and the rest to port 3).

Does that sound like what you want?


· 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.

Scarlett X avatar image Scarlett X commented ·

I appriciate your answer.It's helpful to me!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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