diversification_constraint: constructor for diversification_constraint
Description
The diversification constraint specifies a target diversification value.
This function is called by add.constraint when type="diversification" is
specified, see add.constraint. Diversification is computed
as 1 - sum(weights^2).