Comments (5)
Hi @dhixsingh I am trying to look into this issue at the moment, the main hurdle I think is in the MatsimModel (~line 480).
I have setup a REQUEST_DRIVING_DISTANCE case that would most likely have two location coordinates as input args-- one that was obtained using REQUEST_LOCATION, and the other coming from the list of evacuation point locations.
But I will need some matsim mechanism to get a travel time estimate between the two locations. Do you know which that would be? I am looking at something like LeastCostPath but am unsure how to implement it.
Or is this kind of thing on the MATSim side best left to Kai?
Cheers
from bdi-abm-integration.
@kainagel is there an easy way to query MATSim for the driving distance (not beeline) between two nodes on the network? I guess we will first want to find the route between the nodes given some routing mode (like freespeed), and then the distance (and maybe also estimated time) covered by that route.
from bdi-abm-integration.
See 1df1786 and later in queryPercept. Can't say if it will work; please try around a bit with it. One issue is that you need to define the EvacRoutingMode; it will thus return the length associated with the routing mode, not the shortest path by distance. If you need the latter, you/we will need to set up a shortest path router.
from bdi-abm-integration.
Thanks @kainagel. Requiring the EvacRoutingMode
is fine. Will try and it out and let you know if we have more questions.
from bdi-abm-integration.
Available since ee66066.
Usage example is here:
Example output from scenarios/mount-alexander-shire/campbells-creek-1/jill.out
looks like this:
Time 00286 Resident 0 : received fire alert
Time 00286 Resident 0 : will start driving to shelter in (Castlemaine, coords=252145.230968,5894310.30443) at time 291.0
Time 00405 Resident 0 : is blocked at link 51823
Time 00405 Resident 0 : is currently between locations (321543051, coords=251458.994864993,5892667.574804958) and (60303155, coords=251444.56941373763,5892815.969128571)
Time 00405 Resident 0 : estimated driving distance to shelter accounting for detour is 3.9km
Time 00405 Resident 0 : will reevaluate route to destination (attempt 2 of 5)
Time 00405 Resident 0 : will start driving to shelter in (Castlemaine, coords=252145.230968,5894310.30443) at time 410.0
Time 00848 Resident 0 : arrived at shelter in (Castlemaine, coords=252145.230968,5894310.30443)
/cc @osbornejr
from bdi-abm-integration.
Related Issues (20)
- Implement proximity-based alerts for smoke, fire, and neighbours leaving HOT 3
- Allow committed BDI driveTo actions to be aborted HOT 1
- Improve destination choice for leave now behaviour HOT 2
- Set attributes for each agent during initialisation (plan algorithm) HOT 2
- Fix location choice to be based on localities, not distances HOT 2
- Select dependent location based on locality HOT 2
- Update BDI agent attributes HOT 5
- Include fire front in disruption model HOT 1
- Awareness of distance from fire HOT 1
- Time buffer before acting HOT 1
- Create new staged evacuation test for Anglesea HOT 2
- SurfCoastShirePopulationSubgroupsTest does not run to completion HOT 1
- Agents skipping initial response HOT 7
- Double evacuations HOT 1
- Move evacuation code from BDI-MATSim integration to EES application HOT 1
- How to modify MATSim plans HOT 3
- How are the new routers set up? HOT 1
- Migrate to AgentDataContainer V2
- Update bdi-matsim to use MATSim 12.0
- abm-jadex layer compile failure HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bdi-abm-integration.