Logical Constraints in Optimization, introduced features of ILOG CPLEX that transform parts of your problem automatically for you. This chapter shows you some of those features in use in a C++ application. The chapter is based on the formulation by H.P. Williams of a standard industrial problem in food manufacturing. The aim of the problem is to blend a number of oils cost effectively in monthly batches. In this form of the problem, formulated by Williams as food manufacturing 2 in his book Model Building in Mathematical Programming, the number of ingredients in a blend must be limited, and extra conditions are added to govern which oils can be blended. This chapter covers these topics: