Multi-target data optimization

조회 수: 2 (최근 30일)
Alejandro Fernández
Alejandro Fernández 2020년 2월 2일
Hi, there. I was wondering if someone could help me with something.
I have 3 data matrices, of which I show you the contour plots (these I show would be just an example, these are from functions but the real ones are not from any kind of functions).
What I need is to be able to define a region of minimum optimums by weighting the matrices, that is, that not all of them have the same importance. The thing is that I only find things related to functions and they are not useful to me...
Thank you very much for everything.
Z1.jpg
Z2.jpg
Z3.jpg
  댓글 수: 4
Mohammad Sami
Mohammad Sami 2020년 2월 2일
What if you just add the 3 weighted matrix and then use the minimum function
Z1 = load('Z1.mat');
Z2 = load('Z2.mat');
Z3 = load('Z3.mat');
w1 = 1;
w2 = 1;
w3 = 1;
Z = w1 * Z1.Z + w2 * Z2.Z + w3 * Z3.Z;
[,idx] = min(Z);
Alejandro Fernández
Alejandro Fernández 2020년 2월 2일
Ok, I'll try, thank you so much.

댓글을 달려면 로그인하십시오.

채택된 답변

Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020년 2월 2일
Could you explain a little more the problem you're having? In the end it really doesn't matter if your matrix are functions or not since you can define the matrix weighting as a function, as an example:
f = @(Z1,Z2,Z3)Z1*2+Z2*1+Z3*3;
But actually what you seems to want is the minimum of the matrix weighted sum, and if you already have the values, it is really as simple as sum them and calculate the min:
w1 = 1;
w2 = 2;
w3 = 3;
Zweighted = Z1*w1+Z2*w2+Z3*w3;
[MinVal,MinPos] = min(Zweighted)
  댓글 수: 6
Alejandro Fernández
Alejandro Fernández 2020년 2월 2일
It's okey like that, dont worry.
Thiago Henrique Gomes Lobato
Thiago Henrique Gomes Lobato 2020년 2월 2일
No problem :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multiobjective Optimization에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by