mpcastr3 Posted July 24, 2013 Share Posted July 24, 2013 Hi, I'm using vehicles in one model and they work in shifts. For example, there are 4 vehicles in shift 1, 8 in shift 2 and 12 in shift 3. However, I'm not sure how I can easily program this, any tips? Link to comment Share on other sites More sharing options...
ASagan Posted July 25, 2013 Share Posted July 25, 2013 Two ways come to mind off the top of my head: Create three separate instances of vehicles with different work schedules. Give each vehicle instance the population that you're looking for. Create one instance of a vehicle with a population of 24. Use processes to set the capacity of the various specific realizations based on your shift pattern. Link to comment Share on other sites More sharing options...
mpcastr3 Posted July 29, 2013 Author Share Posted July 29, 2013 Two ways come to mind off the top of my head: Create three separate instances of vehicles with different work schedules. Give each vehicle instance the population that you're looking for. Create one instance of a vehicle with a population of 24. Use processes to set the capacity of the various specific realizations based on your shift pattern. Thanks for the answer. What exactly do you mean by setting the capacity? Using something like Vehicle[1].Capacity? Link to comment Share on other sites More sharing options...
ASagan Posted July 29, 2013 Share Posted July 29, 2013 Almost. The state you're looking for is 'CurrentCapacity'. Link to comment Share on other sites More sharing options...
mpcastr3 Posted July 30, 2013 Author Share Posted July 30, 2013 Almost. The state you're looking for is 'CurrentCapacity'. Oh ok. I guess that works, but I was looking for a method that can be easily used with OptQuest. I'll see what I can do. Thanks! Link to comment Share on other sites More sharing options...
ASagan Posted July 30, 2013 Share Posted July 30, 2013 This could be set up to work with optQuest. You could create some different schedules that manipulate the currentCapacity and then link these schedules to input properties that can be manipulated by optQuest. This would be the same approach when using the work schedules as well. Link to comment Share on other sites More sharing options...
mpcastr3 Posted July 31, 2013 Author Share Posted July 31, 2013 Yes, you're right. The key was setting the initial population as the maximum you want to use. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts