Hi,
I've looked at some other answers regarding this but I still can't seem to figure it out. I'm building a general transportation model and want the distances between 2 nodes to change upon arrival. This prevents building a network of nodes with varying distances to the same point. The distances would be changed through a distribution (uniform, normal,etc.). from Node 1 to Node 2. To make things complicated, is there a way to set a different virtual distance between those nodes per staff upon arrival: Transporter 1 w/ patient arrives at Node 1, distance is changed to "X" to Node 2. While Transport 1 is on the path, Transporter 2 w/ patient arrives at Node 1, distance for Transporter 2 is changed to "Y" to Node 2. Would Transporter 1 still adhere to distance "X", while Transporter 2 would remain with distance "Y"? Is there a better way to do this? I thought about dynamically changing the transporter's speed along the path from Node 1 to Node 2, but it seems like I can't put in a distribution:
Activity Started Trigger:
setvarnum(getrequiredresource(patient,60,STAFF,1), "maxspeed", uniform(10,500,0));
This code doesn't seem to change anything.