Techniques for controlling delivery of a therapy to a patient by a medical
device, such as an implantable medical device (IMD), involve a
sensitivity analysis of a performance metric. The performance metric may
relate to efficacy or side effects of the therapy. For example, the
performance metric may comprise a sleep quality metric, an activity level
metric, a movement disorder metric for patients with Parkinson's disease,
or the like. The sensitivity analysis identifies values of therapy
parameters that defines a substantially maximum or minimum value of the
performance metric. The identified therapy parameters are a baseline
therapy parameter set, and a medical device may control delivery of the
therapy based on the baseline therapy parameter set.