A method, apparatus, or system to identify optimal parameters for programming a cardiac stimulator by a matrix-based decision algorithm using sensor data representing cardiovascular function. The parameters include pacing intervals optimized concurrently to produce the maximum resulting cardiac function.