Reliability- and cost-based medical device service optimization