maximisation of the utility function , portfolio optimization
24 views (last 30 days)
Show older comments
Hi,
I am trying to miximize a utility function of an investor , I use CRRA utility
,
,
,
is known such that








So , everthing is known except from the weights ( x_1,...,x_4) , I need to find the optimal weights $x_i$ which maximize expected utility with constraint

I don't know how to solve this optimization problem , does this problem nonlinear optimization problem ?
Thank you
Accepted Answer
Torsten
on 7 Feb 2023
Calculate W1*Rt1, W2*Rt2,...,W4*Rt4. Let Wi*Rti be maximum. Then (assuming gamma < 1) x_i = 1, x_j = 0 for i~=j is optimal.
8 Comments
Torsten
on 8 Feb 2023
Edited: Torsten
on 8 Feb 2023
is there any different function I can apply it to compare the results ?
You could try "ga".
For completeness, you should add the bound constraints
lb = zeros(4,1);
ub = ones(4,1);
as lower and upper bound constraints for the x(i):
W = ...;
R = ...;
gamma = ...;
Aeq = [1 1 1 1];
beq = 1;
lb = zeros(4,1);
ub = ones(4,1);
u = @(x) 1/(1-gamma)*x.^(1-gamma);
obj = @(x)-sum(u(x.'*W*R));
x = fmincon(obj,0.25*ones(1,4),[],[],Aeq,beq,lb,ub)
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!