Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Ravi Varadhan
I would recommend that you use auglag() rather than constrOptim.nl() in the package "alabama." It is a better algorithm, and it does not require feasible starting values. Best, Ravi -Original Message- From: Rainer M Krug [mailto:rai...@krugs.de] Sent: Thursday, October 01, 2015 3:37

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
Envoyé de mon iPhone > Le 1 oct. 2015 à 15:17, Ravi Varadhan a écrit : > > I would recommend that you use auglag() rather than constrOptim.nl() in the > package "alabama." It is a better algorithm, and it does not require > feasible starting values. Thanks - that was one question I wanted

Re: [R] optimizing with non-linear constraints

2015-10-01 Thread Rainer M Krug
Ravi Varadhan writes: > Hi Rainer, > It is very simple to specify the constraints (linear or nonlinear) in > "alabama" . They are specified in a function called `hin', where the > constraints are written such that they are positive. OK - I somehow missed the part that, when the values x are val

Re: [R] optimizing with non-linear constraints

2015-09-30 Thread Ravi Varadhan
Hi Rainer, It is very simple to specify the constraints (linear or nonlinear) in "alabama" . They are specified in a function called `hin', where the constraints are written such that they are positive. Your two nonlinear constraints would be written as follows: hin <- function(x, LAI) { h <-

[R] optimizing with non-linear constraints

2015-09-30 Thread Rainer M Krug
Hi I have posted the following question on stackoverflow [1] but haven't received a response yet. Has somebody here any idea, how to formulate non-linear constraints using e.g. the packages alabama or nlopr? The question is pasted below. I am really stuck with this. Thanks, Rainer , | I am