-
Notifications
You must be signed in to change notification settings - Fork 13
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
Write new test for congestion #8
Comments
Look at
* EvacAgentTracker, which generates the event (i.e. defines the conditions of "congested")
* EventsMonitorRegistry, which catches the event and then interacts with the BDI system
On 18. Jan 2018, at 17:11, Dhirendra Singh <notifications@github.com<mailto:notifications@github.com>> wrote:
Requires some discussion around what it means to be in congestion, i.e., how the congestion event<https://github.com/agentsoz/bdi-abm-integration/blob/a167cf42751ae2f6250331b0d99ad8e7cdf50e70/integrations/bdi-matsim/src/main/java/io/github/agentsoz/bdimatsim/AgentInCongestionEvent.java#L31> is generated.
Then:
* Calculate when an agent is in congestion and generate the BDI percept
* Handle the congestion percept on the BDI side and replan like we do for when blocked<https://github.com/agentsoz/bdi-abm-integration/blob/c0a4941a227be26122a5c45e47eb7cfb5995d5f8/examples/bushfire/src/main/java/io/github/agentsoz/ees/agents/Resident.java#L97>.
/cc @kainagel<https://github.com/kainagel>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#8>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIXvscxrkY4U_KPO27TSu0bMBkIb14Vxks5tLuCggaJpZM4Rib12>.
www.vsp.tu-berlin.de<http://www.vsp.tu-berlin.de>
+49 30 314 23308 (phone) +49 30 314 26269 (fax)
TU Berlin Sekr. SG 12, Salzufer 17-19, 10587 Berlin
|
Since a154c29 there is now some logic that determines if an agent is in congestion. The idea is something like this:
The relevant code is here: Lines 117 to 125 in a154c29
This now means that the AgentInCongestion MATSim event is now generated. The next (easier) part still to do is to then handle this and ship off a congestion percept to the BDI counterpart to do something with. /cc @osbornejr |
…ges; beginnings of a test in Castlemaine2000Test; towards #8
Commit d5aea6f adds the ability for Relevant code is here: bdi-abm-integration/examples/bushfire/src/main/java/io/github/agentsoz/ees/agents/Resident.java Lines 97 to 113 in d5aea6f
Have added test Castlemaine2000Test where 2000 vehicles leave Camp Reserve in Castlemaine towards Harcourt. Test is ignored at the moment as it is not ready yet. /cc @osbornejr |
@kainagel the new test Castlemaine2000Test that I mention above fails with the following error. Any ideas? It's not doing anything special, just has 2000 vehicles leaving Castlemaine for Harcourt.
|
Commit a6411d4 now has what seems to be a reasonable setting for congestion - agents reevaluate the situation every 3 mins and will replan if then are delayed by more than 25% or 45 secs. bdi-abm-integration/examples/bushfire/src/test/java/io/github/agentsoz/ees/Castlemaine2000Test.java Line 45 in a6411d4
Here is what the unfolding evacuation looks like with vehicles departing Camp Reserve in various directions due to congestion, towards Harcourt in the northeast: Note that the checks are not enabled yet in the test, as the results seem to be non-deterministic. /cc @osbornejr |
As of 6a015b5 the test is called 'Castlemaine1000Test.java', as the test actually has 1000 vehicles. Note that the test results are non-deterministic. Will raise a separate issue for this. |
Requires some discussion around what it means to be in congestion, i.e., how the congestion event is generated.
Then:
/cc @kainagel
The text was updated successfully, but these errors were encountered: