Skip to content
Prev 168484 / 398502 Next

constrainOptim

For simple box constraints, i.e. lower and upper limits directly on the parameters themselves, you don't need ConstrOptim.  You can get the job done with the "L-BFGS-B" algorithm in optim() or using nlminb() or using the spg() function in the BB package.  In this case the feasible region is a hyper-rectangle (could be infinite in some dimensions).

ConstrOptim() is useful when you have more general linear inequality constraints, i.e. constraints on linear combinations of parameters. In this case the feasible region is a convex polytope.  

Best,
Ravi.

____________________________________________________________________

Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology
School of Medicine
Johns Hopkins University

Ph. (410) 502-2619
email: rvaradhan at jhmi.edu


----- Original Message -----
From: June Wong <neptune545 at hotmail.com>
Date: Wednesday, January 28, 2009 11:57 am
Subject: [R] constrainOptim
To: r-help at r-project.org