Re: [R] question about constraint minimization

2010-11-24 Thread dhacade...@gmail.com
Hi Hans, I really appreciate your help and the detailed reply. Many thanks and have a nice Thanks giving! Best, Hao On Tue, Nov 23, 2010 at 11:46 AM, Hans W Borchers [via R] < ml-node+3055782-1866096000-202...@n4.nabble.com > wrote: > dhacademic gmail.com gmail.com> writes: > > > Hi, > > > >

Re: [R] question about constraint minimization

2010-11-23 Thread Hans W Borchers
dhacademic gmail.com gmail.com> writes: > Hi, > > I have struggled on this "bound optimization with equality constraint" by > using optim function for two days, but still fail to prepare a good input. > Can anyone help to prepare the input for my specific case? Many thanks. > > Best, > Hao Yo

Re: [R] question about constraint minimization

2010-11-23 Thread Ravi Varadhan
-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of dhacade...@gmail.com Sent: Tuesday, November 23, 2010 12:26 AM To: r-help@r-project.org Subject: Re: [R] question about constraint minimization Dear Prof. Ravi Varadhan, Many thanks for the reply. In my case, besides x1=x3, x1=x4 ("x1=

Re: [R] question about constraint minimization

2010-11-22 Thread dhacade...@gmail.com
l.jtp?type=node&node=3054297&i=2>] On > Behalf Of [hidden email]<http://user/SendEmail.jtp?type=node&node=3054297&i=3> > Sent: Monday, November 22, 2010 11:10 AM > To: [hidden email] <http://user/SendEmail.jtp?type=node&node=3054297&i=4> > Subject:

Re: [R] question about constraint minimization

2010-11-22 Thread Ravi Varadhan
al Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of dhacade...@gmail.com Sent: Monday, November 22, 2010 11:10 AM To: r-help@r-project.org Subject: Re: [R] question about constraint minimization Hi, I have struggled on this "bound optimizatio

Re: [R] question about constraint minimization

2010-11-22 Thread dhacade...@gmail.com
Hi, I have struggled on this "bound optimization with equality constraint" by using optim function for two days, but still fail to prepare a good input. Can anyone help to prepare the input for my specific case? Many thanks. Best, Hao On Sat, Nov 20, 2010 at 3:17 AM, Hans W Borchers [via R] <

Re: [R] question about constraint minimization

2010-11-20 Thread dhacade...@gmail.com
Sorry for the unclear description in my last post. It is an error in my last post, that x4 should be in the range of [-1, 0] as it is identical to x1. Actually I think both "constraint" (for the requirement 1 and 2, so there are only 9 variables) and "bounded" (for the requirement 3) opt are neede

Re: [R] question about constraint minimization

2010-11-20 Thread Hans W Borchers
dhacademic gmail.com gmail.com> writes: > > > Hi, > > I am a beginner of R. There is a question about constraint minimization. A > function, y=f(x1,x2,x3x12), needs to be minimized. There are 3 > requirements for the minimization: > > (1) x2+x3+...+x12=1.5 (x1 is excluded); > (2) x1=x3

Re: [R] question about constraint minimization

2010-11-19 Thread Jonathan P Daily
have purpose? Or do we, what's the word... imbue it." - Jubal Early, Firefly r-help-boun...@r-project.org wrote on 11/19/2010 02:51:46 PM: > [image removed] > > [R] question about constraint minimization > > dhacade...@gmail.com > > to: > > r-help >

[R] question about constraint minimization

2010-11-19 Thread dhacade...@gmail.com
Hi, I am a beginner of R. There is a question about constraint minimization. A function, y=f(x1,x2,x3x12), needs to be minimized. There are 3 requirements for the minimization: (1) x2+x3+...+x12=1.5 (x1 is excluded); (2) x1=x3=x4; (3) x1, x3 and x5 are in the range of -1~0, respectively. T