[R] auglag store parameters

MacQueen, Don macqueen1 at llnl.gov
Mon May 5 17:07:43 CEST 2014


Just guessing, but something like


pars <- numeric(nloops)
 
for (i in 1:nloops) {
  ## use auglag
  pars[i] <-  {the $par part of the answer}
}


might be what you're looking for.

All of which has nothing to do with auglag in particular, just simple R
programming.

-Don

-- 
Don MacQueen

Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062





On 5/3/14 5:02 AM, "Delger Enkhbayar" <d.enkhbayar at lse.ac.uk> wrote:

>Hi,
>
>I am minimizing a non-linear function subject to linear and nonlinear
>equalities and inequalities. I managed to understand how to use auglag for
>this case. Now, I'm using loops to get solutions for different
>assumptions,
>however, I'm facing a difficulty in storing just $par part of the answer
>to
>a vector form. Could someone point me to how to do this in auglag?
>
>Thank you for all your great work!
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list