i'm still very new at Anylogic but really enjoying it so far.
I have a simple model which has a separate Agent called 'Passenger'. Inside the Passenger I have a parameters called 'WITH_CHILDREN' which it's default value is randomTrue(0.5).
In my main process, I would like the Passenger that results TRUE for 'WITH_CHILDREN' to take longer at a specific delay process.
I thought it would be something like (inside the on enter action of the delay):
if(passenger.WITH_CHILDREN == true){
delayTime = triangular(1,5,15);
else{
delayTime = triangular(0,1,1.5);
}
However there are many errors with this :( I would like to link it from the Agent as oppose to setting the percentage in the delay as I have future percentages parameters that will be used on other delays.... If that makes sense.
Any help will be appreciated, thanks! :D
Aucun commentaire:
Enregistrer un commentaire