I am looking to be able to model a flucuation of workers on a single part. For example, if a part takes 2 weeks to finish there will be a variety of different kinds of workers working on it during the 2 weeks time. I was wondering if there is a way to model or code a fluctuation of workers over this time. It doesn't need to be exact to the hour but if I have 5 workers working on it in week 1 then 8 workers the next week, how would one model this?
Thanks for any help!
Solved! Go to Solution.
Thanks for the quick reply. I have created a small model of what I am trying to accomplish. What I created was a method that would change the services after one weeks time, however, I am receiving an error in the code saying "Cannot change services; they are imported." I've looked over my code and everything seems to work and I think this error is because the workers are still at the workstation when I want the services to change.
That brings up the question is it possible to change the services to more or less people while workers are on the workstation? If not, is there any work around to make this work (send workers back to worker pool then set services again)?
Thanks for the reply. So what I have created is a small example. I have it so that the services change after one week, however, I get an error "Cannot change services; they are imported." So, I'm wondering if I can even change the services while workers are currently at the workstation working on the part? If not, is there a work around (have the worker return to the workerPool then change the services)? I was reading another thread about having different workers each shift here:
Would this be a similar solution?
While the job is running, you cannot change the number of necessary services.
You need to remember, how Plant Simulation calculates events. If the MU enters the block, Plant Simulation calculates the out event for the MU and the release times for the worker. If you want to change it "in between" you need to quit the old (part) job and create a new one with a different setting.
Try the following workaround: quit the job (mark the part, store the remainingProcTime in the part) e.g. with the method outIn.
Block the exit of the predecessor, move the part in the exit control to the same station, recalculate in the entrance control before actions the remaining procTime and number of workers.
It should work in the same way, like a real multi machine operation where a part of the process works without the worker e.g. see class M
I've never used the Inout method, could you give me an example? I've attached the sample program I've been working with if that helps.
Thanks Steffen, this looks great and I'm following the reasoning. I'm using Plant Sim 13.0 and I get a warning Line 12 and 21 of the Test method. It doesn't give a reasoning so I'm wondering if this is because I need to upgrade to Plant Sim 13.0.1?