[R] optimization problem

Ravi Varadhan RVaradhan at jhmi.edu
Mon Nov 24 15:31:38 CET 2008


Is this the actual problem that you are trying to optimize, i.e. optimize a
function with respect to a scalar unknown parameter?

If so, just use "optimize" and specify the search interval for the algorithm
as [0,1].  

Ravi.   


----------------------------------------------------------------------------
-------

Ravi Varadhan, Ph.D.

Assistant Professor, The Center on Aging and Health

Division of Geriatric Medicine and Gerontology 

Johns Hopkins University

Ph: (410) 502-2619

Fax: (410) 614-9625

Email: rvaradhan at jhmi.edu

Webpage:  http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html

 

----------------------------------------------------------------------------
--------


-----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 6: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.



More information about the R-help mailing list