I am looking at the discrete event simulation model demo on AnyLogic 7 that has customers coming in to ATM and Bank tellers and trying to understand how to model the following:
I explored the properties view and looked at writing java code but this approach doesn't seem to help. Appreciate any help/guidance provided on how to implement such flows.
Sincerely,
I assume you are talking about this model:
This model already models your first request. The "magic" is done in the
NeedAdditionalService
element where 30% (the specified value is 0.3) of all customers that are done at the ATM are sent to the cashiers, because they need additional service. You find that property if you click on that element in the properties tab/window.
For the second request you could add another Select Output
element behind the NeedAdditionalService
element to send one fraction of the customers to the tmend
element and the other fraction back to the ATM queue. Your model would look like this then: