I have 5 arrays (A,B,C,D,E) of size(20x1). 20 Rows represents 20 models. I want to rank best model based on minimise (A,B), maximise (C,D,E). Any hint will be helpful.
1 次查看(过去 30 天)
显示 更早的评论
A,B,C,D,E
4 个评论
Torsten
2023-5-4
Say you have the rows [A B C D E] as
[1 -5 1 1 9]
[-7 3 1 3 7]
Which is better and why ?
采纳的回答
Mathieu NOE
2023-5-4
maybe this ?
AB= rand(20,2);
CDE=rand(20,3);
ABinv = 1./AB; % minimum(A,B) replaced by maximum of it's inverse
ABinvCDE_max = max([ABinv CDE],[],2); % find max (rank) along direction 2
[val_sorted,rk] = sort(ABinvCDE_max);% rank = rk
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!