Deltares / ra2ce

RA2CE helps to quantify resilience of critical infrastructure networks, prioritize interventions and adaptation measures and select the most appropriate action perspective to increase resilience considering future conditions.
https://deltares.github.io/ra2ce/
Other
7 stars 1 forks source link

fix: 488 Fix weighing time redundancy analyses #494

Closed ArdtK closed 2 weeks ago

ArdtK commented 2 weeks ago

Issue addressed

Solves #488, introduced by #433.

Code of conduct

What has been done?

Instead of calculating the distance first and based on that calculate the alternative value (distance or time), it now directly calculates the alternative value (and path) based on the weighing.

Checklist

Additional Notes (optional)

The dijkstra calls for getting the optimal route (length and nodes) are combined in 1 call.