1 Introduction

In classical oligopoly models, the goal of each firm is to maximize (or at least to increase) its own profits. Typically in these models, strategic interaction only occurs indirectly because of the influence of competitors’ decisions on economic quantities regarding other competitors, such as the market price through the demand function or the production costs through cost externalities [for example, in the presence of spillover effects, see, e.g., D’Aspremont and Jacquemin (1988)].

However, even direct strategic interaction may be considered if some firms in the oligopoly market include (at least partially) competitors’ profits in their own objective function they wish to maximize (or increase). Following this idea, Cyert and DeGroot (1973) introduce partial cooperation by inserting a fraction of competitors’ profit (modulated by a coefficient of cooperation) in each objective function (see also Bischi et al. 2010, chapter 4). This may be related to the fact that firms wish to produce inside industrial districts where similar firms operate, in order to take advantage of common infrastructures, knowledge spillovers, cross-shareholdings, etc. On the contrary, different situations may lead some firms to increase their own profits while trying to decrease (at least partially) competitors’ ones. This attitude, which may be denoted as aggressive, may be justified in industrial competition contexts in which it is preferred to weaken the opponent even at the expense of obtaining a lower profit for themselves: a position in a ranking can be achieved both by increasing own gains and/or by decreasing competitors’ ones, an attitude that has been denoted as spiteful behavior in the literature [see, e.g., Vriend (2000); Vallée and Yildizoglu (2009)]. The literature on strategic delegation also fits into this context, see Fershtman and Judd (1987) and De Giovanni and Lamantia (2016).

The issue of the evolution of cooperation in prisoner dilemma games has been widely discussed. An important point of view to explain possible behaviors different from those found with the maximization of expected utility concerns the distinction between material payoffs and utility payoffs, see Ahn et al. (2001) and Andreoni and Miller (2002). Ahn et al. (2001) also stress the different results in terms of evolution of cooperation when players are matched randomly or repeatedly with the same agent, thus introducing the idea of a kind of memory behind the behavior. Agents can adopt forms of “social preferences,” sacrificing part of their payoffs to increase the average payoffs of the population, as explained in Charness and Rabin (2002). Furthermore, when it comes to situations of strategic interaction even with two agents but which can be chosen within a larger population, the literature refers to the concept of “indirect reciprocity” to explain the evolution of cooperative behavior that would otherwise hardly emerge, see Leimar and Hammerstein (2001) and Nowak and Sigmund (2005) for an extensive overview on the point.

Janssen (2008) proposes a model in which agents play one-shot prisoner’s dilemma games with the option of withdrawal. The trustworthiness of others when withdrawal is not chosen is assessed through the expected utility of cooperative and defective behavior with the logit model. Janssen (2008) also differentiates between the agents’ utility and expected payoff. The analysis is carried out with artificial agents and shows that the presence of learning about the reliability of opponents increases the general level of cooperation.

In this paper, we propose an oligopoly model where firms may behave sometimes as partial cooperators and sometimes as aggressive agents. Firms can switch from a kind of behavior to another one through an evolutionary model driven by a replicator equation where fitness is measured in terms of accumulated profits (monetary payoffs) and actions are guided by extended utility functions encouraging cooperative or aggressive behavior (utility payoffs). This setup is similar to the classic Hawk–Dove game in ecology, like the one proposed by Smith (1982) as a prototypical evolutionary game, just at the very beginning of this research field. As it is well known, a Hawk–Dove one-shot game can give rise to a classical prisoner dilemma, where Hawk (or aggressive) behavior is dominant with respect to Dove (or cooperative) one. Hommes et al. (2018) is a relevant reference for the modeling of evolutionary oligopolies with different behavioral rules.

Given that in contexts of industrial competition collusive behaviors are generally not allowed, we assume that cooperative behavior is not determined by an agreement between the agents but by the willingness of each company to go in the direction of a less strong competition that still helps the whole industry to make higher profits. In some sense, the various behaviors are basically implemented to introduce forms of indirect reciprocity in the market. For this reason, each firm chooses at the pre-commitment level which strategy to adopt (cooperative or aggressive) and then observes the choice of its opponent to determine the quantities to be produced and obtains the consequent profit. For the same reason, we do not introduce “punishments to defectors” that in many cases can indeed steer the system toward cooperation but that are out of the picture in the context at hand.

Our contribution, moreover, unlike many other similar works, considers accumulated profit as a measure of fitness instead of current profit only. For this reason, we explore the role of memory on the dynamics of the model, or of history, both with analytical methods and with numerical explorations, usually necessary when dealing with global dynamics of nonlinear maps.

We completely characterize the case here proposed, which is the linear oligopoly setup with linear inclusion of one’s opponent’s profit in the extended objective function. Here, we present the analytical results that apply to all possible levels of cooperative or aggressive behavior. We manage, in this simple context, to characterize the model for each possible value of these parameters.

In this way, we add some insights to the vast literature on the evolutionary stability of the Walrasian equilibrium (or more generally to aggressive behavior) in an oligopolistic market, which originated with Vega-Redondo (1997), see Alós-Ferrer (2004), Vallée and Yildizoglu (2009), Apesteguia et al. (2010) and Radi (2017) and references therein. The evolutionary oligopoly model here proposed shows that the Walrasian equilibrium, that we retrieve when firms are “aggressive,” is an equilibrium of the model but it is not always an evolutionary stable one.

In particular, we show the presence of a subspace of parameters in which no pure strategy (cooperative or aggressive behavior) dominates so that the dynamics do not converge to a boundary equilibrium with the presence of only the monomorphic configuration of the population. This, in particular, occurs when the cooperative behavior consists of incorporating only a small portion of the profit of the adversaries while the aggressive behavior consists in the heavy penalty toward the adversary. In this case, the presence of an equilibrium of coexistence of the two strategies (polymorphic configuration of the population) is demonstrated. However, this equilibrium can be unstable and gives rise to complex dynamics. We show in particular how these dynamics are influenced by the parameters related to the level of cooperation and by the amount of memory, which is stabilizing in our case. In this regard, it is interesting to note that the role of memory in the literature is not always univocal: sometimes it is locally stabilizing or destabilizing [see Hommes et al. (2012)], sometimes irrelevant for local stability properties of equilibria but influencing the global dynamics of the system (see Bischi et al. (2015) and Bischi et al. (2020)). For instance, Bischi et al. (2018) find that a short memory is destabilizing compared to the case without memory but a long memory (at the uniform limit) is highly stabilizing.

All results about existence of equilibria, their stability and bifurcations are reported in the paper also in the dynamic extension with memory. Through global analysis tools, we also explore, numerically, cases of coexistence of attractors. Furthermore, we present at the end of the paper what are the possible dynamic trends for the total profit of the industry when the main parameters of the model vary.

The paper is organized as follows. Section 2 presents the basic setup of the model with production strategy choices and evolutionary switches of behaviors based on exponential replicator dynamics with memory, as well as the particular formulation of the model in a market characterized by linear demand and cost functions with firms adopting Nash play to make their production choices. Section 3 collects the main analytical results concerning existence, stability and local bifurcations of the equilibrium points of the model. In Sect. 4, some numerical results are described to investigate bifurcation diagrams, coexistence of attractors each with its own basin of attraction and the dynamics of total industry profits. Finally, the last section is devoted to some concluding remarks and possible extensions of the dynamic model.

2 The model

