Control for energy dissipation in structures