[gecode-users] problem with gecode 3.0

Alberto Delgado trosky99 at gmail.com
Mon Mar 16 10:24:28 CET 2009


Hi,

I'm getting some weird solutions from a problem I'm solving with
gecode 3.0 that i don't when i use gecode 2.2.

There is a simplified version of the problem where i've isolated the
specific situation in the attached files.
Basically,  what the problem does is to determine whether there is any
repeated occurences of a value assigned to a
position in a stack below such position.  I define an objective
variable that is the sum of positions with repeated
occurrences below them.

When i try to find the best solution  some of the reified variables i
use are set to 0 in situations where they shoudn't,
and the objective variable takes values that don't match the valuation
of the solution.

prueba.cc is  set to be run using gecode 3.0 and prueba2.cc using gecode 2.2.

Thanks ind advance for any help/advice.


Alberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prueba2.cc
Type: text/x-c++src
Size: 2672 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20090316/67ed6b58/attachment.cc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prueba.cc
Type: text/x-c++src
Size: 2703 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20090316/67ed6b58/attachment-0001.cc>


More information about the gecode-users mailing list