This paper presents a methodology to maximize the self-sufficiency or cost-effectiveness of grid-connected prosumers by optimizing sizes photovoltaic (PV) systems and electrochemical batteries. In optimal sizing procedure, limitation on maximum injection in grid can affect energy flows, economic effectiveness investments, thus results. After explanation case study is presented, parametric analy...