diversification_constraint function

constructor for diversification_constraint