Effacer les filtres
Effacer les filtres

Different results from different MATLAB versions (R2017a and R2018a)

2 vues (au cours des 30 derniers jours)
Hasan Eren Bekiloglu
Hasan Eren Bekiloglu le 2 Sep 2018
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 commentaires
Walter Roberson
Walter Roberson le 2 Sep 2018
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
Hasan Eren Bekiloglu le 3 Sep 2018
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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by