s-news
[Top] [All Lists]

nlminb with more constraints

To: s-news@lists.biostat.wustl.edu
Subject: nlminb with more constraints
From: "John Pitchard" <johnpitchard@googlemail.com>
Date: Mon, 3 Sep 2007 19:07:03 +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=L/FKanCwEt3dH4eLZvviJMjHGJN9VhUwoqcsoxMFfHzyRHscq+gVUEvbFiYBywTXuKyRW7G4fHyK9xTsXLtY82F4zpN7ZxYb/ZW6+tg9G4uTLKogk35DQoHnUOyGxh4OVWtded/p5zw/uFge2gMeKUB13YCheJN0VKb8TRn4hlY=
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=mEt7XIhMmiLFBtfp9MtKL444Qfz9h0b+baK9ZSCvGRc8FHZfUMG25tgwA69mtewtNUBF4N4ZllQc9Yc128A3xSIDDoXT/MX2KzMJjufDLKrqYnbhi+cA9kkrYSimBzd00eat8wjnDC/hA+ffMG33qZe9qic1fUMqUF9PUk8+26g=
 
Dear all,
 
Thanks to those that replied to my last mail about nlminb. I have another question related to nlminb. I'm trying to calculate the optimal asset mix of a portfolio - the asset mix proportions are values between 0 and 1 and the sum of the asset mix proportions sum to 1, e.g. if x(1),..., x(n) are asset mix proportions then each 0<=x(i)<=1 and x(1)+...+x(n)=1.
 
I'm trying to minimise the 95th percentile of a calculated distribution (call this PERCENT(95), thus my objective function is to min PERCENT(95)). However, I want the mean of the distribution to be greater than a specific value, e.g. MEAN>=c, where c is some constant.
 
I would like to know how to achieve this using S-Plus? Should I be minimising the following:
 
objective = PERCENT(95) - lambda(MEAN - c)
 
using a Lagrange multiplier.
 
Any help would be much appreciated.
 
Regards,
John
<Prev in Thread] Current Thread [Next in Thread>
  • nlminb with more constraints, John Pitchard <=