[bp-users]Urgent rectangle placement problem
Raul Moreno Izquierdo
raul@gecd.escet.urjc.es
Wed, 12 Jun 2002 18:16:58 +0200
Someone can help me with a rectangle placement problem ?
I have to place diferent size rectangles into a rectangle.
I'm using the example that appears at www.probp.com "packing
boxes into a rectangle, because I'm new in logic programming.
I've modified the example in the next way: All the X, Y variables now
are singleton (I do this because I want the compiler do this job for me).
It begins to place the rectangles, and all is right until it reaches the
edge of
the global rectangle. It stops or enter into a infinite computation, but
doesn't
give message of error. It place the rectangles in below order, i've
tried to
order it with cgLeft in other order, but I've reached the same result
when the
program reached de left edge of the global rectangle.
How or What I have to modified to let the program continue placing the
rectangles?
A greeting, of a lost programmer.