An integrated analysis was undertaken using a generic model of retrofit costs as a function of basic plant characteristics (such as heat rate) in the National Energy Modeling System (NEMS). Modifications to NEMS were made to determine tradeoffs between retrofit, retirement, and the purchase of emission allowances.