Variable stiffness control for oscillation damping