This paper presents a generation expansion model for the power sector which incorporates several features that make it very interesting for its application to current electricity markets: it considers the possible oligopolistic behavior of firms, and incorporates relevant policy instruments, carbon emissions trading and tradable green certificates. It combines powerful traditional tools related to the detailed system operation with techniques for modeling the economic market equilibrium and a formulation for the resolution of the emissions permit and tradable green certificates market equilibriums. The model is formulated as a Linear Complementarity Problem (LCP) which allows solving simultaneously the optimization problem for each firm considering the power, carbon and green certificate markets. The model has been implemented in GAMS. An application to the Spanish power system is also presented.