Why are people inclined to build friendships and maintain durable, nonreproductive relationships? Previous computational modeling work showed that it can be an efficient survival strategy to choose interaction partners based on relationship length, even if, as a consequence, individuals become unconditionally cooperative in long-term relationships (interpersonal commitment). Such committed individuals can outperform conditional cooperators who play in a fair, reciprocal manner (e.g. tit for tat). However, previous studies did not conduct a sufficiently strict test of the viability of commitment because they did not account for exploiters who specifically take advantage of the tolerance of commitment players. We allow for this by extending p...