New optical coating design algorithm with the equivalent layers theory is presented. The algorithm is based on the merit-function-constrained optimization in the accessible domain of equivalent phase thicknesses and equivalent refractive indices. It allows for creation of design coatings with sophisticated narrowband spectral characteristics. (