there is a set "1,2,3,4,5". i wanna write constraints for subsets of this set. for example
This topic has been locked.
4 replies Latest Post - 2013-01-03T09:30:18Z by SystemAdmin
Pinned topic Writing constraints for subsets of a set.
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-03T09:30:18Z at 2013-01-03T09:30:18Z by SystemAdmin
Re: Writing constraints for subsets of a set.2013-01-01T23:26:48Z in response to SystemAdminIn what language are you programming? If it's OPL, you'll have better luck asking on the OPL forum. If it's a general purpose language for which CPLEX has an API (C, C++, Java, Python), there are a few ways to do it, revolving around your favorite way to compute the powerset of a set of integers. If it's MATLAB, there may be a clever way, but you'll need a MATLAB user to tell you (which lets me out).
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)