CGGericke Posted April 26, 2016 Share Posted April 26, 2016 Hi I have a situation where we receive applications only during week days. I have a source with a Rate Table but this only allows me to add the rate per day. The end result is that I am receiving the same number of applications over weekends as what I am receiving during the week. This results in servers being overloaded and queues building up. I would like to have the entities arrive during the 5 days of the week and not over Saturdays and Sundays. I would appreciate your help, although I suppose the answer is very simple. I have not used Simio for a few years and I am trying to get back into it. CG Link to comment Share on other sites More sharing options...
devdatta Posted May 3, 2016 Share Posted May 3, 2016 Hi, I have attached a small example model to show a way to stop creating entities over weekend. I have Sub classed the source object and overridden the 'OnStopEventOccured' process. Within the process, i have added a 'Wait' step to disable entity creation over weekend and an 'Assign' step to enable the process again. Place the sub classed source object within the model and add two events, 'StopEvent' and 'ResetEvent' to the model. 'StopEntityCreationOnWeekend' process within the model checks which day of the week it is and accordingly fires an event which either stops creating new objects from the sub classed source object or starts creating new objects. Change the sub classed source objects 'Stop Event Name' property to 'StopEvent' which will disable the source object if it is a weekend. Similarly,change the event name for the wait step in the sub classed source object to 'ResetEvent' which will enable the source object again. ThanksStopEntityCreationOnWeekend.spfx Link to comment Share on other sites More sharing options...
dsturrock Posted May 3, 2016 Share Posted May 3, 2016 You could also just use the DayOfWeek function to set the entities per arrival to 0 on Sunday (day 1) or Saturday (day 7): Link to comment Share on other sites More sharing options...
Recommended Posts