Let us consider an oligopoly market with N ex ante identical firms that produce homogeneous goods. At each discrete time t, a couple of firms, say firm i and firm j, is assumed to be randomly selected among the firms of the population to engage a duopoly game and each of them can choose between two different (and in some sense contrasting) kinds of behavior: the first one, denoted as cooperative behavior, means that player i adopting it decides quantity \(q_{i}\) to maximize

$$\begin{aligned} S_{i}=\pi _{i}(q_{i},q_{j})+\theta \pi _{j}(q_{j},q_{i}) \end{aligned}$$
(1)

where \(\pi _{i}(q_{i},q_{j})\) is player’s i expected payoff, which depends on the choice by player j as well, and parameter \(\theta \in [0,1]\) measures the amount (or intensity) of cooperative behavior; the second one, denoted as aggressive behavior, means that player i decides quantity \(q_{i}\) to maximize

$$\begin{aligned} V_{i}=\pi _{i}(q_{i},q_{j})+\rho \pi _{j}(q_{j},q_{i}) \end{aligned}$$
(2)

with \(\rho \in \left[ -1,0\right] \), where \(\left| \rho \right| \) measures the amount (or intensity) of aggressive behavior.

To select quantities, firms can use an “optimal” (or at least satisfying, i.e. suboptimal, or adaptive) rule in order to get maximum (or increasing) payoff. Such behavioral rules may depend on the computational abilities of a firm or on the available information set. Anyway, we assume that each firm uses any of such rules to decide its own next period output. For instance, let us focus on the ones commonly proposed in the specialized literature such as Nash rule, best reply, gradient rule or local monopolistic approximation rule, etc. (see, e.g., Bischi et al. (2010) and references therein for an overview on these rules). Let us denote by \(q_{s}(t)\) and \(q_{v}(t)\) the quantities chosen at time t according to the cooperative and aggressive objective functions, respectively, in (1) and (2). If firm i chooses cooperative behavior, then it sets \(q_{s}(t+1)\) to maximize (or at least increase) objective \(S_{i}\) in (1) and expects to earn at time \(t+1\) the following payoff:

$$\begin{aligned} \pi _{i}^{e}(q_{s}(t+1),q_{-i}(t+1)) \end{aligned}$$

for a given production \(q_{-i}(t+1)\) set by firm i’s competitor. Similarly, if firm i chooses aggressive behavior, it sets \(q_{v}(t+1)\) to maximize (or at least increase) objective \(V_{i}\) in (2) and has expected profits

$$\begin{aligned} \pi _{i}^{e}(q_{v}(t+1),q_{-i}(t+1)). \end{aligned}$$

Firms are assumed to behave cooperatively or aggressively according to an evolutionary switching mechanism where fitness is identified with profits. Let us consider a population of N firms, where the current share of cooperators is \(r=r(t)=\frac{N_{c}(t)}{N}\), \(N_{c}(t)\) being the number of cooperators at time t in the population. Of course, \(r(t)\in \left[ 0,1\right] \) and the number of aggressive firms is given by the complementary fraction \(N_{a}(t)=N\left( 1-r(t)\right) \). As usual in the evolutionary game approach, the share r(t) approximates the probability \(\Pr \) of extracting a firm with cooperative behavior in a random sampling and \(1-r(t)\) is the probability of meeting an aggressive firm. So, the average profit at time t of a firm with cooperative behavior is given by

$$\begin{aligned} \overline{\pi }_{s}^{*}(t)=r(t)\pi _{ss}^{*}+(1-r(t))\pi _{sv}^{*} \end{aligned}$$
(3)

where \(\pi _{ss}^{*}\) represents the profit gained by a firm with cooperative behavior engaged in a duopoly contest with another firm adopting the same behavior, whereas \(\pi _{sv}^{*}\) represents the profit obtained by a firm with cooperative behavior when its opponent adopts aggressive behavior.

Analogously, the average profit of a firm with aggressive behavior is

$$\begin{aligned} \overline{\pi }_{v}^{*}(t)=r(t)\pi _{vs}^{*}+(1-r(t))\pi _{vv}^{*} \end{aligned}$$
(4)

where \(\pi _{vs}^{*}\) is the profit gained by an aggressive firm against one with cooperative behavior and \(\pi _{vv}^{*}\) represents the profit obtained by each firm in a duopoly contest involving two aggressive firms. We assume an (exponential) replicator equation [in the form proposed by Cabrales and Sobel (1992), see also Hofbauer and Sigmund (2003)] to simulate the time evolution of r(t)

$$\begin{aligned} r(t+1)=\frac{r(t)e^{\gamma \overline{\pi }_{s}^{*}(t)}}{r(t)e^{\gamma \overline{\pi }_{s}^{*}(t)}+(1-r(t))e^{\gamma \overline{\pi }_{v}^{*}(t)} }=\frac{r(t)}{r(t)+(1-r(t))e^{-\gamma {\mathbb {F}}(t)}} \end{aligned}$$
(5)

where \(\gamma \ge 0\) is the intensity of choice and \({\mathbb {F}}(t)=\) \(\overline{\pi }_{s}^{*}(t)-\overline{\pi }_{v}^{*}(t)\) represents the fitness gain (i.e., competitive advantage) of cooperators with respect to aggressive agents.

Notice that quantities are set by considering “augmented” objective functions S or V in (1) and (2), whereas the profit (or payoff) associated with each behavior is obtained by considering expected accrued own profits, where the augmented term is omitted. This is in line with the so-called indirect evolutionary approach, described by Königstein and Müller (2000) and, more recently, by Alger and Weibull (2013) [see also Kopel et al. (2014) and Kopel and Lamantia (2018)] for an application to dynamic oligopolies). According to this approach, the evolution of behaviors, such as aggressive or cooperative attitudes in our model, depends on an “objective” measure of fitness, such as firms’ profits, whereas the choice of strategies, given by production decisions in our case, depends on a “subjective” utility such as the augmented functions S or V here proposed.

Another key ingredient that we consider in the model is the presence of memory. As explained below, we are interested in considering what happens when agents embed into the fitness measure also the performance of past strategies. The details on this point are given below.

2.1 Linear setup

Let us consider the duopoly contest with linear demand \(p=a-b(q_{i}+q_{j})\), with \(a>0\), \(b>0\), and linear costs \(C(q)=cq\), \(c>0\), to develop the easiest case and study how the model looks like. The cases with more complicated demand and cost functions [such as with isoelastic demand, see, e.g., Puu (1991)], or nonlinear cost functions as well as cost functions with externalities due to spillovers [see, e.g., Bischi and Lamantia (2002) and Bischi et al. (2015)] can be then dealt following a similar way. In the linear setup, firm’s i profit is given by

$$\begin{aligned} \pi _{i}=\left( p-c\right) q_{i} \end{aligned}$$

and under cooperative behavior firm i selects quantity \(q_{i}\) in order to maximize

$$\begin{aligned} S_{i}&=\pi _{i}(q_{i},q_{j})+\theta \pi _{j}(q_{j},q_{i})\\&=\left( p-c\right) q_{i}+\theta \left( p-c\right) q_{j}, \end{aligned}$$

whereas under aggressive behavior firm i sets quantity to maximize

$$\begin{aligned} V_{i}&=\pi _{i}(q_{i},q_{j})+\rho \pi _{j}(q_{j},q_{i})\\&=\left( p-c\right) q_{i}+\rho \left( p-c\right) q_{j} \end{aligned}$$

