Refine the results by GA to true values

1 次查看(过去 30 天)
I am currently using GA optimization toolbox.
My true values to generate my dataset is, say like [0.4 0.5 0.6],
after i run my simulation, it gives me [0.9, 3.5 0.2],
What to do in order to obtain the result near to my true values?
  2 个评论
Khoo
Khoo 2013-8-23
This is my constrained function file:
function [c,ceq]=nonlincon(z)
c=z(3)*exp(z(2)*(1-z(1)))-1;
ceq=[];
this is my main file
for iter=1:iterate
z=[0.3 0.5 0.4];
options=gaoptimset('TolFun',1.0000e- 008,'Display','iter','UseParallel','always','InitialPopulation',z);
h=@mptest;
contraint=@nonlincon;
est=ga(h,3,[],[],[],[],[0 0 0],[1.0 10.0 1.0],contraint,options);
sumest=sumest+est;
SE=(est-z).^2;
sumSE=sumSE+SE;
fprintf('Iteration= %1.0i\n',iter);
end
I am doing the monte carlo simulation. Is that possible to find the estimated parameters near the initial point?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Portfolio Optimization and Asset Allocation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by