eq1dk function

Constraints: Sum to 1