Widespread introduction of Distributed Energy Resources (DERs) such as volatile renewable generation, electric vehicles, heat-pumps and battery storages causes a paradigm shift of the power system. Traditional power systems with few large-scale power plants are expanded or replaced by millions of small- to medium-size DERs. Local Energy Markets (LEMs) are a promising approach to facilitate the optimal operation and dispatch of DERs and enhance grid-integration on regional grid levels. In this Thesis, a novel linear-optimization-based market model for LEMs is developed. The market matching problem aims to maximize the social welfare of participants while considering technical and financial aspects of participants’ assets and the distribution...