A new method has been proposed that simultaneously optimizes individual office workers' productivity and energy consumption costs by automating the control of indoor environmental conditions including air quality, temperature and lighting.