Cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change workers quantity within workerpool during simulation run?

Creator
Creator

Hi All,

I tried to change worker quantity within workerpool during simulation running, but it did not work.

I found the workers were created at the begining of simulation, and after that I changed the quantity it did not have any effect. So anyone can tell me that is it possible to change worker quantity after simulation beginning?

Thanks in advance!

Kevin

4 REPLIES

Re: Can I change workers quantity within workerpool during simulation run?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Kevin,

 

you can create a new worker at any point in time on your worker pool.

 

.Resources.Worker.create(WorkerPool)

 

 

You can also create all workers you need and use the attribute 'AvailableForMediation' to manage which of them are used. 

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Can I change workers quantity within workerpool during simulation run?

Creator
Creator

Dear Ralf,

 

Thanks for your response, I still have questions on the workers:

1, If I use the create method, if I need less worker someday, Should I use 'delete' method to delete the surplus workers?

2, I can not find the attribute "AvailableForMediation" you metioned, my software version is 11TR2, Could you please tell me where can I find the attribute?

 

Best Regards & Thanks!

Kevin

Re: Can I change workers quantity within workerpool during simulation run?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Kevin,

 

the attribute was added in V12. So it's not yet available in your version.

 

Your suggested solution to delete workers you don't need should work fine.

 

Another solution would be to set the attribute 'Pause' or 'Unplanned' to true when the worker should not be available.

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Re: Can I change workers quantity within workerpool during simulation run?

Creator
Creator

Hello Ralf,

 

Thanks a lot for your answer!

Now I set the workers 'Failed' to true when they are not needed and it works fine.

 

Best regards!

Kevin