What about implementing something simple, not rocket science, to have the agents keeping the "social distance" between of them. Here there are several examples:
_"The method Car::tick() determines the behavior of a car
within simulation at each tick. It can be described with the
following pseudocode:
attempt_changing_lanes;
if (at_intersection) decide_new_directon;
if (semaphore==red||semaphore==yellow) stop;
else if (distance_from_other_vehicle<ideal*K)
speed -= k1;
else speed += k2;
do_move;
if (at_finish) self_destruct;
Function attempt_changinglanes decides "
Hi @agrignard
What about implementing something simple, not rocket science, to have the agents keeping the "social distance" between of them. Here there are several examples:
Article-1:
_"The method Car::tick() determines the behavior of a car within simulation at each tick. It can be described with the following pseudocode: attempt_changing_lanes; if (at_intersection) decide_new_directon; if (semaphore==red||semaphore==yellow) stop; else if (distance_from_other_vehicle<ideal*K) speed -= k1; else speed += k2; do_move; if (at_finish) self_destruct; Function attempt_changinglanes decides "
Article-2: The AnyLogic example ;)
Article-3: Wow! Gama team has also an article!!!
Article-4: Patric has his own article! ;)