question

Paul M4 avatar image
0 Likes"
Paul M4 asked Paul M4 commented

Change value of variable while running simulation

Hello,

Is it possible to change a value of a variable while running a model? I change the value in a table, the code looks in the table to retrieve that value and make a subsequent decision. The value doesn't seem to take effect, i.e., the expected behavior change only occurs when I reset the model completely.

Is there an option to actively modify model behavior while running the model, based on a user interaction?

Regards,

Paul

FlexSim 19.2.4
simulationvariablevalue
· 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.

1 Answer

Paul M4 avatar image
0 Likes"
Paul M4 answered

I did some more looking around for myself. Turns out that the input variable I'm supposed to use is transferred into another variable which is the one actually used by the model.

Changing that variable works as I expected. It's just set up a little awkward.

Regards,

Paul

5 |100000

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