Borrar filtros
Borrar filtros

Different results from different MATLAB versions (R2017a and R2018a)

2 visualizaciones (últimos 30 días)
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 comentarios
Walter Roberson
Walter Roberson el 2 de Sept. de 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 el 3 de Sept. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by