How to programmatically execute FlexSim model?

How to programmatically execute FlexSim model?

ranjith_tellis
Not applicable
20 Views
2 Replies
Message 1 of 3

How to programmatically execute FlexSim model?

ranjith_tellis
Not applicable

[ FlexSim HC 5.3.4 ]

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

Accepted solutions (1)
21 Views
2 Replies
Replies (2)
Message 2 of 3

tanner_p
Not applicable
Accepted solution

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.

Message 3 of 3

ranjith_tellis
Not applicable

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