In this article we focus on post-failure control of a mechanical manipulator from the point of view of optimal control, and present a novel method for controlling the positions of the failed, passive joints in an optimal way. It used the so-called coupling index as an optimization criterion to minimize the energy spent by the underactuated manipulator. Although the optimization is performed locally, the results indicate the validity and feasibility of the proposed theory.