Skip to content

feat: vdf sparse horizon handler - file writing and reading#278

Merged
sebhoerl merged 5 commits into
feat/vdf-sparse-horizonfrom
feat/vdf-sparse-horizon-tc
Nov 14, 2024
Merged

feat: vdf sparse horizon handler - file writing and reading#278
sebhoerl merged 5 commits into
feat/vdf-sparse-horizonfrom
feat/vdf-sparse-horizon-tc

Conversation

@tkchouaki

Copy link
Copy Markdown
Collaborator

This PR fixes the reading and writing of the vdf.bin file in the VDFSparseHorizonHandler currently under implementation (see PR #276).

The writing and reading are tested in TestSimulationPipeline::runVdf by first running a VDF simulation using the VDFSparseHorizonHandler and then running a standalone mode choice on the same config while passing the written vdf.bin.

Moreover, this PR prepares the comparison of simulation outputs with the VDFSparseHorizonHandler and the old VDFHorizonHandler by comparing the output events. This test is not passing currently, line 404 should be un-commented to check before merging into the develop branch.

@tkchouaki

Copy link
Copy Markdown
Collaborator Author

Update: now using org.matsim.utils.eventsfilecomparison.EventsFileComparator to compare the event files resulting from using the VDFHorizonHandler VS the VDFSparseHorizonHandler. The test pass now.

@sebhoerl

Copy link
Copy Markdown
Collaborator

Great, good to merge?

@tkchouaki

Copy link
Copy Markdown
Collaborator Author

Great, good to merge?

Yes

@sebhoerl sebhoerl merged commit 05f84a8 into feat/vdf-sparse-horizon Nov 14, 2024
@sebhoerl sebhoerl deleted the feat/vdf-sparse-horizon-tc branch November 14, 2024 09:17
sebhoerl added a commit that referenced this pull request Nov 26, 2024
* feat: sparse horizon handler for vdf

* small fix

* feat: vdf sparse horizon handler - file writing and reading (#278)

* feat: Using VDFSparseHorizonHandler by default

* fix: file writing and reading

* feat: towards testing VDFSparseHorizonHandler VS VDFHorizonHandler

* chore: cleanup

* feat: comparing output events of VDFHorizonHandler and VDFSparseHorizonHandler

---------

Co-authored-by: tkchouaki <tarek.chouaki@irt-systemx.fr>

* chore: comparing plans instead of events

---------

Co-authored-by: Tarek Chouaki <tkchouaki@gmail.com>
Co-authored-by: tkchouaki <tarek.chouaki@irt-systemx.fr>
And128 pushed a commit to And128/eqasim-java that referenced this pull request Oct 10, 2025
* feat: sparse horizon handler for vdf

* small fix

* feat: vdf sparse horizon handler - file writing and reading (eqasim-org#278)

* feat: Using VDFSparseHorizonHandler by default

* fix: file writing and reading

* feat: towards testing VDFSparseHorizonHandler VS VDFHorizonHandler

* chore: cleanup

* feat: comparing output events of VDFHorizonHandler and VDFSparseHorizonHandler

---------

Co-authored-by: tkchouaki <tarek.chouaki@irt-systemx.fr>

* chore: comparing plans instead of events

---------

Co-authored-by: Tarek Chouaki <tkchouaki@gmail.com>
Co-authored-by: tkchouaki <tarek.chouaki@irt-systemx.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants