A variational formulation of dissipative quasicontinuum methods. (15th December 2016)