Skip to content
Prev 13565 / 398502 Next

Supply linear constrain to optimizer

I agree with the suggestion to reparameterize the data, but the problem
here is not readjusting the range (the box constraints in optim/L-BFGS-B
work just fine).
  A transformation I have used for compositional data:

  c(1) <-> p(1)
  c(2) <-> p(2)/(1-p(1))
  ...
  c(n) <-> p(n)/(1-sum p(1)..p(n-1))
On Fri, 14 Sep 2001, Philippe Grosjean wrote: