question

Marc R5 avatar image
0 Likes"
Marc R5 asked Felix Möhlmann commented

scenarios given by the optimizer, not matching simulation

Hello,

I have this model and I am trying to use the optimizer but I am facing various problems.

- The optimizer is giving me production time equals to 0, that does not make sense

- The optimizer gives scenarios with the same outcome.

- The optimizer's scenarios, if I replicate them and play them in simulation, gives me a different value than the optimizer.

Please, I don't get what is the issue and stuck for a few days with this.

Thanks

Layout v3.2_14.fsm

FlexSim 22.0.2
optimizer
layout-v32-14.fsm (521.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.

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Felix Möhlmann commented

This model doesn't seem repeatable. When I run it, the message box appears at slightly different end times. If the model isn't repeatable, then you won't get consistent results from the Optimizer.

The end time doesn't seem to vary by much. However, other events in the model do vary, by quite a bit. Because my Windows region settings are different, I got exceptions in parsing the date/time values. These exceptions happened at wildly different times in the model; sometimes they happened at time 120, other times as late as 250. In a repeatable model, these exceptions should happen at exactly the same time, every time. The big swing in these exceptions reveals a severe repeatability problem. You can replicate these exceptions by changing lines 23 and 24 of the "Register to Departures GT" activities:

  1. DateTime departureDate = DateTime(table[r]["DepartureDate"], "_broken_d/%m/%Y %H:%M:%S");
  2. DateTime endDate = DateTime(table[r]["FabricationEndDate"], "_broken_%d/%m/%Y %H:%M:%S");

Then you can easily see the exceptions happening at different times.

If you fix the repeatability issues, you'll likely fix the optimizer issues you are having. This article provides many things to check, to make sure your model is repeatable:

https://docs.flexsim.com/en/22.1/BestPractices/ModelRepeatability/ModelRepeatability.html

· 16
5 |100000

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