Text this: Optimal passive and active control mechanisms for seismically excited buildings