In this article, a single-machine weighted earliness and tardiness problem with arbitrary time windows is considered. Idle time between two adjacent jobs is permitted and the due dates of jobs may be unequal. The dominance rules can be utilized to develop a relationship matrix which allows the branching algorithm to eliminate a high percentage of nonfeasible solutions. After this matrix is combined with a branching strategy, a procedure which can solve the problem is proposed.