[R-SIG-Finance] "Optimx" help

R. Michael Weylandt michael.weylandt at gmail.com
Wed Oct 10 14:31:05 CEST 2012


Please don't cross-post to both R-SIG-Finance and the general R-help
list, where you've already received a response.

Michael

On Wed, Oct 10, 2012 at 8:54 AM, nserdar <snes1982 at hotmail.com> wrote:
> Error Message:
>
> fn is  Linn
> Function has  10  arguments
> par[ 1 ]:  0   <? 0   <? 1     In Bounds
> par[ 2 ]:  0   <? 0   <? 1     In Bounds   In Bounds
> par[ 3 ]:  0   <? 0   <? 1     In Bounds   In Bounds   In Bounds
> par[ 4 ]:  -Inf   <? 1.001   <? Inf     In Bounds   In Bounds   In Bounds
> In Bounds
> par[ 5 ]:  -Inf   <? 1.001   <? Inf     In Bounds   In Bounds   In Bounds
> In Bounds   In Bounds
> par[ 6 ]:  -Inf   <? 1.001   <? Inf     In Bounds   In Bounds   In Bounds
> In Bounds   In Bounds   In Bounds
> par[ 7 ]:  -Inf   <? 1.001   <? Inf     In Bounds   In Bounds   In Bounds
> In Bounds   In Bounds   In Bounds   In Bounds
> par[ 8 ]:  -Inf   <? 1   <? Inf     In Bounds   In Bounds   In Bounds   In
> Bounds   In Bounds   In Bounds   In Bounds   In Bounds
> par[ 9 ]:  -Inf   <? 1   <? Inf     In Bounds   In Bounds   In Bounds   In
> Bounds   In Bounds   In Bounds   In Bounds   In Bounds   In Bounds
> par[ 10 ]:  -Inf   <? 1   <? Inf     In Bounds   In Bounds   In Bounds   In
> Bounds   In Bounds   In Bounds   In Bounds   In Bounds   In Bounds   In
> Bounds
> Error in optimx(init.par, Linn, gr = NULL, method = "L-BFGS-B", hessian =
> TRUE,  :
>   Cannot evaluate function at initial parameters
>
> My function:
>  optimx(init.par,Linn,gr=NULL,method= "L-BFGS-B", hessian=TRUE, control =
> list(trace=1,factr=1e3),lower=c(0,0,0,-Inf,-Inf,-Inf,-Inf,-Inf,-Inf,-Inf),upper=c(1,1,1,Inf,Inf,Inf,Inf,Inf,Inf,Inf))
>
> How to solve this problem ?
>
> Regards,
> Serdar
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Optimx-help-tp4645666.html
> Sent from the Rmetrics mailing list archive at Nabble.com.
>
> _______________________________________________
> R-SIG-Finance at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions should go.



More information about the R-SIG-Finance mailing list