events action in system dynamics problem using anylogic

30 Views Asked by At

can anyone help me with the function i have to insert in the action? It's a system dynimcs problem and my goal is to work 8 hours and then stop the production every day. The input flows are ApprovSaggina and ApprovBastoni so I think this flows must be stopped enter image description here

Thanks a lot

I've tried onChange() but I'm not sure

1

There are 1 best solutions below

2
Benjamin On

You need to change the inputs to the flows to zero. So for the ApprovBastoni, you can use set_rit(0).

If you'd have a variable rateSaggina that is used to define the ApprovSaggina, you could call rateSaggina=0.;