<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt">Thanks a lot.<br><br>Though when I try to open the archive with 7-Zip it says that it cannot open it.<br>I'm working on Windows7.<br><br>Any idea of tool I could use?<br><br>Thanks<br><div><span><br></span></div><div>&nbsp;</div><div>-----------------<br>http://www.codessentials.com - Your essential software, for free!<br>Follow us at http://twitter.com/#!/Codessentials<br></div>  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Wolfgang Laun &lt;wolfgang.laun@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Michiel Vermandel &lt;mvermand@yahoo.com&gt;;
 Rules Users List &lt;rules-users@lists.jboss.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, February 22, 2013 10:28 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users] Planner: Is it possible to know which move was selected on step-end?<br> </font> </div> <br>
Reminds me of a very fascinating paper<br>http://www-cs-faculty.stanford.edu/~uno/papers/dancing-color.ps.gz<br><br>(Note that the paper discusses puzzles where pieces may have one out<br>of a limited number of "shapes" resulting from all permitted<br>positions. I guess that's similar to what OP described.)<br><br>-W<br><br><br>On 22/02/2013, Michiel Vermandel &lt;<a ymailto="mailto:mvermand@yahoo.com" href="mailto:mvermand@yahoo.com">mvermand@yahoo.com</a>&gt; wrote:<br>&gt; Well,<br>&gt;<br>&gt; I need to solve - let's say - a complex 2 dimensional puzzle.<br>&gt; The goal is to fill a 2D rectangle (with fixed dimensions) out of "puzzle<br>&gt; pieces" that do not have a fixed shape.<br>&gt; A puzzle piece is built out of a number of bars of variable length and the<br>&gt; bars can slide against each other (to some extend: differs per joint of two<br>&gt; bars).<br>&gt;<br>&gt;<br>&gt; Just shifting and swapping around the "puzzle pieces" is not quite
 well<br>&gt; performingsince that will result in many<br>&gt;<br>&gt; violations although a shift or swap could match perfectly if you slide (some<br>&gt; of) the bars of the piece at the same time.<br>&gt;<br>&gt; Feeding all possible combinations of shifts and swaps combined with all<br>&gt; possible forms of the pieces would result in ... well quite a lot of<br>&gt; combinations.<br>&gt; So I want to build a smarter mover that "knows" how to slide a piece in<br>&gt; order to fit it in an available place (or swap it with an other piece to<br>&gt; improve both pieces match).<br>&gt; I think the mover would perform far better if I have a "bit-map" that<br>&gt; contains the 2D representation of the way everything is placed and which<br>&gt; could calculate the best layout of the piece before putting it into the<br>&gt; puzzle.<br>&gt;<br>&gt; Therefor I would like to know the last change applied so I can incrementally<br>&gt; update the bit-map instead
 of recalculating it entirely every time.<br>&gt;<br>&gt; Hey, hmmm... maybe I don't need to know the last accepted move. Just finding<br>&gt; the diff between best-solution and previous best-solution might do the<br>&gt; trick?!<br>&gt;<br>&gt; For finding the best layout of a single piece, ?could I use a second<br>&gt; instance of planner that does a "normal" bin-packaging of a single piece in<br>&gt; the available container (container is then an available free area or the<br>&gt; combination of one or more other pieces and the free space around that other<br>&gt; piece)?<br>&gt;<br>&gt; Maybe I'm going goofy on this... too many long nights are beginning to cloud<br>&gt; my mind.<br>&gt;<br>&gt; Well, any ideas are welcome.<br>&gt;<br>&gt;<br>&gt; Regards.<br>&gt;<br>&gt;<br>&gt; -----------------<br>&gt; http://www.codessentials.com - Your essential software, for free!<br>&gt; Follow us at http://twitter.com/#!/Codessentials<br>&gt;<br>&gt;<br>&gt;
 ________________________________<br>&gt;&nbsp; From: Geoffrey De Smet &lt;<a ymailto="mailto:ge0ffrey.spam@gmail.com" href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;<br>&gt; To: <a ymailto="mailto:rules-users@lists.jboss.org" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&gt; Sent: Thursday, February 21, 2013 10:37 AM<br>&gt; Subject: Re: [rules-users] Planner: Is it possible to know which move was<br>&gt; selected on step-end?<br>&gt;<br>&gt;<br>&gt; Officially, in the public api (aka the "user facing api"), there's no such<br>&gt; listener.<br>&gt; Why would you need this at runtime?<br>&gt; Open an issue: if there's a good reason to need this, we can talk<br>&gt;&nbsp; &nbsp;  about adding it to the public api.<br>&gt;&nbsp;  <a href="https://issues.jboss.org/browse/PLANNER" target="_blank">https://issues.jboss.org/browse/PLANNER</a><br>&gt;<br>&gt;<br>&gt; That being said and handled first, the
 benchmarker actually hacks a<br>&gt;&nbsp; &nbsp;  step listener if I recall correctly:<br>&gt; <a href="https://github.com/droolsjbpm/drools-planner/tree/master/drools-planner-benchmark/src/main/java/org/drools/planner/benchmark/core/statistic/calculatecount" target="_blank">https://github.com/droolsjbpm/drools-planner/tree/master/drools-planner-benchmark/src/main/java/org/drools/planner/benchmark/core/statistic/calculatecount</a><br>&gt;<br>&gt;<br>&gt; Op 20-02-13 21:56, Michiel Vermandel schreef:<br>&gt;<br>&gt; Hi,<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;Is it possible to capture which move was selected on step-end?<br>&gt;&gt;I don't mean in the logging but by event or custom selector or... ?<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;Thanks<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;Michiel<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;-----------------<br>&gt;&gt;<a href="http://www.codessentials.com/" target="_blank">http://www.codessentials.com</a> - Your
 essential software, for<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  free!<br>&gt;&gt;Follow us at <a href="http://twitter.com/#!/Codessentials" target="_blank">http://twitter.com/#!/Codessentials</a><br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;_______________________________________________<br>&gt; rules-users mailing list <a ymailto="mailto:rules-users@lists.jboss.org" 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>&gt; rules-users mailing list<br>&gt; <a ymailto="mailto:rules-users@lists.jboss.org" 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><br><br>
 </div> </div>  </div></body></html>