This is the code used to generate the results for the paper Maintenance Optimization for Multi-Component Systems with a Single Sensor by Ragnar Eggertsson, Ayse Sena Eruguz, Rob Basten, and Lisa M. Maillart. The paper introduces a novel model to optimize maintenance interventions for a multi-component system with a single sensor. The model is formulated as a partially observable Markov decision process. The Python script in this repository implements the algorithm, discussed in the paper, that solves the model. This algorithm is a type of incremental pruning algorithm. Running this algorithm generates the results presented in the section Illustrative Examples.