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
Lawren
On May 3, 2014, at 5:07 AM, Delger Enkhbayar 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
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
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
4 matches
Mail list logo