Security-constrained economic dispatch