[R] constraints in optim?

Christian Schulz ozric at web.de
Sat Oct 2 09:42:43 CEST 2004


> 
optim(c(1,1),LL,method="SANN",control=list(fnscale=-1),trans=trans,times=times)
$par
[1] 17.422635 -1.606859

How could i constraint that the parameters should be both positive in
my maximizing problem?
I check constrOptim but here i could only constraint the variables trans and 
times and not my parameters?

many thanks, regards
Christian




More information about the R-help mailing list