On Tue, 22 Mar 2016, Edgaonkar, Shrirang wrote: > findall(X,(twice top([A,B])),List) so that List contains both the solutions. Your constraint problem has far more than two solutions, so saying you want "both" of them is confusing. I guess you're using the backtrack() limitation to try to force it to return the solutions in different sequences, and you want the first solution from each sequence, but it would be better to write the constraints to really produce the set of solutions you actually want. Changing the search algorithm is a very hard-to-control substitute for that. What is it you're really trying to accomplish here? -- Matthew Skala mskala_at_...206... People before principles. http://ansuz.sooke.bc.ca/Received on Tue Mar 22 2016 - 06:24:42 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST