Let

be a code of

vectors whose components consist of

ones and

zeros. The vectors are transmitted with equal probability over the asymmetric channel whose error probabilities for transmitted zeros and ones equal respectively

and

(such channels arise in optical communication). The problem of determining for fixed values of the parameters

those codes which achieve minimum error probability is studied. The problem is solved for

. Partial results are obtained for all

.