question

Wu Hung L avatar image
0 Likes"
Wu Hung L asked Wu Hung L commented

Is EVENT-TRIGGER can hold two constraints ? Or a customized EVENT TRIGGER?

Hi~ I want to make a vehicle sharing system which has three stations, each station has four vehicles but only one station has eight vehicles and this station is called "station 3". I also want to create a rule that a station's number of vehicle is more than 6 then I will transport a few of this station's vehicle to another station to ensure the demand of another station can be satisfied.

Then I have a problem,as you can see in this picture, I use process flow to create this rule. But I find a logical error, the EVENT TRIGGER can only set one event, so I use two EVENT TRIGGER. But under this method, one token will wait another token. In the practical situation,two token should appear simultaneously, then the vehicle will be transported to other stations. Is it possible to create a customized EVENT TRIGGER to hold two events? Or is there any other methods can solve this problem?

runable-token.fsm

FlexSim 18.1.1
event trigger
1.png (42.0 KiB)
runable-token.fsm (82.4 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.

Roi Sánchez avatar image
1 Like"
Roi Sánchez answered Wu Hung L commented

Hello @Wu Hung L, you can save the object event in a label so as to know where the event has taken place. Apart from that you could also save a label with a reference of the item that has created the event. Then you could use only one Event-triggered Source and every time an event occurs, you would get a token with the car and the station where it has taken place.

In the attached picture you can see how to save these labels:


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

Wu Hung L avatar image Wu Hung L commented ·

OK~ THANKS! I will try it.

1 Like 1 ·
Roi Sánchez avatar image
0 Likes"
Roi Sánchez answered Wu Hung L commented

Hi @Wu Hung L, you can add more than one event to listen to in the Event-triggered Source. You can see how to do it in this picture.

event-triggered-source.png


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

Wu Hung L avatar image Wu Hung L commented ·

Hi~ Thanks~ But I just found another problem.... If I want to increase this system to five stations then I must have 20 Event Trigger (one station four Event Trigger ex: Station 1->2 、Station 1->3 、Station 1->4 、 Station 1->5 ),and I find this method will be bad if I have lots of stations. Is there any method can solve thisw problem? Thanks!

0 Likes 0 ·