Re: [R] constrOptim parameters

2009-09-11 Thread Ravi Varadhan
/People/Faculty_personal_pages/Varadhan.h tml -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of ivo welch Sent: Friday, September 11, 2009 4:21 PM To: r-help Subject: [R] constrOptim pa

[R] constrOptim parameters

2009-09-11 Thread ivo welch
Dear R wizards: I am playing (and struggling) with the example in the constrOptim function. simple example. let's say I want to constrain my variables to be within -1 and 1.I believe I want a whole lot of constraints where ci is -1 and ui is either -1 or 1. That is, I have 2*N constraints.