I need build a method to unhook the wagons of a train, after it unloads the products in a single process.
The idea is that wagons are moved to a garage - which has capacity 8 wagons; when the garage reaches the maximum capacity, the train back to engage the wagons
Look the iniciate structure of case.
What can I use in this case?
- Method Routing
- Methdo User-define Attribute
Could you please elaborate a bit more on what your model should do?
In my humble opininon the ammount and type of methods required to model something like this is strictly related to how do you visualize your model to behave.
Thanks a lot for help me, I'm preparing a specific description about this simulation, I searched for more details of process, because of this the solution to the problem was to the background.
In the next post, I'll attach the example with others information.
I'm working in a case similar to the example below:
but I need that wagons are unloaded together of MUs, while the single process removes MU by MU of wagons, the empty wagons are allocated in a garage.
The train goes to the beginning the track and hitching other wagons. In the total there are 4 wagons in the track, when all wagons are empties the train hitch again e the process init again.
The idea is the train carry only one wagon per time.
just for understanding: you want to drag one waggon to the single process, there you want to unhitch the waggon, the single process takes the MUs from the waggon one by one, then the waggon is send back to garage (without the tractor) ?
I'm trying reproduce your example in my case...
but in the method "unloadwaggon" there is a problem in one of line.
--load one part from wagon
if track4.occupied then
if track4.cont.empty then
--remove empty wagon
because of that my waggon doesn't return to the start of the track 2.
Can you help me?
Your unload method in the model has another content. I included also a check, if the wagon is loaded (tack4.cont.occupied) before moving a part.