question

Yting4966 avatar image
0 Likes"
Yting4966 asked Jason Lightfoot commented

Connected to the combiner have some problems

1. At the beginning, when we only have one kind of order, objects can be generated on drink.order, but when there are three kinds of orders, there is no way to generate them.

2. drink.finish and eat.finish are connected to the combiner assembly, but we don't know where the problem is.

o餐廳.fsm

FlexSim 22.1.0
ordersrestaurant
restaurant.fsm (69.2 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Yting4966, was our answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

This seems to be the same question you posted here, but are now reading from a table.

Are you saying you want to reproduce one of the orders 1,2 or 3 at random? If so then you're just choosing which column to read in the global table. If that's uniform then you should put this in the Order value:

duniform(1,Table("Order").numCols,getstream(activity))

In the attached model I've changed this and also create the array of needed items on the token under the label 'orderItems'.

restaurant_jl.fsm

There a more errors popping up as you're just starting this - so come back if you don't know how to solve them (but please try and find the solution in the documentation or in previous questions here too).


restaurant-jl.fsm (63.1 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.

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.