13 March 2006
The agents can start moving after three cycles. Yet, the random patrol was defined for a typical map of 1500 road-segments, instead of the 40 of the small Proof2-map. Counting the number of steps (everytime the agent has nothing to do!) solves the problem, with a much better result of 2.662876.
-
9 March 2006
- Reduced the max_extinguish_power_sum from 1000 to 100 in config.txt to make the task more difficult for the fire-agents. Yet, the fire-agents do nothing, probably because they stopped traveling (traffic-simulator problem?). Anyway, the score of doing nothing after 20 cycles is 2.898275, and the neighbours didn't catch fire yet.
- Increased the period from 20 to 40 in config.txt, but still the neighbours didn't catch fire yet (although the buildings are dark red). The fire-agents cannot do anything, because they stopped the traffic-simulator crashed). Anyway, the score of doing nothing is 2.846050.
- Increased the period from 40 to 60 in config.txt, and rebuild all programs. The traffic-simulator now works, and the fire-agents take correct positions, but no extinction is visible. After 50 cycles the burning buildings are completey burnt down, without igniting the neighbouring houses. Final score is 2.84050.
- Created Proof2 map, with in the lower corner a three story building. At cycle 28 the two neighbours ignite, at cycle 51 the diagonal neighbour ignites, and at cycle 60 the last left building. The last command visible is at cycle 53 (a move or a stretch 129), but I couldn't scroll the window. Final score after 54 cycles is 2.504541.
- Copied RescueMiddleEarth from rescue-0_44, and applied changes as described in earlier, but the change in main.cpp to create a UDPConnection is not directly clear to me. The trick is to replace in the function-call setup_connection config.port with the variable service, so that the command-line option is used. Behaviour is the same, but I increased to period to 100. Now the other left center-building also ignites, and the score after 100 cycles is 2.303389. I also found the reason that the fire-agents cannot extinguish; their commands are rejected by the kernel because the amount of water is larger than the max.
- Introduced max_extinguish_power_sum in parameter.hxx, and now the agents start fire-fighting. After 90 cycles they have stabilized the situation. The score is 2.611165. Possible improvements: multi-nozel actions for neighbours, cooling down of fiercely burning buildings.
- Created function findDanger, which selects an endangered neighbouring Building. This function is used in the Extinguish command for a second nozzle with a small amount of water (up to 9%). The result looks good, but the final score is 2.477168 due to water-damage. Possible improvements: excluding water-damaged buildings in the findDanger function.
- The exclusion of water-damaged buildings in the findDanger function works very well, but not as expected. It leaves non-burning houses alone, but shares some water with burning neighbours. The result is 2.611165. Possible improvement, remove the assymmetric waste check.
- Rasiing the second waste check from 2 to 3 didn't help. Raised the ALLOWED_LEVEL, but now the lower agents oscillates in the Refuge. The result is 2.558409.
- Raising the third waste check from 2 to 4 did help. It looked much better, although the result is 2.611165 (upper building burns down anyway). Possible improvements: at time 9 the bottom agent 268129151 starts considering to extinguish they other building B199575127 (less capacity, other agent closeby). Only at time 44 the top agent 266329182 considers two buildings. At time 9 the bottom agent could have better selected to top one.
- Scaled the distance in findBuilding and findFire with the TotalBuildingArea. The top one became far more attractive, but not enough to select.
- Performance could be better as the agents first moved to the center, and than started to extinguish.
8 March 2006
- Modified Proof/gisini.txt, because gis can only read files where the number of buildings and agents are defined before the positions of buildings and agents are given.
- UvArescueC2004/UvAgents -f2 -F1 -d53 tries to connect to the kernel, but this seams to be the wrong host, port of protocol. TCP is port 7000, UCP is port 8000. The latter is the correct one (-s 8000). The kernel complaints about tcp-connection 34636. From the viewer, I originally get a window, later only messages. Yet, logviewer it seams to work. The two FireAgents are throwing 300 cycles water on the two burning fires, and the fire doesn't spread. The score is constant at 2.949576. Yet, the WaterLevel only goes down once, and never after, so it seams that the firesimulator is crashed. The score/reward is printed in the file SimulationStats.txt. The actions are recorded in DebugInfo.txt (format action(agent-id): building-id, ?, ?, ?, water, 0,).
- The firesimulator of rescue freiburg crashed about an AK_STRETCH. Protected that part in the World.java code.
- Now both FireAgents extinguish both buildings in one turn. Afterwards they get an conflict about going to the refuge. Reduced the period in config.txt to 20. Protected part in viewer/WorldModel.java to be able to view the logfile.
- To be done, reduce the maximum amount of water until they can better start with one building, and then the other.
1 March 2006
- Copied the small maps from ~mfassaer/RCR.
- The boot-scripts all.sh do not work anymore, because xterm terminates directly after the command is spawned.
- The boot-scripts works without xterms, but rescue-0_44 isn't made, and for rescue-0_48 I have no agents in Amsterdam. Friday I will upload them from Delft.
- Looked at ssh as replacement for xterm, but creating an authorized_keys as specified in the ssh-manual doesn't work (both protocols). Maybe I should use grid-proxy :-).
- start ../maps/Tiny works. Tiny is Kobe with one police-agent. Test is Kobe with 50 civilians, 5 fire-agents and a fire-center.
- Notice that Maurits start spawns the xterms without problems as iconic. Copied to rescue-0_48/boot
- Found ../maps/Proof in my mailbox. There seems to be a new version of JGISedit available than my 2002 version. The 2003 version also shows the location of the agents.
Labbook 2005
Labbook 2004
Formatting Help?