Joachim thanks very much for your answer. I've tried what you wrote and it works, but when I'm trying to use a predicate to get the cost, I'm getting some strange behavior and I can't understand what's wrong. What I am trying to do is something like that: ..., ( fromto(Board, [Qi|Qs], [Qs], []), foreach(D,Ds) do D #= Qi ), getCost(Ds, Result), Cost #= Result, branch_and_bound:minimize(labeling(Board), Cost). Any ideas? Thanks in advance (again), Dimitris.Received on Mon Jan 28 2008 - 02:14:28 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST