Optimization of public lighting in areas and exterior lighting of community buildings