| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | nlminb with constraints |
| From: | "John Pitchard" <johnpitchard@googlemail.com> |
| Date: | Wed, 22 Aug 2007 14:54:47 +0100 |
| Dkim-signature: | a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=phr6wIG3q3jKvbYqL96JmQU5LZHjaPQR4+RlEGlJn7nMLmIbo9gqIPY9MxGtlHSYLlQy3zzD5KRbyIZvIFWxtmcNA9ky87gRgEG5ShkRnKq7ZIUn5GGRh7VxKaqexJ1jtrBeqiLTNDRn9f8VMgntwlhzp3XpfBkIoOXHZRe/LGE= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=G91ahd4EEW9XIzwSRvSF4w8ZnBlhBNlAjF6damVih0tV9PLX1Dlmu+x5yu3yEyXp19Yc39hMI58ZuE5JaNEGR2dW5Inj3FE4YhgTRaHP8kwvX/Ui6lJqd5Jp9QfXYVZQWUkdn1bdFhHJZLjyBZ1YNiCUM7JQWwA+M14xy9hUUp4= |
|
Dear all,
I have a function that I want to minimise, it is in the form of a vector. However, there is a restriction on the actual vector itself, e.g. if the vector,x, has n components then
x[n] <- 1 -(x[1] + ...+x[n-1]).
Does anyone know how to put this constraint into the nlminb function?
Many thanks in advance for your help.
Regards,
John
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Editing trees, adrian ming |
|---|---|
| Next by Date: | Re: nlminb with constraints, Douglas Bates |
| Previous by Thread: | Editing trees, adrian ming |
| Next by Thread: | Re: nlminb with constraints, Douglas Bates |
| Indexes: | [Date] [Thread] [Top] [All Lists] |