This study firstly cuts down the PV output scenario based on the KD algorithm. Secondly, it is divided into two layers for optimization: the upper layer optimization utilizes the NSGA-II algorithm for PV siting and capacity determination. The lower layer optimization is based on Matlab/Yalmip for optimal design of O&M expenditure considering carbon emission.