2.1.1 Equilibrium under best reply: Nash play

Let us assume that each firm follows a best reply strategy to decide the next period production.Footnote 1 Under cooperative behavior, firm’s i best reply is

$$\begin{aligned} q_{s}(q^{e})=\frac{a-c-bq^{e}\left( 1+\theta \right) }{2b} \end{aligned}$$
(6)

which is easily obtainable by solving the F.O.C. \(\frac{\partial S_{i}\left( q_{i},q^{e}\right) }{\partial q_{i}}=0\) with respect to \(q_{i}\).

If both firms are cooperators, then the Nash Equilibrium is given by the intersection of best reply reaction curves, where both firms produce the same quantities:

$$\begin{aligned} q_{ss}^{*}=\frac{a-c}{b(3+\theta )}>0 \end{aligned}$$
(7)

where the usual condition \(a>c\) is assumed. In this case, both firms earn

$$\begin{aligned} \pi _{ss}^{*}=\frac{\left( a-c\right) ^{2}(1+\theta )}{b(3+\theta )^{2}}. \end{aligned}$$
(8)

It is plain that in the case \(\theta =0\) (no cooperation) the usual Cournot–Nash duopoly equilibrium is obtained, whereas in the other limiting case \(\theta =1\) (total cooperation) the monopoly solution is got, as both firms share the same objective of maximizing the joint profit.

Analogously, if both firms choose aggressive behavior, similar results follow by substituting \(\theta \) with \(\rho \). Thus, best reply under aggressive behavior of both players is given by

$$\begin{aligned} q_{v}(q^{e})=\frac{a-c-bq^{e}\left( 1+\rho \right) }{2b} \end{aligned}$$

and Nash Equilibrium is given by production plans

$$\begin{aligned} q_{vv}^{*}=\frac{a-c}{b(3+\rho )}>0 \end{aligned}$$
(9)

with profits

$$\begin{aligned} \pi _{vv}^{*}=\frac{\left( a-c\right) ^{2}(1+\rho )}{b(3+\rho )^{2}} \end{aligned}$$
(10)

It is trivial to observe that for \(\rho =0\) the equilibrium reduces to the standard Cournot–Nash one, whereas in the other limiting case \(\rho =-1\) the Walrasian equilibrium is obtained, which is characterized by zero profits to the firms. Finally, in the mixed case the Nash Equilibrium is given by

$$\begin{aligned} q_{sv}^{*}=\frac{\left( a-c\right) \left( 1-\theta \right) }{b(3-\theta -\rho -\theta \rho )}>0;\quad q_{vs}^{*}=\frac{\left( a-c\right) \left( 1-\rho \right) }{b(3-\theta -\rho -\theta \rho )}>0 \end{aligned}$$
(11)

Notice that these equilibria are always nonnegative since \(a>c\) has been assumed and the following condition always holds under our parameter setting: \(\ \ 3-\theta -\rho -\theta \rho >0\). In the following, we will always assume that \(\theta \) and \(\rho \) are not both equal to zero; otherwise, the distinction between the two behaviors vanishes.

The corresponding profits at equilibrium (11) are given by

$$\begin{aligned} \pi _{sv}^{*}=\frac{(a-c)^{2}(1-\theta \rho )(1-\theta )}{b(3-\theta -\rho -\theta \rho )^{2}} \end{aligned}$$
(12)

and

$$\begin{aligned} \pi _{vs}^{*}=\frac{(a-c)^{2}(1-\theta \rho )(1-\rho )}{b(3-\theta -\rho -\theta \rho )^{2}} \end{aligned}$$
(13)

where \(\pi _{sv}^{*}\) represents the profit at equilibrium for the player that chooses \(q_{sv}^{*}\) when its opponent chooses \(q_{vs}^{*}\).

In the following, we focus on Nash play, see Hommes et al. (2018), which occurs when each agent chooses the quantities to be produced for its chosen behavior based on the expressions found in (7), (9) and (11). In this case, it is easy to show that prices are always strictly positive in all configurations of the game for each pair of parameters \(\theta \in [0,1]\) and \(\rho \in [-1,0]\).

This basic example shows the prisoner’s dilemma structure of the game at hand, as it is

$$\begin{aligned} \pi _{ss}^{*}>\pi _{vv}^{*} \end{aligned}$$
(14)

so both firms are better off if they both choose to cooperate, but being

$$\begin{aligned} \pi _{sv}^{*}<\pi _{vs}^{*} \end{aligned}$$
(15)

a firm that chooses cooperative behavior is worst off if the competitor chooses aggressive behavior.

In addition, in the linear setup, the following inequalities hold (see “Appendix”)

$$\begin{aligned} \pi _{sv}^{*}<\pi _{ss}^{*}<\pi _{vs}^{*} \end{aligned}$$
(16)

which shows that if agent i cooperates, its payoff is always greater in the case that also agent j chooses to cooperate; however, if agent j cooperates, agent i is better off by not cooperating.

This situation is quite common in Hawk–Dove games [see, e.g., Smith (1982)]. As it is well known, even if in a one-shot Hawk–Dove game that assumes the form of a prisoner dilemma the aggressive behavior is dominant, in the case of a repeated game, as assumed in an evolutionary setting, cooperative behavior may emerge in the long run. So, in the following we shall consider the model with replicator dynamics (5) under the assumption of linear demand and cost functions with firms following Nash play, as outlined above. In this case, the fitness gain of cooperators with respect to aggressive agents, denoted as \({\mathbb {F}}(t)\) in (5), becomes

$$\begin{aligned} {\mathbb {F}}(t)&=\overline{\pi }_{s}^{*}(t)-\overline{\pi }_{v}^{*}(t)\\&=r(t)\pi _{ss}^{*}+(1-r(t))\pi _{sv}^{*}-\left[ r(t)\pi _{vs}^{*}+(1-r(t))\pi _{vv}^{*}\right] \\&=\alpha r(t)+\beta \end{aligned}$$

with

$$\begin{aligned} \alpha&=\pi _{ss}^{*}+\pi _{vv}^{*}-\pi _{sv}^{*}-\pi _{vs}^{*}\nonumber \\ \beta&=\pi _{sv}^{*}-\pi _{vv}^{*} \end{aligned}$$
(17)

It is possible to show that \(\alpha <0\), whereas \(\beta \) can take any sign in the considered parameter space (see “Appendix”).

Summing up, by the inequality \(\pi _{ss}^{*}<\pi _{vs}^{*}\) in (16), the cooperative strategy is never dominant: when player j plays cooperatively, agent i is better off by playing aggressively. On the other hand, playing aggressively can be a dominant strategy. This occurs when \(\pi _{sv}^{*}<\pi _{vv}^{*}\), that is when \(\beta <0\): playing aggressively is more rewarding to agent i both when agent j plays cooperatively (\(\pi _{ss}^{*}<\pi _{vs}^{*}\)) and when agent j plays aggressively (\(\pi _{sv}^{*}<\pi _{vv}^{*}\)) [recall that condition \(\pi _{ss}^{*}<\pi _{vs}^{*}\) always holds]. As a consequence, when \(\beta <0\), \({\mathbb {F}}(t)=\overline{\pi }_{s}^{*}(t)-\overline{\pi } _{v}^{*}(t)<0\) for any share of cooperators \(r(t)\in \left[ 0,1\right] \), so that any dynamic adjustment based on fitness should punish the use of the cooperative strategy.

