Merge pull request #90 from Concurix/master

Rank constraints