Portfolio optimization using modified herfindahl constraint