A method for use by an active medical device includes using a stimulation device and an endocardial acceleration sensor to obtain a plurality of hemodynamic parameters associated with at least three atrioventricular delays. The method further includes using the plurality of hemodynamic parameters to find a second derivative associated with the atrioventricular delays. The method further includes using interpolation to estimate an atrioventricular delay which will reduce the second derivative associated with the atrioventricular delays. The method further includes using the estimated atrioventricular delay in a subsequent stimulation.