On the other hand, more interesting situations arise when \(\beta >0\): as in this case both conditions \(\pi _{sv}^{*}>\pi _{vv}^{*}\) and \(\pi _{vs}^{*}>\pi _{ss}^{*}\) hold, then for any agent the best choice is to play differently from the competitor. As we show below, this means that in the population of firms the long-run distribution of behaviors can converge to a polymorphic configuration with coexistence of both behaviors as there is no dominance of one pure strategy over the other.

The case \(\beta <0\) seems to confirm what is already known in the literature, i.e., that the Walrasian equilibrium is evolutionarily stable, by adding that not only the Walrasian equilibrium is evolutionarily stable, but also any “milder” aggressive behavior is so. In addition, the case \(\beta >0\) leads to something new that adds to the literature and to the debate on the evolutionary stability of an equilibrium different from the Walrasian one and, more generally, on the instability of the aggressive behavior in an oligopoly market, see Vega-Redondo (1997), Radi (2017), Alós-Ferrer (2004), Apesteguia et al. (2010), Schaffer (1989) and Cerboni-Baiardi and Naimzada (2018).

However, the stability of an equilibrium when \(\beta >0\) depends on the other behavioral parameters like the intensity of choice \(\gamma \) in the evolutionary process and on the amount of past profits memory, which is now introduced in the model.

2.2 The model with memory

As it is well known, in an economic context the replicator equation expresses a proportional imitation rule, where strategies of firms getting higher profits are imitated with a probability that is proportional to their expected payoff, see Hofbauer and Sigmund (1998). In the following, we shall assume that such imitation rule is not only based on a comparison of current profits but also of accumulated profits. In other words, in addition to considering last period profits only, the fitness measure takes into account past strategies performances as well, referred to simply as memory in the following. Memory is embedded in the fitness through a weighted average of past profit values, with weights expressing a profit smoothing factor. We introduce in the model such a “fitness with memory” by proposing the following recursive (or inductive) definition of time t accumulated profits with exponential smoothing:

$$\begin{aligned} y(t)&=\left( 1-\omega \right) \left( \overline{\pi }_{s}^{*}(t)-\overline{\pi }_{v}^{*}(t)\right) +\omega y(t-1)=\nonumber \\&=\left( 1-\omega \right) \mathbb {F(}t\mathbb {)}+\omega y(t-1)=\nonumber \\&=\left( 1-\omega \right) \left[ \alpha r(t)+\beta \right] +\omega y(t-1) \end{aligned}$$
(18)

where the weight \(\omega \in \left[ 0,1\right) \) is a memory parameter that states how much of past profits contribute to current fitness. When \(\omega =0\) the no-memory case is obtained, whereas in the opposite limiting case \(\omega \rightarrow 1^{-}\) the current expected gain \(\mathbb {F(} t\mathbb {)=}\overline{\pi }_{s}^{*}(t)-\overline{\pi }_{v}^{*}(t)\) is neglected and relative fitness is constant.

All in all, the dynamic model we shall consider below is obtained by the iteration of the following two-dimensional map \(T:A\rightarrow A\), where \(A=\left[ 0,1\right] \times \left( -\infty ,+\infty \right) \):

