Mixed-integer linear programming based optimization strategies for renewable energy communities. (15th December 2021)