Optimal Control of Mechanical Oscillations door