An algorithm for the assessment of subjective adaptive thermal comfort conditions based on multi-agent systems.