<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> 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?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;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<o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">&nbsp;<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">-----------------<br>
<a href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for free!<br>
Follow us at <a href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a><o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div class="MsoNormal" align="center" style="text-align:center;background:white">
<span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black"> Wolfgang Laun &lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;<br>
<b>To:</b> Michiel Vermandel &lt;<a href="mailto:mvermand@yahoo.com">mvermand@yahoo.com</a>&gt;; Rules Users List &lt;<a 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"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="color:black"><br>
Reminds me of a very fascinating paper<br>
<a href="http://www-cs-faculty.stanford.edu/~uno/papers/dancing-color.ps.gz">http://www-cs-faculty.stanford.edu/~uno/papers/dancing-color.ps.gz</a><br>
<br>
(Note that the paper discusses puzzles where pieces may have one out<br>
of a limited number of &quot;shapes&quot; 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 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 &quot;puzzle<br>
&gt; pieces&quot; 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 &quot;puzzle pieces&quot; 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 &quot;knows&quot; 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 &quot;bit-map&quot; 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 &quot;normal&quot; 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 href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for free!<br>
&gt; Follow us at <a 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 href="mailto:ge0ffrey.spam@gmail.com">ge0ffrey.spam@gmail.com</a>&gt;<br>
&gt; To: <a 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 &quot;user facing api&quot;), 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 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 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>
<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>