question

Jouky D avatar image
0 Likes"
Jouky D asked Jouky D commented

How to save the replications of FlexSim Optimizer?

Hello,


When I simulate using Experimenter Run, I can obtain a Raw Data table with all scenarios and the result of a variable for each replication in that scenario. However, when I run the Optimizer Run window to search for the best solution, the table that I can export is a table of means of replications, it doesn't give the result for each replication, it only reports the mean of all replications.

So, my questions are:

1) How do I obtain the table with all replication's results that FlexSim has done during the optimization run?
2) How do I select the optimal scenario? Sometimes there are lots of points and I select using the mouse a good scenario but not the optimal. Is there a way to do it?

Thank you!

FlexSim 20.0.2
experimenteroptimizerexport datareplicationsflexsim 20.0.2
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 Jouky D commented

To get all replication data, you should be able to run the query

  1. SELECT * FROM Experiment.PerformanceMeasures

To select the optimal solution, there's not currently a slick way. If you are running a single-objective optimization, you can use this code (or something similar) to get the best solution ID, and then add it to the experimenter:

  1. treenode results = Model.find("Tools/OptQuest/results");
  2. int bestSolution = Table.query("SELECT [Solution ID] FROM $1 WHERE Rank = 1", results)[1][1];
  3. maintree().find("project/exec/optquest/addSolutionAsScenario").evaluate(bestSolution);
· 3
5 |100000

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