Andrew Miller, who spent his winter as one of the players’ union’s top representatives in helping negotiate a new collective bargaining agreement with the owners, announced his retirement from the major leagues after 16 seasons.