Thanks for the pointer. I've made the changes in commit r2466 to first check if min or max has been violated and only then apply a penalty to change out.<div><br></div><div>Thanks again!</div><div>Ross<br><br><div class="gmail_quote">
On Fri, Jun 28, 2013 at 1:35 PM, Brian G. Peterson <span dir="ltr"><<a href="mailto:brian@braverock.com" target="_blank">brian@braverock.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 06/28/2013 01:32 PM, Ross Bennett wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the feedback. Yes, it does always penalize. The past few days<br>
I have been trying to use the turnover objective as a maximum allowable<br>
turnover and only penalize if turnover > objective$max, but I was<br>
getting results I was not expecting... it seemed to penalize even if the<br>
target value was greater than the calculated value. I'll test this a few<br>
different ways to try to get it working<br>
<br>
</blockquote>
<br></div>
If you're below a threshold, you should do nothing to change the objective at all.  You're below the threshold, so it shouldn't change 'out'.<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Brian G. Peterson<br>
<a href="http://braverock.com/brian/" target="_blank">http://braverock.com/brian/</a><br>
Ph: <a href="tel:773-459-4973" value="+17734594973" target="_blank">773-459-4973</a><br>
IM: bgpbraverock<br>
______________________________<u></u>_________________<br>
GSoC-PortA mailing list<br>
<a href="mailto:GSoC-PortA@lists.r-forge.r-project.org" target="_blank">GSoC-PortA@lists.r-forge.r-<u></u>project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/gsoc-porta" target="_blank">http://lists.r-forge.r-<u></u>project.org/cgi-bin/mailman/<u></u>listinfo/gsoc-porta</a><br>
</div></div></blockquote></div><br></div>