Multiple products and servers

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Scharterkoning
Posts: 1
Joined: Tuesday 16 December, 2014 - 21:05

Multiple products and servers

Post by Scharterkoning »

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?
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: Multiple products and servers

Post by HarryBunnik »

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?
  • 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).
  • ....
And what do you want to do after it with the products?

I hope this helps you a bit further,

Cheers,

Harry
Post Reply