Jump to content

Recommended Posts

Posted

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?

Posted

Two ways come to mind off the top of my head:

  1. Create three separate instances of vehicles with different work schedules. Give each vehicle instance the population that you're looking for.
  2. 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.

Posted
Two ways come to mind off the top of my head:

  1. Create three separate instances of vehicles with different work schedules. Give each vehicle instance the population that you're looking for.
  2. 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?

Posted
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!

Posted

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.

×
×
  • Create New...