An adaptative pendulum for evolving structures