Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimal Steps Model #1295

Closed
wants to merge 10 commits into from
Closed

Conversation

schroedtert
Copy link
Contributor

No description provided.

@Ozaq Ozaq added the Prototype label Nov 29, 2023
@Ozaq
Copy link
Contributor

Ozaq commented Nov 29, 2023

This is a very rough draft of how we could integrate the Optimal Steps Model(OSM) into JuPedSim based on:

The primary challenge is that JuPedSim expects all models to be generational, i.e. the state(n+1) of all agents is computed from the state(n). The OSM however uses an event-based approach where agents move one after another.

The goal of this prototype was to:
A) Get a better understanding of the OSM and the respective Vadere code.

B) Get an understanding of where architectural changes are required to integrate OSM

Outcome:

A) We now know "where to look" in Vadere for most implementation questions not answered by reading the publications above. What remains unclear is what the authors consider the "best" variation of OSM as the publications and Vadere offer a wide selection of variants.

We think we understand the OSM well enough to "be dangerous"

B) The prototype shows that we can embed the event based updates in an outer iteration based computation, i.e. When the simulation is requested to compute in time steps of 100ms we will handle all events that occur in the duration between t and t+100ms.

The prototype however is not working properly w.r.t to our agent removal handling and journey handling as this is tied to the main loops iteration time and now instead should act after each individual agents update. We did stop at this point because we can already see that the integration will not be finished in a few more days and we are not sure if the added complexity of providing a more general support for event based models if a worthwhile tradeoff.

We will need further discussion if we want to go th full way and integrate OSM

@Ozaq Ozaq closed this Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants