I have a habit of using two styles of in-text citation: with and without author name(s). The two examples below describe what I mean: (# here represents a bibliography index)
"...which is in agreement with simulations presented in Lastname et al. [#]."
"...the X method [#] was here used to model..."
(in the latter case, # might contain an in-depth description of the X method).
I mix these styles freely, depending on what I deem to be appropriate in each individual case. Am I correct to do this or would you consider it to be bad style?