question

asb.p avatar image
0 Likes"
asb.p asked Jordan Johnson commented

Experimenter - advanced triggers issues and Ideas

Hello All,

I have 3 questions/ issues regarding using experimenter advanced triggers

1. Why the initial value used for variables was always Solution ID 2 instead of Solution ID1 in Optimizer run?

2. Advanced triggers cannot be used for optimizer run?

If I try to write some code in End of experiment is becoming blank at the end of optimizer run Why? - Refer endofexperimenttrigger.png

3. If I want to develop a sequential experimentation algorithm Example - experimenter has to start with initial variable values of the variables then at the end of experiment 1, we will evaluate the performance measures and then define the new values of the variables for the next experiment. This process goes on until some termination criteria lets say 100 experiments. How to implement this? as an example It will be great if anyone just set up experiment 2 with variable1 value as 10.75 at the end of the 1st experiment in the attached model.

Thanks in Advance,

Praneeth Akondi.

test.fsm

FlexSim 18.0.10
experimentertriggersoptquest
test.fsm (21.6 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
0 Likes"
Jordan Johnson answered Jordan Johnson commented

For question 1, the optimizer will run the scenarios given in the experimenter first (if the "Use Scenarios as possible solutions" box is checked). However, the order they run in is up to the optimizer. Some models stick more with the original order, and some are fairly shuffled. The optimizer is trying to learn about your system has fast as it can, so it re-orders the initial scenarios to help it learn as fast as possible.

The advanced triggers run the same in the experimenter and optimizer. There is a bug with applying the code in the triggers. If you want to be sure that your code has applied, be sure to use the "Apply" button in the code window, close the code window, and then close the Experimenter window.

As far as creating a loop of experiments, FlexSim doesn't have any built in features to do that. However, you may be able to write an End of Experiment trigger that analyzes the results and creates a new experiment, and if the max experiments has not been reached, run another experiment.

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