Optimal modification in the dynamic behaviour of vibrating structures