Re: [R] optimization problem

From: <Jagat.K.Sheth_at_wellsfargo.com>
Date: Mon, 24 Nov 2008 08:25:27 -0600

On the help page for nlm (type ?nlm) check out the 'See Also' section. It mentions other functions such as 'optim' and 'nlminb' which can do constrained optimizations.

-----Original Message-----
From: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] On Behalf Of Jiang Peng
Sent: Monday, November 24, 2008 5:28 AM
To: r-help_at_r-project.org
Subject: [R] optimization problem

  Dear list,
   hi !
   I am a R beginner and I have a function to optimize .

   alpha = argmin{ f(x,alpha) }

   I want alpha to be in [0,1]. Is there any function that can work?

   I use nlm() but i can't fix the domain of alpha.

   thanks in advance


Jiang Peng, Ph.D. Candidate
Department of Mathematics &
Antai college of Economics and Management Shanghai Jiao Tong University Address: Room 127, #3 Building, Xuhui Campus E-mail: jp021 at sjtu.edu.cn

              jp021 at 126.com
MSN: jp021 at hotmail.com
iChat: mathfrog at mac.com
Mobile: +86-138 168 780 95



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 24 Nov 2008 - 14:27:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 24 Nov 2008 - 14:30:26 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive