Search code examples
anylogic

How to use RandomTrue if condition is met in Anylogic Transition element?


enter image description here

I am working on a model, where the condition is if the agent has money>10.0. If true then 50% agent should go forward to the next state.

I also tried this as in image below

enter image description here

But I am not sure if it is right or wrong.

How can I model this?


Solution

  • I am working on a model, where the condition is if the agent has money>10.0. If true then 50% agent should go forward to the next state.

    This is entirely wrong :) Agents do not pass through state charts ever. State charts define behavior of individual agents.

    If you want what you say above, you need to use flow chart blocks and a SelectOutput element with the condition agent.Money>50 && randomTrue(0.5)