$$\begin{aligned} T:\left\{ \begin{array} [c]{ll} r(t+1)= &{} \frac{r(t)}{r(t)+(1-r(t))e^{-\gamma y(t)}}\\ &{} \\ y(t+1)= &{} (1-\omega )\left[ \alpha r(t+1)+\beta \right] +\omega y(t)\\ {} &{}=(1-\omega )\left[ \frac{\alpha r(t)}{r(t)+(1-r(t))e^{-\gamma y(t)}}+\beta \right] +\omega y(t) \end{array} \right. \end{aligned}$$
(19)

Summing up, map (19) depends on the following parameters:

  • \(\omega \in \left[ 0,1\right) \) (amount of memory);

  • \(\gamma \in \left[ 0,+\infty \right) \) (intensity of choice);

  • \(a\in \left( 0,+\infty \right) \) (maximum selling price) and \(b\in \left( 0,+\infty \right) \) (opposite of demand slope);

  • \(c\in \left[ 0,+\infty \right) \) (marginal cost);

  • \(\theta \in [0,1]\) (amount of cooperative behavior);

  • \(\rho \in \left[ -1,0\right] \) (opposite of the amount of aggressive behavior).

With the exception of the amount of memory \(\omega \) and the intensity of choice \(\gamma \), all other parameters of map (19) are subsumed in the aggregate parameters \(\alpha \in \left( -\infty ,0\right) \) and \(\beta \in {\mathbb {R}}\).

3 Equilibrium points, local stability and bifurcations

In this section, analytical results about existence and local stability of equilibrium points of the discrete dynamical system (19) are provided. Moreover, based on local linearization, a study of the local bifurcations is presented in order to characterize stability losses and qualitative changes of the dynamical properties of each equilibrium as the parameters of the model vary. However, as usual in nonlinear dynamic models, this study is not sufficient to give a complete characterization of the long-run dynamic properties of the system, so a global analysis based on numerical and geometric methods will be performed in the next section in order to discover the existence of attracting sets that are more complex than stationary equilibria, as well as to study their basins of attraction in the presence of multistability, i.e., when several coexisting attracting sets are present.

The first proposition concerns the existence of equilibrium points.

Proposition 1

(Equilibrium points) The dynamical system (19) always admits the following two boundary equilibrium points:

$$\begin{aligned} E_{0}=\left( 0,\beta \right) \ and\ E_{1}=\left( 1,\alpha +\beta \right) \end{aligned}$$

and a third inner equilibrium given by

$$\begin{aligned} E_{*}=\left( -\frac{\beta }{\alpha },0\right) \end{aligned}$$

provided that the aggregate parameter \(\beta >0\) is given. In terms of amount of aggressive and cooperative behavior \(\rho \) and \(\theta \) , \(\beta >0\) is equivalent to the following conditions:

$$\begin{aligned} -1\le \rho<3-2\sqrt{3}\text { and }0\le \theta <\frac{-\rho ^{2}+6\rho +3}{3\rho ^{2}+6\rho -1} \end{aligned}$$
(20)

Proof

The dynamic variable r is stationary for (19) when \(r(t+1)=r(t)\), and this occurs for \(r=0\) or \(r=1\) or \(y=0\). From these three conditions, the three equilibrium points are calculated from the algebraic system obtained from (19) with \(r(t+1)=r(t)=r\) and \(y(t+1)=y(t)=y\). Notice that at an equilibrium \(y(t)=y(t-1)=y^{*}\) and, from (18 ), it follows that \(y^{*}=\left( 1-\omega \right) \mathbb {F(} t\mathbb {)}+\omega y^{*}\); hence, \(y^{*}=0\) implies \(\mathbb {F=}0\) so that it holds that \(\overline{\pi }_{s}^{*}(t)=\overline{\pi }_{v}^{*} (t)\). Equilibrium \(E_{*}\) is feasible provided that \(-1\le \frac{\beta }{\alpha }\le 0\)

. From the negativity of \(\alpha \) (see “Appendix”) and from (16), the inequality \(\alpha +\beta <0\) follows so that condition \(-1\le \frac{\beta }{\alpha }\) is always satisfied. Thus, the condition for the feasibility of \(E_{*}\) reduces to \(\frac{\beta }{\alpha }\le 0\), i.e., \(\beta \ge 0\). The conditions for the positivity of \(\beta \) are obtained in “Appendix.” \(\square \)

Equilibrium \(E_{0}\) represents a homogeneous situation with no cooperators (i.e., all aggressive agents), whereas \(E_{1}\) represents a homogeneous situation with all cooperators (i.e., no aggressive agents). Equilibrium \(E_{*}\) is characterized by identical profits gained by cooperative and aggressive players being \(\overline{\pi }_{s}^{*}(t)=\overline{\pi } _{v}^{*}(t)\). This occurs whenever \(\beta >0\), i.e., when \(\pi _{sv}^{*}>\pi _{vv}^{*}\). From an economic point of view, the existence of such a mixed equilibrium occurs whenever equilibrium profits are such that, given an aggressive opponent, a firm is better off by playing nonaggressively. This can occur only in situations in which aggressive play heavily punishes competitors (low \(\rho \)) and cooperators do not add much of the competitor’s profits into their objective function (low \(\theta \)), as specified in the parameter region (20). At \(E_{*}\), the distribution of both strategies lies in the interior of the interval \(\left( 0,1\right) \). Thus, the dynamics converge to a heterogeneous (or mixed) population of aggressive/cooperative agents if \(\beta >0\), with the prevalence of cooperators if \(0<\beta <-\frac{\alpha }{2}\) and the prevalence of aggressive agents if \(-\frac{\alpha }{2}<\beta <-\alpha \). This indifference situation at the mixed equilibrium is a standard occurrence in evolutionary games. The stability properties of these equilibrium points, as well as the related local bifurcations, are described by the following proposition.

Proposition 2

(Stability Analysis)

  • The boundary equilibrium \(E_{0}\) of the map (19) is a stable node if \(\beta <0\) and a saddle point if \(\beta >0\), with stable set along the vertical invariant edge \(r=0\) and unstable set transverse to it.

  • The boundary equilibrium \(E_{1}\) is always a saddle point, with stable set along the vertical invariant edge \(r=1\) and unstable set transverse to it.

  • The interior equilibrium \(E_{*}\) is stable if

    $$\begin{aligned} 2\alpha \left( 1+\omega \right) -(1-\omega )\beta \gamma \left( \alpha +\beta \right) <0. \end{aligned}$$
    (21)
  • At \(\beta =0\) a transcritical bifurcation occurs at which \(E_{*}=E_{0}=\left( 0,0\right) \), and the two equilibria exchange their stability along the transverse invariant set.

  • If \(E_{*}\) is a feasible equilibrium, that is, conditions (20) are verified, then it loses stability through a flip bifurcation when the left-hand side of the expression in (21) becomes positive.

Proof

In order to study the stability of the three equilibrium points, we follow the usual linearization procedure based on the study of the eigenvalues of the Jacobian matrix of (19)

$$\begin{aligned} J(r,y\mathbb {)=}\left[ \begin{array} [c]{cc} \frac{e^{-\gamma y}}{\left( r+(1-r)e^{-\gamma y}\right) ^{2}} &{} \frac{\gamma r(1-r)e^{-\gamma y}}{\left( r+(1-r)e^{-\gamma y}\right) ^{2}}\\ \frac{\alpha \left( 1-\omega \right) e^{-\gamma y}}{\left( r+(1-r)e^{-\gamma y}\right) ^{2}} &{} \frac{\alpha \gamma \left( 1-\omega \right) r(1-r)e^{-\gamma y}}{\left( r+(1-r)e^{-\gamma y}\right) ^{2}}+\omega \end{array} \right] \end{aligned}$$

computed at the equilibrium points. At \(E_{0}\), we have

$$\begin{aligned} J(E_{0})=\left[ \begin{array} [c]{cc} e^{\gamma \beta } &{}\quad 0\\ \alpha \left( 1-\omega \right) e^{\gamma \beta } &{}\quad \omega \end{array} \right] \end{aligned}$$

a triangular matrix with eigenvalues \(\lambda _{1}=e^{\gamma \beta }\), always positive and less than 1 if \(\beta <0\), \(\lambda _{2}=\omega \in \left[ 0,1\right) \). So, \(E_{0}\) is a stable node if \(\beta <0\) and a saddle point if \(\beta >0\) with stable set along the vertical invariant edge \(r=0\) and unstable set transverse to it. Analogously, at \(E_{1}\), we have

$$\begin{aligned} J(E_{1})=\left[ \begin{array} [c]{cc} e^{-\gamma (\alpha +\beta )} &{}\quad 0\\ \alpha \left( 1-\omega \right) e^{-\gamma (\alpha +\beta )} &{}\quad \omega \end{array} \right] \end{aligned}$$

that is again a triangular matrix with eigenvalues \(\lambda _{1}=e^{-\gamma (\alpha +\beta )}\), which is always greater than 1 being \(\alpha +\beta <0\), and \(\lambda _{2}=\omega \in \left[ 0,1\right) \). So, \(E_{1}\) is a saddle point with stable set along the vertical invariant edge \(r=1\) and unstable set transverse to it.

Finally, at the interior equilibrium \(E_{*}\), the Jacobian matrix is given by

$$\begin{aligned} J(E_{*})=\left[ \begin{array} [c]{cc} 1 &{}\quad -\frac{\beta \gamma \left( \alpha +\beta \right) }{\alpha ^{2}}\\ \alpha \left( 1-\omega \right) &{}\quad -(1-\omega )\frac{\beta \gamma \left( \alpha +\beta \right) }{\alpha }+\omega \end{array} \right] \end{aligned}$$

Thus, \(E_{*}\) is locally asymptotically stable if the characteristic equation

$$\begin{aligned} P(\lambda )=\lambda ^{2}-Tr\lambda +Det=0, \end{aligned}$$

where Tr and Det represent, respectively, the trace and the determinant of \(J(E_{*})\) :

$$\begin{aligned} Tr&=1+\omega -(1-\omega )\frac{\beta \gamma \left( \alpha +\beta \right) }{\alpha }\\ Det&=\omega , \end{aligned}$$

has roots with \(\left| \lambda \right| <1\). Sufficient conditions for this are given by the Schur stability conditions [see, e.g., Gandolfo (2010), Medio and Lines (2001) and Elaydi (1995)]

$$\begin{aligned} \left\{ \begin{array}[c]{l} 1-Tr+Det=(1-\omega )\frac{\beta \gamma \left( \alpha +\beta \right) }{\alpha }>0\\ 1+Tr+Det=2\left( 1+\omega \right) -(1-\omega )\frac{\beta \gamma \left( \alpha +\beta \right) }{\alpha }>0\\ Det=\omega <1 \end{array} \right. \end{aligned}$$
(22)

The third stability condition in (22) is clearly always satisfied. The first one in (22) is satisfied whenever \(E_{*}\) is a feasible equilibrium, as feasibility of \(E_{*}\), occurs provided that \(\beta >0\), being \(\alpha <0\) and \(\alpha +\beta <0\). The second condition in (22) holds for

$$\begin{aligned} 2\alpha \left( 1+\omega \right) -(1-\omega )\beta \gamma \left( \alpha +\beta \right) <0 \end{aligned}$$
(23)

and when it becomes positive, a real eigenvalue exits the unit circle through \(\lambda =-1\), condition for the occurrence of a flip bifurcation. At \(\beta =0\), a transcritical bifurcation occurs at which \(E_{*}\) merges with \(E_{0}\), \(E_{*}=E_{0}=\left( 0,0\right) \), and the two equilibria exchange their stability along the transverse invariant set (not the vertical one). Notice that differently from equilibrium \(E_{0}\), there is no transcritical bifurcation at which \(E_{*}=E_{1}=\left( 1,0\right) \), and there is no stability exchange along the transverse invariant manifold as condition \(\alpha +\beta =0\) is never satisfied. \(\square \)

It is worth to notice that from (23) when \(E_{*}\) is feasible, i.e., when \(\beta >0\) so that \(r=r_{*}\in \left( 0,1\right) \), then \(E_{*}\) is stable for \(\gamma <\gamma _{F}\) where

$$\begin{aligned} \gamma _{F}=\frac{2\alpha }{\beta \left( \alpha +\beta \right) }\cdot \frac{1+\omega }{1-\omega } \end{aligned}$$

and \(E_{*}\) undergoes a flip bifurcation at \(\gamma =\gamma _{F}\). This shows the stabilizing role of the memory parameter \(\omega \in \left[ 0,1\right) \): in fact, ceteris paribus, the factor \(\frac{1+\omega }{1-\omega }\) tends to plus infinity as \(\omega \rightarrow 1^{-}\), thus enlarging the stability range of \(E_{*}\).

Moreover, the stability condition (23) can be expressed in terms of the memory parameter \(\omega \): \(E_{*}\) is stable for \(\omega >\omega _{F}\), where

$$\begin{aligned} \omega _{F}=\frac{\gamma \beta \left( \alpha +\beta \right) -2\alpha }{\gamma \beta \left( \alpha +\beta \right) +2\alpha } \end{aligned}$$

whose denominator is always negative when \(E_{*}\) is feasible. So, if also the numerator is negative, we have \(0<\omega _{F}<1\), so that the mixed equilibrium \(E_{*}\) is stable for high values of the memory parameter and it becomes unstable for decreasing memory.

An interesting condition is obtained by solving the same stability condition (23) with respect to the aggregate parameter \(\beta \), because we get a second-degree inequality

$$\begin{aligned} \gamma \left( \omega -1\right) \beta ^{2}+\gamma \alpha \left( \omega -1\right) \beta +2\alpha \left( \omega +1\right) <0 \end{aligned}$$
(24)

If the discriminant of this second-degree polynomial is positive, then two positive solutions are obtained because of the Descartes’ rule of signs (being the coefficients negative–positive–negative), say \(0<\beta _{F1}<\beta _{F2}\), and the equilibrium \(E_{*}\) is stable for \(\beta <\beta _{F1}\) or \(\beta >\beta _{F2}\). For example, in the case of no memory \(\omega =0\), we get \(\beta _{F1,2}=-\frac{\alpha }{2}\pm \frac{\alpha }{2}\sqrt{1+\frac{2}{\gamma \alpha }}\).

The result that memory strengthens the stability of the coexistence equilibrium of aggressive and cooperative agents is in line with other results in the literature. For instance, Alós-Ferrer (2004) finds that the stability of the Walrasian equilibrium, demonstrated in Vega-Redondo (1997), is lost when memory is introduced into the system. Relatedly, Vriend (2000) shows that by introducing individual learning agents can abandon more aggressive strategies to move toward more cooperative solutions.

The stability results and bifurcation conditions here obtained will be used as a guide for some numerical explorations shown in the next section.

4 Numerical explorations

We now consider the dynamic model (19) and, given a fixed set of economic parameters a, b, c, we explore how the long-run evolution of population share between the two kinds of behavior is conditioned by the behavioral parameters \(\theta \), \(\rho \), as well as the evolutionary parameters \(\gamma \) and \(\omega \). Although the examples presented below are obtained with specific values assigned to the parameters, they are representative of the typical dynamics observed in the model.

A common practice to start a numerical investigation consists in the analysis of bifurcation diagrams, obtained by assigning increasing values to a given parameter (denoted as bifurcation parameter) whose values are reported in the horizontal axis of a Cartesian diagram, and representing a given number of asymptotic (or long-run) values in the corresponding vertical line, after a given transient portion of the trajectory has been neglected.

The bifurcation diagram obtained with the fixed set of parameters \(a=4\), \(b=0.5\), \(c=0.5\), \(\theta =0.25\), \(\rho =-0.7\) and \(\gamma =20\) and taking the memory parameter \(\omega \in \left[ 0,1\right) \) as bifurcation parameter is represented in the left panel of Fig. 1. For this set of parameters, the values of the aggregate parameters \(\alpha \) and \(\beta \) can be computed, \(\alpha \simeq -1.0784\) and \(\beta \simeq 0.2536\). As stated in Proposition 1 of Sect. 3, the interior equilibrium \(E_{*}\) exists, being \(\beta >0\) and, by Proposition 2, it is stable for sufficiently high values of \(\omega \), namely for \(\omega >\omega _{F}\simeq 0.31\). When \(\omega \) decreases until \(\omega _{F}\), a flip bifurcation occurs at which the equilibrium loses stability and a stable cycle of period 2 is created. Then, as \(\omega \) is further decreased, the usual period-doubling cascade occurs, leading to stable periodic cycles of increasing period, a classical route toward deterministic chaos. The densely covered part represents chaotic time patterns of the dynamic variables (as usual intermingled with periodic windows) along which high sensitivity with respect to small perturbations makes predictions quite difficult.

Fig. 1
figure 1

Left: bifurcation diagram with parameters \(a=4\), \(b=0.5\), \(c=0.5\), \(\theta =0.25\), \(\rho =-0.7\), \(\gamma =20\) and taking the memory parameter \(\omega \in \left[ 0,1\right) \) as bifurcation parameter; red points [blue points] represent the asymptotic portion of the trajectories starting from initial condition \((r(0),y(0))=(0.65,-0.03)\) [\((r(0),y(0))=(0.5,-0.01)\)]. Right: basins of attraction of the stable equilibrium \(E_{*}\) (yellow region) and of the coexisting stable cycle of period 3 with periodic points \(\left( c_{1}, c_{2}, c_{3}\right) \) (red region) obtained for the same set of parameters as the bifurcation diagram in the left and with \(\omega =0.32\) (color figure online)

Additionally, the bifurcation diagram of Fig. 1 shows another form of uncertainty. In fact, in a range of the parameter \(\omega \) around \(\left( 0.25,0.35\right) \), another attractor coexists, which can be reached for the same values of \(\omega \) but starting from the different initial conditions. To emphasize its existence, we have plotted in the bifurcation diagram of Fig. 1, left panel, as red points all the trajectories of map (19) starting with initial condition \((r(0),y(0))=(0.65,-0.03)\) and as blue points all trajectories with initial condition \((r(0),y(0))=(0.5,-0.01)\).

This coexistence of several attracting sets, each with its own basin of attraction, is also denoted as multistability [see, e.g., Bischi and Kopel (2003)]. In order to see how the phase plane \(\left( r,y\right) \) of the dynamical system is shared by the different basins of attraction, and consequently to study how the long-run evolution of the system is determined by assigning different initial conditions (or exogenous perturbations that cause shifts of the initial state of the system)  a phase portrait is shown in the right panel of Fig. 1, obtained with the same set of parameters as the bifurcation diagram with fixed \(\omega =0.32\). In this picture, the yellow region represents the basin of the locally asymptotically stable equilibrium \(E_{*}=\left( 0.23,0\right) \), whereas the initial conditions taken in the red region lead to a periodic pattern of period 3 with periodic points \(c_{1}=\left( 0.59,-0.22\right) \), \(c_{2}=\left( 0.018,0.09\right) \) and \(c_{3}=\left( 0.10,0.13\right) \). The particular structure of the basins expresses an important feature of nonlinear dynamic models with coexisting attractors, called sometimes “corridor stability,” see, e.g., Leijonhufvud (1973) or Dohtani et al. (2007). This stream of literature stresses the fact that nonlinear dynamic models may have the property that small perturbations are recovered as far as they are confined inside the basin of attraction of a locally stable equilibrium, whereas larger perturbations lead to time evolutions that further depart from the equilibrium and go to the coexisting attractor in the long run. This remarkable phenomenon cannot be revealed by the propositions on local stability given in Sect. 3, based on the linear approximation of the dynamical system around the equilibrium points. The multistability and the related basins of attraction require a global dynamic analysis, often based on numerical and geometrical methods. If this numerical exploration is neglected, a study only based on local stability properties may even be misleading. On the other side, if the study is only limited to a numerical exploration, not guided by a previous analytical study of the dynamical system, then no useful conclusions can generally be obtained.

A similar study can be performed by taking the amount of cooperative behavior \(\theta \in \left[ 0,1\right] \) as bifurcation parameter with the other parameters’ values as in Fig. 1 and \(\omega =0.3\), as shown in the left panel of Fig. 2. In this case, as the bifurcation parameter is increased, two flip bifurcations occur at the bifurcation values denoted as \(\theta _{F_{1}} \approx 0.01721<\theta _{F_{2}}\approx 0.26783\), according to the second-degree bifurcation condition (24) discussed at the end of Sect. 3. In particular, the interior equilibrium where both behaviors coexist is stable for \(0\le \theta <\theta _{F_{1}}\) and for \(\theta >\theta _{F_{2}}\), whereas a stable oscillation of period 2 with periodic points around the unstable equilibrium \(E_{*}\) characterizes the long-run dynamics between the two flip bifurcations. This implies that the role of an increasing attitude to partial cooperation, in the presence of strong aggressiveness of some firms due to the value of \(\rho =-0.7\), is not univocal. Moreover, also in this case, the bifurcation diagram reveals that a range of the parameter exists where multistability occurs, as the stable cycle of period 2 coexists with a stable cycle of period 3, each attractor with its own basin of attraction (yellow and red points, respectively). The corresponding basins are represented in the right panel of Fig. 2, and again the complicated topological structure of the basins’ boundaries is quite evident.

Fig. 2
figure 2

Left: bifurcation diagram taking the cooperation coefficient \(\theta \in \left[ 0,1\right] \) as bifurcation parameter, with the other parameters’ values as in Fig. 1 (left) and \(\omega =0.3\). Right: basins of attraction of the stable cycle of period 2 with periodic points \(\left( d_{1},d_{2}\right) \) around the equilibrium \(E_{*}\) (yellow region) and of the coexisting stable cycle of period 3 with periodic points \(\left( c_{1}, c_{2}, c_{3}\right) \) (red region) obtained for the same set of parameters as the bifurcation diagram in the left and with \(\theta =0.2\) (color figure online)

As the parameter of partial cooperation \(\theta \) is further increased, the aggregate parameter \(\beta \) decreases and the equilibrium \(E_{*}\) is characterized by a smaller and smaller fraction r(t) of cooperators, until \(\beta =0\) when \(\widehat{\theta }\approx 0.4531\) (see (20)): at this point, the equilibrium \(E_{*}\) exits the feasible region of the phase space after crossing over the boundary equilibrium \(E_{0}\) through a transcritical (or stability exchange) bifurcation as discussed in Proposition 2. After this bifurcation, the only stable equilibrium is \(E_{0}\) where only aggressive firms operate in the market. As already explained, this is due to the dominance of aggressive behavior that determines the extinction of cooperation as the game is played over and over. As cooperation is a dominated strategy for \(\beta <0\), the presence of memory cannot change average fitness and, thus, cannot influence the stability properties of equilibrium \(E_{0}\) but only the speed of convergence to \(E_{0}\).

Another interesting situation is depicted in Fig. 3. Here, according to the second-degree bifurcation condition (24), the stability of \(E_{*}\) occurs when \(\theta \in \left( \theta _{F_{1}},\theta _{F_{2}}\right) \) where \(\theta _{F_{1}}\approx -0.056\) and \(\theta _{F_{2}}\approx 0.3277\). Being \(\theta _{F_{1}}<0\), we observe instability of the equilibrium \(E_{*}\) even for low values of the amount of cooperative behavior \(\theta \). Instability of \(E_{*}\) is here obtained by combining a high intensity of choice, that is, high agents’ impatience, with low values of memory. The combined effect is that of bringing overshooting around the inner equilibrium \(E_{*}\) for low levels of cooperation \(\theta \). Overshooting reduces as \(\theta \) is increased, and through this mechanism, the stability of \(E_{*}\) is retrieved when \(\theta \in \left( \theta _{F_{2}},\widehat{\theta }\right) \), where \(\widehat{\theta }\), as before, is the value of the transcritical bifurcation at which \(E_{*}\) exits the unitary interval. Interestingly, when \(E_{*}\) is feasible but unstable, the cycle of period 2 loses stability through period-doubling cascades of bifurcations and regains stability through period-halving cascades of bifurcations as \(\theta \) is further increased in the interval of instability of \(E_{*}\).

Fig. 3
figure 3

Bifurcation diagram with \(a=4\), \(b=0.6\), \(c=0.5\), \(\omega =0.1\), \(\rho =-0.7\), \(\gamma =20\) and taking the cooperation coefficient \(\theta \in \left[ 0,1\right] \) as bifurcation parameter

So, in economic models represented by nonlinear dynamical systems, two kinds of complexity can be evidenced, which are related to complex attracting sets and complex structure of the basins of attraction. The local stability analysis provides important directions to guide the study of the global properties of the dynamical system that are investigated numerically, such as the structure of the basins of attraction.

Another aspect that we want to briefly address here is related to the economic implications of the dynamics of the model. As we have already compared equilibrium profits in the various cases, we here focus on total industry profits when dynamics fail to converge to equilibrium \(E_{*}\).

Clearly, cooperative behavior leads here to the highest possible profit, whereas the minimum industry profit is reached when aggressive behavior from both players is always chosen. As previously seen, the evolutionary mechanism does not favor the prevalence of cooperation due to the immediate advantage of playing aggressively when the opponent plays cooperatively. So here we intend to analyze how the total profit of the industry varies when the fraction of cooperators does not converge to a boundary equilibrium but to a different attractor, for example to the internal equilibrium \(E_{*}\) or to a periodic or chaotic attractor.

Figure 4, left panel, depicts for the same parameter setting as in Fig. 1, left panel, the total industry profit for varying levels of memory \(\omega \in \left[ 0,0.5\right] \). The attractor here depicted shows total industry profits, defined as

$$\begin{aligned} \varPi (t)=2r(t)^{2}\pi _{ss}^{*}+r(t)(1-r(t))(\pi _{sv}^{*}+\pi _{vs}^{*})+2(1-r(t))^{2}\pi _{vv}^{*} \end{aligned}$$
(25)

along the generic trajectory with initial condition \((r(0),y(0))=(0.5,-0.01)\) (blue points) and with initial condition \((r(0),y(0))=(0.65,-0.03)\) (red points). As we have seen before, in this example we have for some values of memory coexistence of attractors. In addition to the profit levels obtained under evolutionary dynamics, Fig. 4 also depicts the total industry profit that would occur without any type of evolutionary adjustment with all agents sticking to the same behavior. In particular, the horizontal dotted green, black and dotted black lines represent, respectively, total industry profits when both players always choose cooperative, Cournot–Nash and aggressive behavior, that is, \(2\pi _{ss}^{*}\), \(\frac{2\left( a-c\right) ^{2}}{9b}\), \(2\pi _{vv}^{*}\). We can easily see that as memory changes, the total profit of the companies is always greater than that obtained by always playing the aggressive strategy.

Furthermore, the average profit level on each chaotic attractor can differ quite substantially, as evident for the average profit along the chaotic attractor in blue (represented by the green curve) and in red (average profit represented by the gray curve). This shows that the initial conditions on the market, i.e., the initial share of cooperators and accumulated (past) profits, do matter for assessing the long-run average profits. We can also note an apparently paradoxical effect, related to the fact that by increasing the memory level \(\omega \) of companies, the average total profit is decreasing precisely in the memory level.

A similar exercise is also proposed to highlight the effect of the level of cooperation \(\theta \) on the total profit of the industry (25). For this reason, Fig. 4, right panel, proposes a bifurcation diagram with parameters as in Fig. 3 for total industry profits with \(\theta \) ranging in the interval \(\left[ 0,0.5\right] \). Clearly, the greater total profit here is no longer constant for the cooperative strategy (dotted green curve) since it grows monotonically with \(\theta \) (even if the cooperative strategy is not chosen by agents because of its instability). Here, we note that along the two cycles existing before the chaotic attractor, there is the greatest oscillation of the total profit, even lower in a branch of cycle 2 than that obtained by playing the competitive strategy (dotted black horizontal line). Interestingly, we notice by inspecting Fig. 4 that the average profit (green curve) along the attractor is maximum for an intermediate level of cooperation \(\theta \).

Fig. 4
figure 4

Left: total industry profit for memory parameter \(\omega \in \left[ 0,0.5\right] \) with the same parameters as in Fig. 1, left panel. The horizontal dotted green, black and dotted black lines represent, respectively, total industry profits when both players always choose cooperative, Cournot–Nash and aggressive behavior. Right: bifurcation diagram with parameters as in Fig. 3. The total industry profits are shown with \(\theta \) ranging in the interval \(\left[ 0,0.5\right] \)

5 Conclusions

We have proposed an evolutionary oligopoly model in which agents can adopt cooperative or aggressive behavior. Cooperation should not be interpreted as collusion but as the intention of some companies to ease the level of competition to obtain more profits for themselves and the whole industry. Aggressive competition, on the other hand, intends to penalize rivals with the aim of weakening them. The various postulated behaviors influence the choices of the firms in terms of quantities they deliver to the market. The fitness of the various actions, however, is assessed on the basis of the profit obtained. Here, we consider not only the possibility that the most recent profit drives the fitness of each behavior but we construct a measure of the accumulated profit by introducing memory into the system, although memory weighs less on the previous behaviors through an exponential smoothing mechanism. As usual in evolutionary games, this fitness then steers the dynamic choice of agents’ behaviors over time. Although it is possible to implement in various ways the quantities decisions by firms, here we focus on the simplest possible context, that of linear demand and linear costs and agents who choose based on Nash play, i.e., with firms offering quantities at Nash equilibrium for every possible game configuration.

We propose this specific example because it is possible to fully characterize the dynamic outcomes in terms of equilibria and their stability properties in the parameters space. The paper states the analytical conditions in the parameter space so that only a pure strategy dominates. In detail, in the linear case proposed in this paper, only aggressive behavior can be dominant. However, this strategy is the one that leads to the lowest level of profits in the industry.

In particular, when the amount of cooperative behavior is minimal and the amount of aggressive behavior is maximum (\(\theta =0\) and \(\rho =-1\)), this result reaffirms the well-known finding that the Walrasian equilibrium is evolutionarily stable for an evolutionary oligopoly while the Cournot–Nash equilibrium is not, see Vega-Redondo (1997), Radi (2017), Alós-Ferrer (2004), Apesteguia et al. (2010) and Schaffer (1989). Indeed, when the amount of cooperation is above the minimal level (i.e., \(\theta >0\)), our paper shows that the Walrasian equilibrium is evolutionarily robust not only with respect to the Cournot–Nash equilibrium but also with respect to the “collusive” equilibrium or any form of cooperation.

Furthermore, we show what happens when aggressive behavior is not a dominant strategy. In this case, an equilibrium with coexistence of the two behaviors exists. This equilibrium, however, can be destabilized if the agents have a high propensity to change strategies (intensity of choice) or, in some cases, if the memory level is not high enough. We briefly address the impact of instability of this coexistence equilibrium in terms of average industry profits, and we observe that the average industry profits can depend on the particular attractor of the system in cases of coexistence of attractors. Moreover, we detect cases in which there exists an intermediate level of memory that delivers the highest average profits along disequilibrium dynamics.

The dynamic analysis proposed in this paper gives the opportunity to learn a mathematical lesson as well, because in some ranges of the parameters such that the equilibrium is locally stable, coexisting periodic and chaotic attractors have been numerically observed, thus giving rise to strong path dependence of the dynamics. In fact, when the locally stable equilibrium coexists with a different kind of attractor, be it periodic or chaotic, each with its own basin of attraction, a typical situation of “corridor stability” occurs. In these cases, small perturbations (or shocks or historical accident) around the equilibrium are endogenously recovered by the dynamics of the system, whereas larger perturbations are amplified by the endogenous dynamics and lead to completely different (and nonstationary) disequilibrium dynamics. Thus, only an external control policy could force the system back to the original equilibrium. These dynamic scenarios clearly show the importance of a global analysis of nonlinear dynamical systems, which can often be performed only through heuristic methods obtained by a combination of analytical, geometrical and numerical tools. In fact, an analysis limited to a study of the local stability and bifurcations, based on the linear approximation of the model around the equilibrium points, sometimes may be quite incomplete and even misleading.

As stressed in Introduction and in the section dedicated to the model setup, the dynamic model proposed in this paper can be extended in several directions. Here, although we fully characterize the model in the parameters space, we assume that the levels of cooperative and/or aggressive behavior are fixed. The most relevant extension of this model that we leave open for future studies is related to endogenizing the levels of cooperation and/or aggression. Moreover, we would like to explore this model by considering nonlinear demand and/or cost functions or assuming different behavioral rules to decide next period production, such as best reply, gradient rules, LMA rule, etc. instead of Nash play assumed in this paper.

A further promising research direction consists of differentiating the interaction among firms, i.e., introducing a cooperation matrix instead of a simple cooperation coefficient. In other words, firm i may be assumed to include firm j profit inside its objective function according to the following network structure

$$\begin{aligned} \max S=\pi _{i}+\sum _{j}\gamma _{ij}\pi _{j} \end{aligned}$$

where \(\gamma _{ij}\in \left[ -1,1\right] \) represent the entries of a connection matrix between the network of firms in the oligopoly market. We leave all these possible extensions to future works on the subject.