For a system subject to breakdown at some random time, two continuous surve
illance plans are available, differing in efficiency and cost. The controll
er is allowed to switch from one plan to the other at any time. We find the
optimal surveillance strategy in closed form and apply this result in some
examples.