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:
DateTime departureDate = DateTime(table["DepartureDate"], "_broken_d/%m/%Y %H:%M:%S");
DateTime endDate = DateTime(table["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
.
Jordan Johnson
Principal Software Engineer
>