We present techniques used in the implementation of an efficient constraint program for the portfolio optimization (PO) problem. This important combinatorial problem in the credit derivatives market arises for example when constructing synthetic collateralized debt obligations (CDOs) squared. A close relationship with the balanced incomplete block design (BIBD) problem exists which we make use ...