Hi everyone,
I tried to build a model in which 2 racks will send items by types to different ports and I used "or" but it keeps telling me syntax error.
Hi everyone,
I tried to build a model in which 2 racks will send items by types to different ports and I used "or" but it keeps telling me syntax error.
Hello @lehduc,
You can only put an integer in the Port field
To accomplish what you want you will need to implement in the code a combination of the Send item by label and random port or round robin option. Here is an example of implementing port by case and random port together. This would not work if the port numbers possible were 2 and 4 but you could use something similar to pick the port index of the options and then assign the corresponding port.
Thanks for your help, in fact I want to send items type 1 and 3 to port 2 or 3, the first available. And item type 2 to port 1. I don't want it to be round robin or random. Thanks a lot if you could give me some more details.
Hello @lehduc, with the first available logic it is not possible to limit port options. In this case I switched the Racks to be send to port first available and then on the processors placed a pull requirement that looks at the Type label.
14 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved