## 4 Case Study
Once the building model and the interaction model have been defined, we can proceed to perform the simulation. To do this, the visualization tool must be deployed, which at the beginning of the process, has perform different operations: (i) loading the building model; (ii) generating of the navigation mesh; (iii) synchronizing with the agent platform. Figure 10 shows a screenshot of the simulation tool. The execution of the simulation will depend on the set of tasks that the MAS has to perform, which may be specified by the user, or generated by the management agent, as well as the process of the tasks assignment. Overall, the simulation will be defined by the definition of:  
* The set of agents responsible for each department: \(R=\{R_{0},\ldots,R_{i}\}\)
* The set of worker agents: \(A=\{A_{0},\ldots,A_{j}\}\)
* The set of tasks to be performed by the worker agents: \(T=\{T_{0},\ldots,T_{k}\}\)
* The type of resources: \(l\geq\{1,\ldots,L\}\)
* The set of resources (environment agents): \(E=\{E_{0},\ldots,E_{m}\}\)
* The amount of available resources of n type at a certain \(t\) time: \(L_{n,t}\)  
Figure 10: Simulation tool. The result space after the performance of a certain task by a worker agent has only two possible output states (success and failure): \(O\in\) {0,1}, where 1 represents the success of the performance of a task, and 0 represents its failure. First, a simulation of 15 min is planned. For the initial set-up of the different agents that represent actual workers within the organization, a Human Resources manager established a simulation of a total of 8 agents, whose department was assigned proportionally to the amount of workers of each department that were working at the company \(-1\) receptionist, 2 maintenances and 5 administrative. Three of them have reduced mobility problems, three are visually impaired and one is deaf. The assignment of the work places for each of the agents was made just according to the productive processes that take place in the organization, without taking the possible architectural barriers that they might find into account. Once the environment and the agents' distribution and characteristics were set up, the simulation can take place in the 3D viewer. After the simulation, the tool generates a detailed report with the accessibility problems that the avatars have encountered, which have impeded the achievement of the tasks assigned to them. 118 were successful and 79 failed (Figure 11A). Some of the deficiencies found were: (i) The lack of adapted bathrooms in the building; (ii) working places not adapted for people with visual or hearing disabilities: impossibility to perform tasks such as answering the telephone, or being aware that the fire alarm is active; (iii) lack of ramps that enable the access to higher floors as an alternative to the elevator, which in case of breakdown would obstruct the access or exit to the building; (iv) limited access to certain work stations-spaces not large enough for access with wheelchairs or; (v) not accessible furniture elements-file cabinets, photocopiers. Figure 11: Successful and failed tasks after simulations. (**A**) results after first simulation; (**B**) results after second simulation. After the detection of these accessibility problems, all the information obtained from the tool was used by the Human Resources manager in order to perform several changes (both in the distribution of environment elements and workers) that could emerge into an improvement of the accessibility of the working place. First, the 3D editor was used to perform a redistribution of the elements of the furniture susceptible to improvement and the adaptation of the work places for users with auditory and visual deficiencies. Secondly, a relocation of the work places of those users of wheelchairs that could not perform their designed activities due to several displacement criteria such as maneuver, change of level, reach or control was made using the 3D viewer.