Adjoint-based optimal design of adaptive negative stiffness devices for inelastic frame structures | Synapse