Optical model with polynomial potential