Hello,
I have a question about writing a 4D Script in Enterprise Dynamics. It is the following:
I have 6 products (Product A, B ... F) and 3 servers (Server 1, 2 and 3). Each server can produce the following products:
Server 1 produces A, D and E
Server 2 --> B D F
Server 3 --> C E F
My question is now how can I write this in 4DS in ED (on either or both the servers and products). In this case, there is no queue.
I have tried to use the option Rondom assignment and Rondom assignment (First server), but all have them lead to a service rate of the servers which is lower than it should be (according to a Markov Chain in Excel).
Is my problem clear and can anyone help me with it?
Multiple products and servers
- HarryBunnik
- Posts: 362
- Joined: Monday 07 February, 2011 - 11:22
Re: Multiple products and servers
Hello,
I'm afraid it's not entirely clear to me. You can use a source to create products and on the OnExit trigger you can assign a label indicating which product it is. But in which order are products produced?
I hope this helps you a bit further,
Cheers,
Harry
I'm afraid it's not entirely clear to me. You can use a source to create products and on the OnExit trigger you can assign a label indicating which product it is. But in which order are products produced?
- If 1 by 1 by 1, you can use Mod(input(c), 3) + 1 to calculate in which sequence you are.
- If it is randomly, you also have to write some code (dUniform(1, 3) or whatever fits you).
- ....
I hope this helps you a bit further,
Cheers,
Harry