That&#39;s indeed more like a problem for using rules (and far from the plain &quot;cutting sheet&quot; I had in mind), From the examples, itc2007 and lessonsschedule might give you an idea how to approach your problem.<br>
-W<br><br><br><div class="gmail_quote">On Fri, May 8, 2009 at 1:05 PM, Olaf Raether <span dir="ltr">&lt;<a href="mailto:o.raether@epro.de">o.raether@epro.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I think itīs more a knapsack problem. And the rectangles have to follow some<br>
business rules,<br>
so thatīs the reason try to using solver. Hereīs an image of the problem.<br>
<br>
<a href="http://www.nabble.com/file/p23443994/2dknapsack.jpg" target="_blank">http://www.nabble.com/file/p23443994/2dknapsack.jpg</a> 2dknapsack.jpg<br>
<br>
The big rectangle is the load area of a truck und the small ones are racks.<br>
And i have to<br>
put them on the truck. And the Business rules come into the play, cause the<br>
racks can only<br>
mounted in a special manner on the track.<br>
<br>
Any hint is welcome<br>
<div><div></div><div class="h5"><br>
<br>
<br>
Wolfgang Laun-2 wrote:<br>
&gt;<br>
&gt; I&#39;ve researched this, a long time ago (trying to find a solution for a<br>
&gt; problem from the &quot;worse&quot; class). Even then, several results could be found<br>
&gt; in the literature for the &quot;cutting sheet&quot; problem for rectangles, showing<br>
&gt; that certain parameters (w.r.t. to rectangle dimensions being multiples of<br>
&gt; each other, replication factors, etc.) influence the problem space<br>
&gt; considerably. (Cutting random rectangles from a sheet is hardly an<br>
&gt; industry<br>
&gt; problem.)<br>
&gt;<br>
&gt; Having said that, drools-solver should be able to handle this problem.<br>
&gt;<br>
&gt; However, it is very likely that there is an algorithm that solves your<br>
&gt; particular problem more efficiently.<br>
&gt;<br>
&gt; -W<br>
&gt;<br>
&gt;<br>
&gt; On Fri, May 8, 2009 at 9:59 AM, Olaf Raether &lt;<a href="mailto:o.raether@epro.de">o.raether@epro.de</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Rectangles within a Rectangle<br>
&gt;&gt;<br>
&gt;&gt; OR<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Wolfgang Laun-2 wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Rectangles or simple polygons or worse?<br>
&gt;&gt; &gt; -W<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, May 8, 2009 at 9:02 AM, Olaf Raether &lt;<a href="mailto:o.raether@epro.de">o.raether@epro.de</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; Hey , i would like to use drools solver for a 2d knapsack problem.<br>
&gt;&gt; &gt;&gt; Has anyone expirience with that ?<br>
&gt;&gt; &gt;&gt; Is drools solver made for such a task ?<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thank for hints<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Olaf Raether<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; rules-users mailing list<br>
&gt;&gt; &gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; rules-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://www.nabble.com/drools-solver-for-2d-knapsack-problem-tp23441149p23441743.html" target="_blank">http://www.nabble.com/drools-solver-for-2d-knapsack-problem-tp23441149p23441743.html</a><br>
&gt;&gt; Sent from the drools - user mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; rules-users mailing list<br>
&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
<br>
--<br>
</div></div>View this message in context: <a href="http://www.nabble.com/drools-solver-for-2d-knapsack-problem-tp23441149p23443994.html" target="_blank">http://www.nabble.com/drools-solver-for-2d-knapsack-problem-tp23441149p23443994.html</a><br>

<div><div></div><div class="h5">Sent from the drools - user mailing list archive at Nabble.com.<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>