Could you post a minimal example? (See also Please read: make it easier to help you). It looks like one might be able to avoid ~n
variables/constraints but it would be easier to figure it out with some code to work with.
2 Likes