1. A method for setting operating parameters of a cardiac rhythm management device, comprising: determining the degree of ventricular asynchrony existing in a patient; and selecting between a parameter optimization algorithm that maximizes cardiac output and a parameter optimization algorithm that maximizes myocardial contractility based upon the degree of ventricular asynchrony.