Smart Operation Control of Power and Heat Demands in Active Distribution Grids Leveraging Energy Flexibility | Synapse