question

Ranjith Tellis avatar image
1 Like"
Ranjith Tellis asked Ranjith Tellis commented

How to programmatically execute FlexSim model?

Hi,

I want to execute a FlexSim HC model (.fsm) file programmatically by providing it Patient Arrivals as input.

The FlexSim model (.fsm) contains experiment variables and all the necessary inputs like Process time, Staff/Resource schedules etc. embedded and the model is also configured to create the output files.

I want to invoke the FlexSim exe file programmatically to run the model/experiment by passing it the model file (.fsm) and the Patient Arrival appointment time (.csv). Once the execution is complete, I would expect the Output files to be generated in the respective directory from which I will extract the statistics and build some plots.

Any suggestions on how to execute the model programmatically?

Thanks

Ranjith

FlexSim HC 5.3.4
programmatically invoking flexsim model
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

·
tannerp avatar image
2 Likes"
tannerp answered Ranjith Tellis commented

Here is a thread containing code samples that can be used to execute different commands upon start-up. Take a look at this and then let us know if you have additional or specific questions.

https://answers.flexsim.com/questions/21116/automatically-configure-and-run-a-flexsim-model.html

Reference the section on "Command Line Options" specifically.

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

Ranjith Tellis avatar image Ranjith Tellis commented ·

Thank you, that's exactly what I was looking for.

1 Like 1 ·

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.