A smart hybrid renewable energy for communities (SHREC) is proposed.
SHREC considers the thermal and electricity market in the context of DH network.
A more efficient modelling and optimization method for SHREC is developed.
Day ahead level modeling and optimization is useful in the operation of SHREC.
Renewable energy and energy storages are promoted to increase the efficiency.