Different results from different MATLAB versions (R2017a and R2018a)

5 次查看(过去 30 天)
Hello,
I am using 'gamultiobj' for multiobjective optimization problem. I am awared of that two different MATLAB versions (R2107a and R2018a) give different results for the exactly same code. I checked the options of the function such as cross-over fraction, mutation function etc., and both of them have same options. What is the reason of this situation? Thank you for your attention.
  4 个评论
Walter Roberson
Walter Roberson 2018-9-2
I find some papers that talk about development of Organic Rankine Cycle (ORC) simulation in MATLAB or Simulink, but I can't seem to find code at this time.
Hasan Eren Bekiloglu
However, my problem is not related to 'ORC' function. For example,
fitnessfcn=@(x)[x(1)^2/4+x(2)^2/4,(x(1)*(1-x(2))+10)];
nvars = 2;lb = [0 0]; ub = [1 8];
rng default % for reproducibility
options = optimoptions(@gamultiobj,'Display','iter','TolFun',10^-4,'ParetoFraction',0.35);
[x,fval,exitflag,output]= gamultiobj(fitnessfcn,nvars,[],[],[],[],lb,ub,options);
figure plot(fval(:,1),fval(:,2),'r*') xlabel('Obj_1') ylabel('Obj_2') title('Pareto Front') legend('Pareto front')
The code I published above also gives different results, and you can see the difference in the figure.
Very basic function even gives different results with rng default. I wonder the reason.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Multiobjective Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by