<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>></span>Why would you need to know that?</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">Well, if I understand everything correctly, a "Best-solution clone" is needed just to remember/represent that state of the solution.</div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: arial,helvetica,sans-serif; background-color: transparent; font-style: normal;">It does not have to do anything anymore, therefor some data should not be copied and/or initialized upon cloning.</div><br>It might be "not optimal" design that drives me to initializing stuff upon
cloning, but anyway I think there might be more scenarios where it is useful to know if the solution object is the working solution or a best solution.<br>Right?<br><br>Regards,<br><br>Michiel<br><div> </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: arial, helvetica, 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> Geoffrey De Smet <ge0ffrey.spam@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Rules Users List <rules-users@lists.jboss.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, February 28, 2013 8:28 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [rules-users]
planner: when gets a solution cloned?<br> </font> </div> <br>
<div id="yiv1397612019">
<div>
<br>
<div class="yiv1397612019moz-cite-prefix">Op 27-02-13 19:50, Michiel Vermandel
schreef:<br>
</div>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;">Hi,<br>
<br>
I think a planning solution gets cloned in two different
scenarios:<br>
1) a better solution is found<br>
2) the solver propagates from one solving phase to another.<br>
<br>
Is this right?<br>
</div>
</blockquote>
Currently this is right IIRC. But mix in multi-threading for 6.1 or
6.2 and there will be more cases of cloning.<br>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;"><br>
If so, how do I know (inside the cloneSolution() method) if the
clone is intended for a best-solution or a new working-solution?<br>
</div>
</blockquote>
Why would you need to know that? Would it alter your cloning
behavior somehow?<br>
<br>
It's probably hackable through BestSolutionRecaller, but it will
give you a hard time when upgrading to 6.0 if you do hack it there.<br>
<blockquote type="cite">
<div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;"><br>
Thanks<br>
<br>
Michiel<br>
<div><span><br>
</span></div>
<div> </div>
<div>-----------------<br>
http://www.codessentials.com - Your essential software, for
free!<br>
Follow us at http://twitter.com/#!/Codessentials</div>
</div>
<br>
<fieldset class="yiv1397612019mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a rel="nofollow" class="yiv1397612019moz-txt-link-abbreviated" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a rel="nofollow" class="yiv1397612019moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</div>
</div><br>_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" 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><br> </div> </div> </div></body></html>