Added cumulative constraints based on tracks matrix