JonasStjerne / resilient-pathfinding

Risk-Aware Path Finding Algorithm
https://p7-xi.vercel.app
0 stars 0 forks source link

#84 simulation general #106

Closed JonasStjerne closed 10 months ago

JonasStjerne commented 10 months ago

This PR merges the following:

  1. Adds simple UI for generating maps
  2. Implements a function to auto-generate batches of maps with start and end nodes that are reachable
  3. Saves the batch maps to the file system
  4. Adds a UI to run simulations and see stats (maps can be uploaded from the file system)
  5. Uses the simulateRoute function in algo/Simulate.ts to simulate a path
  6. Track computation time for the initial path search
  7. Calculate the average compute time, traveled distance, pushover rate, and success rate per map and an overall average
  8. Stats are displayed in the UI and in a simple diagram divided by map
  9. Uses gzip instead of json to save maps. This reduces filesize by 99%

Additionally, it fixes the mu colorization to be white for the maximum mu

Remember to run npm i as there is a new package installed for types

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
p7 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 23, 2023 9:31am