be zero.
>
> JN
>
>
>>
>> Date: Wed, 11 May 2011 17:28:54 -0300
>> From: Leonardo Monasterio
>> To: r-help@r-project.org
>> Subject: [R] Problem with constrained optimization with maxBFGS
>> Message-ID:
>> Content-Type: text/plain
>>
0300
> From: Leonardo Monasterio
> To: r-help@r-project.org
> Subject: [R] Problem with constrained optimization with maxBFGS
> Message-ID:
> Content-Type: text/plain
>
> Dear all,
>
> I need to maximize the v:
>
> v= D' W D
>
>
> D is a column vecto
Dear all,
I need to maximize the v:
v= D' W D
D is a column vector ( n , 1)
W is a given matrix (n, n)
subject to:
sum D= 1
(BTW, n is less than 300)
I´ve tried to use maxBFGS, as follows:
#
objectiveFunction<-function(x)
{
return(t(D)%*%W%*%D)
}
Amat
3 matches
Mail list logo