-
1:
function determineAnswer(peerInfo[])
-
2:
▹ Compare range overlapping
-
3:
-
4:
if ) then
-
5:
return newRangeCalculation() ▹ Agent concedes
-
6:
end if
-
7:
▹ Compare flexibility rank
-
8:
-
9:
-
10:
for agentOther in lowestOverlapAgents[] do
-
11:
if then
-
12:
return currentProposal ▹ Agent does not concede
-
13:
else if then
-
14:
-
15:
end if
-
16:
end for
-
17:
if and then
-
18:
return newRangeCalculation() ▹ Agent concedes
-
19:
end if
-
20:
▹ Compare distance to next achievable overlap
-
21:
-
22:
-
23:
for agentOther in sameGroupAgents[] do
-
24:
-
25:
if then
-
26:
-
27:
return currentProposal ▹ Agent does not concede
-
28:
else if then
-
29:
-
30:
end if
-
31:
end for
-
32:
if and then
-
33:
return newRangeCalculation() ▹ Agent concedes
-
34:
end if
-
35:
▹ Tie scenario (often in a 1 on 1 situation): compare concession count
-
36:
for agentOther in tieAgents[] do
-
37:
if then
-
38:
return currentProposal ▹ Agent does not concede
-
39:
end if
-
40:
end for
-
41:
return currentProposal ▹ Agent does not concede
-
42:
end function