Optimal regulation of left ventricular ejection pattern