-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDominates.m
44 lines (38 loc) · 860 Bytes
/
Dominates.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%
% Copyright (c) 2015, Yarpiz (www.yarpiz.com)
% All rights reserved. Please read the "license.txt" for license terms.
%
% Project Code: YPEA121
% Project Title: Multi-Objective Particle Swarm Optimization (MOPSO)
% Publisher: Yarpiz (www.yarpiz.com)
%
% Developer: S. Mostapha Kalami Heris (Member of Yarpiz Team)
%
% Contact Info: [email protected], [email protected]
%
function b=Dominates(x,y)
% if x.TargetDist < y.TargetDist
% b = 1;
% return
% end
%
% if x.TargetDist > y.TargetDist
% b = 0;
% return
% end
% if isstruct(x)
% x=x.Cost;
% end
%
% if isstruct(y)
% y=y.Cost;
% end
b=all(x.Cost<=y.Cost) && any(x.Cost<y.Cost);
% if b
% return
% end
%
% if x.TargetDist < y.TargetDist
% b = 1;
% end
end