Filter löschen
Filter löschen

Different results from different MATLAB versions (R2017a and R2018a)

2 Ansichten (letzte 30 Tage)
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 Kommentare
Walter Roberson
Walter Roberson am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by