question

Khalid Kayal avatar image
0 Likes"
Khalid Kayal asked Khalid Kayal commented

How to run an experiment with a code?

I would like to use the process flow to trigger the experimenter to run, is there a code that would trigger the "Run Experiment" button?

Thanks,

Khalid

FlexSim 17.2.5
experimenterexperiment run
5 |100000

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

Arun Kr avatar image
2 Likes"
Arun Kr answered Khalid Kayal commented

Hi Khalid Kayal,

Here is a related link.

Regards,

Arun KR

· 1
5 |100000

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

Khalid Kayal avatar image Khalid Kayal commented ·

Thanks Arun

1 Like 1 ·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Khalid Kayal commented

You cannot run an experiment from within Process Flow. Process Flow events happen as part of the model run. When you run an experiment, FlexSim launches many (usually one per core) additional FlexSim instances to run the model with different settings. If running the model includes starting an experiment, then each of the launched instances will launch more instances. It would create an infinite loop of experiments, and your computer would crash.

It sounds like you are trying to automate the use of the experimenter. If so, could you describe how you want that automation to work? There may be totally different approaches to consider.

· 1
5 |100000

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

Khalid Kayal avatar image Khalid Kayal commented ·

Thanks for your reply Jordan.

I am running process flow then capturing some results in a table.

After the run is done, I am feeding the data to the experimenter scenarios, then reset the model and run the experimenter. The code above should work because I dont mind resetting the model after feeding the results.

The whole idea is that I am manually writing optimizing algorithms in process flow and I wanna leave my computer to run for x amount of hours and then reset it self and run the experimenter with the top 100 results without me interacting.

0 Likes 0 ·

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.