toruseo / UXsim

Vehicular traffic flow simulator in road network, written in pure Python
https://toruseo.jp/UXsim/docs/
MIT License
138 stars 61 forks source link

Add customizable `user_function` to `World`, `Node`, `Link`, and `Vehicle` #124

Closed toruseo closed 2 months ago

toruseo commented 2 months ago

This allows users to define custom functions that are automatically called during simulation without modifying the internal simulation code. For the usage, see https://github.com/toruseo/UXsim/blob/main/demos_and_examples/example_24en_user_defined_functions.py

Inspired by https://github.com/toruseo/UXsim/issues/120 @EwoutH