Hi,
What you could do is adding a "sum" variable and branch over the variable so that values are tried in increasing order. Then the solutions will be found in that order. Best Christian -- Christian Schulte, Professor of Computer Science, KTH, www.gecode.org/~schulte/ From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of mehdi m Sent: Monday, September 29, 2014 10:09 AM To: users@gecode.org Subject: [gecode-users] Classify the solutions Hello, i'm building a model , and the solutions are vectors like this "3 5 9 4 7", i have an constraint that express the sum of the vectors must to be > than an threshold M. My question is can i add an constraint or any parameter to tell to gecode : the solutions returned must be ordered according to a criterion, for example from the smallest to the largest sum. Thank you for your help
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users