A medical device for controlling and delivering a cardiac pacing therapy, the device comprising: a plurality of electrodes (140, 142, 144) for sensing a first cardiac signal comprising first events corresponding to cardiac electrical events; a physiological sensor for sensing a second cardiac signal comprising second events corresponding to cardiac hemodynamic events; a signal generator for delivering a pacing therapy to a patient's heart via the plurality of electrodes; and a processor configured to: measure a cardiac conduction time interval using the first cardiac signal, control the signal generator to deliver a pacing therapy, characterised in that the processor is further configured to: adjust a first pacing control parameter to each of a plurality of settings during the pacing therapy delivery, measure a hemodynamic parameter value from the second cardiac signal for therapy delivered at each of the plurality of settings, identify an optimal setting from the plurality of settings based on the measured hemodynamic parameter values, solve for a first patient-specific equation defining the first pacing control parameter as a function of the cardiac conduction time interval using the optimal setting and the measured cardiac conduction time interval, and compute a setting for the first pacing control parameter using the first patient-specific equation and the cardiac conduction time interval. a plurality of electrodes (140, 142, 144) for sensing a first cardiac signal comprising first events corresponding to cardiac electrical events; a physiological sensor for sensing a second cardiac signal comprising second events corresponding to cardiac hemodynamic events; a signal generator for delivering a pacing therapy to a patient's heart via the plurality of electrodes; and a processor configured to: measure a cardiac conduction time interval using the first cardiac signal, control the signal generator to deliver a pacing therapy, measure a cardiac conduction time interval using the first cardiac signal, control the signal generator to deliver a pacing therapy, characterised in that the processor is further configured to: adjust a first pacing control parameter to each of a plurality of settings during the pacing therapy delivery, measure a hemodynamic parameter value from the second cardiac signal for therapy delivered at each of the plurality of settings, identify an optimal setting from the plurality of settings based on the measured hemodynamic parameter values, solve for a first patient-specific equation defining the first pacing control parameter as a function of the cardiac conduction time interval using the optimal setting and the measured cardiac conduction time interval, and compute a setting for the first pacing control parameter using the first patient-specific equation and the cardiac conduction time interval. adjust a first pacing control parameter to each of a plurality of settings during the pacing therapy delivery, measure a hemodynamic parameter value from the second cardiac signal for therapy delivered at each of the plurality of settings, identify an optimal setting from the plurality of settings based on the measured hemodynamic parameter values, solve for a first patient-specific equation defining the first pacing control parameter as a function of the cardiac conduction time interval using the optimal setting and the measured cardiac conduction time interval, and compute a setting for the first pacing control parameter using the first patient-specific equation and the cardiac conduction time interval.