Optimization Study in Control of a Flexible System under Random Disturbance