<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt">Hi Armand,<br><br>Thanks for the advice.<br>Well I managed to open the gz file with another decompression tool. No idea why 7-zip did not manage.<br>I'll try to convert it with that ps2pdf tool.<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> "Welsh, Armand" &lt;AWelsh@StateStreet.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 8:01 PM<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>
<div id="yiv496382364">

 
 
<style><!--
#yiv496382364  
 _filtered #yiv496382364 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv496382364 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv496382364  
#yiv496382364 p.yiv496382364MsoNormal, #yiv496382364 li.yiv496382364MsoNormal, #yiv496382364 div.yiv496382364MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New Roman", "serif";}
#yiv496382364 a:link, #yiv496382364 span.yiv496382364MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv496382364 a:visited, #yiv496382364 span.yiv496382364MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv496382364 p.yiv496382364MsoAcetate, #yiv496382364 li.yiv496382364MsoAcetate, #yiv496382364 div.yiv496382364MsoAcetate
        {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"Tahoma", "sans-serif";}
#yiv496382364 span.yiv496382364BalloonTextChar
        {font-family:"Tahoma", "sans-serif";}
#yiv496382364 span.yiv496382364EmailStyle19
        {font-family:"Calibri", "sans-serif";color:#1F497D;}
#yiv496382364 .yiv496382364MsoChpDefault
        {font-size:10.0pt;}
 _filtered #yiv496382364 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv496382364 div.yiv496382364WordSection1
        {}
--></style>

<div>
<div class="yiv496382364WordSection1">
<div class="yiv496382364MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">.ps.gz is a postscript file compressed using GZip.&nbsp; On windows you will need to find a postscript viewer, or you can use the ps2pdf online tool to convert it
 to a pdf document. &nbsp;&nbsp;And to uncompress the gz file you can either search for gzip (gunzip) or use Cygwin so you can have the full Gnu suite available.&nbsp; There is a gzip for windows, but I am a little confused, because I thought 7-Zip is able to expand the GZip
 files.</span></div> 
<div class="yiv496382364MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> &nbsp;</span></div> 
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv496382364MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span style="font-size:10.0pt;"> rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org]
<b>On Behalf Of </b>Michiel Vermandel<br>
<b>Sent:</b> Friday, February 22, 2013 2:34 AM<br>
<b>To:</b> Wolfgang Laun; Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Planner: Is it possible to know which move was selected on step-end?</span></div> 
</div>
</div>
<div class="yiv496382364MsoNormal"> &nbsp;</div> 
<div>
<div class="yiv496382364MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">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</span></div> 
<div>
<div class="yiv496382364MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;"> &nbsp;</span></div> 
</div>
<div>
<div class="yiv496382364MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">&nbsp;</span></div> 
</div>
<div>
<div class="yiv496382364MsoNormal" style="background:white;"><span style="font-size:10.0pt;color:black;">-----------------<br>
http://www.codessentials.com - Your essential software, for free!<br>
Follow us at http://twitter.com/#!/Codessentials</span></div> 
</div>
<div>
<div>
<div>
<div class="yiv496382364MsoNormal" style="text-align:center;background:white;" align="center">
<span style="font-size:10.0pt;color:black;">
<hr align="center" size="1" width="100%">
</span></div>
<div class="yiv496382364MsoNormal" style="background:white;"><b><span style="font-size:10.0pt;color:black;">From:</span></b><span style="font-size:10.0pt;color:black;"> Wolfgang Laun &lt;<a rel="nofollow" ymailto="mailto:wolfgang.laun@gmail.com" target="_blank" href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;<br>
<b>To:</b> Michiel Vermandel &lt;<a rel="nofollow" ymailto="mailto:mvermand@yahoo.com" target="_blank" href="mailto:mvermand@yahoo.com">mvermand@yahoo.com</a>&gt;; Rules Users List &lt;<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;
<br>
<b>Sent:</b> Friday, February 22, 2013 10:28 AM<br>
<b>Subject:</b> Re: [rules-users] Planner: Is it possible to know which move was selected on step-end?</span><span style="color:black;"></span></div> 
</div>
<div class="yiv496382364MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="color:black;"><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 rel="nofollow" ymailto="mailto:mvermand@yahoo.com" target="_blank" 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; <a rel="nofollow" target="_blank" href="http://www.codessentials.com/">http://www.codessentials.com</a> - Your essential software, for free!<br>
&gt; Follow us at <a rel="nofollow" target="_blank" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a><br>
&gt;<br>
&gt;<br>
&gt; ________________________________<br>
&gt;&nbsp; From: Geoffrey De Smet &lt;<a rel="nofollow" ymailto="mailto:ge0ffrey.spam@gmail.com" target="_blank" href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;<br>
&gt; To: <a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" 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 rel="nofollow" target="_blank" href="https://issues.jboss.org/browse/PLANNER">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 rel="nofollow" target="_blank" href="https://github.com/droolsjbpm/drools-planner/tree/master/drools-planner-benchmark/src/main/java/org/drools/planner/benchmark/core/statistic/calculatecount">
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 rel="nofollow" target="_blank" href="http://www.codessentials.com/">http://www.codessentials.com</a> - Your essential software, for<br>
&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; free!<br>
&gt;&gt;Follow us at <a rel="nofollow" target="_blank" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;_______________________________________________<br>
&gt; rules-users mailing list <a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</span></div> 
</div>
</div>
</div>
</div>
</div>

</div><br><br> </div> </div>  </div></body></html>