0
votes

I am modeling the type of Customer agents. They are given parameters: they work (true / false) and have education (true / false).

There is a condition that agents in the block service fall where works == true and education == true. And all the others go to the exit.

enter image description here

How do each agent specify different parameters?

1

1 Answers

1
votes

So the first thing to notice here is that your queue block does nothing and you could just remove it.

And to change the parameters of your agent, in your source, in the "on at exit" action you can write the values you want, for instance:

agent.works=false;
agent.education==true;

you can also create random values...

agent.works=randomTrue(0.5);
agent.education==randomTrue(0.5);

also, if you go to your agent's variable "works", in the default value, you can make it also random writing randomTrue(0.5)

where randomTrue defines how likely it is for your variable to be true (0.5 means 50% chance)