We derive optimal subsidization of renewable energies in electricity markets. The analysis takes into account that capacity investment must be chosen under uncertainty about demand conditions and capacity availability, and that capacity as well as electricity generation may be sources of...