Sensitivity and optimization