필터 지우기
필터 지우기

Different results from different MATLAB versions (R2017a and R2018a)

조회 수: 2 (최근 30일)
Hasan Eren Bekiloglu
Hasan Eren Bekiloglu 2018년 9월 2일
댓글: Hasan Eren Bekiloglu 2018년 9월 3일
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
Hasan Eren Bekiloglu 2018년 9월 3일
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에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by