<div dir="ltr">Brian,<div><br></div><div>Thanks for pointing this out. It is when the portfolio moments are first calculated in optimize.portfolio. I added checks that the arguments passed in as dots match the formal arguments of momentFUN. This should be fixed in r2947.</div>
<div><br></div><div>Thanks again, have a great weekend!</div><div><br></div><div style>Ross</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 2:38 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 08/30/2013 01:35 PM, Ross Bennett wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Fri, Aug 30, 2013 at 11:11 AM, Brian G. Peterson <<a href="mailto:brian@braverock.com" target="_blank">brian@braverock.com</a><br></div><div class="im">
<mailto:<a href="mailto:brian@braverock.com" target="_blank">brian@braverock.com</a>>> wrote:<br>
<br>
    On 08/29/2013 12:00 PM, Ross Bennett wrote:<br>
<br>
<br>
    It's a little unclear why dots would be passed that deeply anyway.<br>
<br>
    Typically, in PortfolioAnalytics, we're matching arguments and<br>
    stripping dots before calling the underlying objective functions.<br>
<br>
    This particular edge case is easily fixed by adding dots to the<br>
    boudt method of Retur.clean, but I'm sure there's a more general<br>
    solution.<br>
<br>
    I think we should pick it up in the argument matching, and not<br>
    expect the called functions to be ready to catch any arbitrary<br>
    arguments.<br>
<br>
<br>
I printed out the .formals list right before the do.call(fun, .formals)<br>
and $itermax is not an element in .formals, the arguments are being<br>
matched and stripped correctly in constrained_objective before calling<br>
the objective function.<br>
</div></blockquote>
<br>
What about when we calculate portfolio moments?  Isn't that a lot earlier in the process than constrained_objective?<div class="HOEnZb"><div class="h5"><br>
<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>