Linear determining equations, differential constraints and invariant solutions