[bp-users]Urgent rectangle placement problem

Neng-Fa Zhou zhou@sci.brooklyn.cuny.edu
Fri, 14 Jun 2002 01:22:21 -0700


Hi,

Here is the program you may start with:

http://www.probp.com/examples/cg/boxLayout.html

The program implements the forward checking
algorithm and uses non-atomic finite domain
variables. It places first the largest boxes. You
can try different problems by redefining the "box"
and "area" relations.

Enjoy,

Neng-Fa Zhou

> 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.
>
>
> _______________________________________________
> bp-users mailing list
> bp-users@lists.probp.com
> http://lists.probp.com/mailman/listinfo/bp-users
>
>