question

Hebah M2 avatar image
0 Likes"
Hebah M2 asked Benjamin W2 commented

How to use experimenter to travel number of flowitems and bring them back to qu?

small-port.fsm

I have a port and assume there a cyber-attack on the port. Thus, the ship gets wrong massage and travel to the separator when there is no separator available. Then, because there is no place, the ship back to the queue again to wait. Thus, I need to do an experiment on this case with the scenarios that show if that happened to a different number of ships in one month. The performance measures will be the travel time and the stay time in the queue.

I attached the FlexSim file.

Thank you

FlexSim 18.0.10
experimentersimulationtravel
small-port.fsm (3.7 MiB)
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

·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered Benjamin W2 commented

Hi @Hebah M2,

The first thing that you need to do is figure out how you are going to mark if a ship was cyber attacked. I would recommend setting a label on the "On Exit" trigger of the combiners. Then, you will need to send cyber attacked flow items to different ports.

Here is how I approached this problem:

  1. Create a global variable called PercentCyberAttack that is set to a value between 0-100.
  2. In the combiners, set the "On Exit" trigger to the following:
  3. Make sure to configure your model to send items based on these labels.
  4. Open the experimenter and configure your scenarios.
  5. Figure out which statistic you would like to track, and place this into the Performance Measures tab. In the attached example, I chose the number of ships that went through the sink
  6. Click the "Experiment Run" tab, and click the "Run Experiment" button. This will then run all of your scenarios.

cyberattack.fsm


setlabel.png (24.5 KiB)
experimenter.png (13.3 KiB)
experimenter.png (13.3 KiB)
cyberattack.fsm (3.7 MiB)
· 4
5 |100000

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

Hebah M2 avatar image Hebah M2 commented ·

@Benjamin W2

It does not show any differences in the results?

0 Likes 0 ·
Benjamin W2 avatar image Benjamin W2 Hebah M2 commented ·

@Hebah M2,

In the simple case that I tested it did not show any difference in the results. This is because your barges travel so fast and are created on such long intervals, than a little extra travel time had almost no effect on the number of ships that traveled to the sink.

However, you can track any statistic you would like in the experimenter. Different performance measures may produce varying results.

0 Likes 0 ·
Hebah M2 avatar image Hebah M2 Benjamin W2 commented ·

@Benjamin W2,

How about if I use Global Table (by putting a percentage for the defect ship) is that possible?

0 Likes 0 ·
Show more comments

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.