Next Article in Journal
Casimir Effect Invalidates the Drude Model for Transverse Electric Evanescent Waves
Next Article in Special Issue
Phase Diagram for Social Impact Theory in Initially Fully Differentiated Society
Previous Article in Journal
Stabilizing Diamagnetic Levitation of a Graphene Flake through the Casimir Effect
Previous Article in Special Issue
Phase Transition in the Galam’s Majority-Rule Model with Information-Mediated Independence
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Mathematical Programming for the Dynamics of Opinion Diffusion

Department of Management, Ca’ Foscari University of Venice, 30123 Venice, Italy
*
Author to whom correspondence should be addressed.
Physics 2023, 5(3), 936-951; https://doi.org/10.3390/physics5030061
Submission received: 29 June 2023 / Revised: 2 August 2023 / Accepted: 10 August 2023 / Published: 11 September 2023

Abstract

:
The focus of this paper is on analyzing the role and the choice of parameters in sociophysics diffusion models by leveraging the potentialities of sociophysics from a mathematical programming perspective. We first present a generalised version of Galam’s opinion diffusion model. For a given selection of the coefficients in our model, this proposal yields the original Galam’s model. The generalised model suggests guidelines for possible alternative selection of its parameters that allow it to foster diffusion. Examples of the parameters selection process as steered by numerical optimisation, taking into account various objectives, are provided.

1. Introduction

Opinion diffusion is a fundamental aspect of human interaction, playing a pivotal role in the spread of innovations, and the emergence of consensus. Understanding how opinions spread and evolve within social networks is crucial for comprehending the emergence of collective behavior, the formation of public opinion, and the polarisation of societies.
Social sciences provide plenty of applications, where the importance of diffusion dynamics is studied and witnessed, such as marketing (see, e.g., [1,2,3]), agent-based modelling (see, e.g., [4]), and sociophysics, where the papers of Serge Galam serve as a guide for researchers (see, e.g., [5]).
Galam’s opinion diffusion model (see [6]) provides a framework for investigating and understanding the dynamics of opinion formation in social systems. Galam’s model sheds light on the mechanisms that drive opinion dynamics. In particular, Galam’s model describes the formation of collective opinion convergence processes using concepts from statistical physics. To analyse them, along with several generalisations of the model, the authors of the current paper have proposed the alternatives in Ref. [7] (showing some drawbacks when applying Galam’s model with a relatively small number of agents), and in Ref. [8] (where a novel subset of agents, namely the opinion leaders, are introduced, to duly represent a possible communication bias). Furthermore, additional literature covering a number of keynote issues can be found in Refs. [5,9,10] and the references therein.
The standard Galam’s model in Ref. [6] assumes that individuals in a group influence and are influenced by their peers. After several iterations within repeated group discussions, each agent may consequently influence the opinion diffusion. Galam’s stylised model simplifies the complexity of opinions by considering a binary state, where individuals can adopt either of two possible opinions, thus allowing a straightforward mathematical analysis of the diffusion process.
We suggest a generalisation of Galam’s model and then offer evidence in an optimisation framework that some of the diffusion parameters can be successfully adjusted in order to steer the diffusion process. Combining Galam’s model with specific Linear Programming (LP) formulations, we take into account both theoretical and numerical results concerning the role of the model’s parameters in order to better control the dynamics of the diffusion. Namely, we aim at maximising the probability that an opinion can spread among agents.
This paper is organised as follows. The essential characteristics of Galam’s model [6] are recapped in Section 2. Then, in Section 3, we present and discuss a generalisation of Galam’s model. The optimisation of the parameters of the new model via linear programming allows one to speed up opinion diffusion at a fixed step of the process: the optimisation problem is discussed in Section 4, while Section 5 provides numerical examples of its resolution. Section 6 discusses a dynamic programming extension of the optimisation problem that optimises the values of the parameters along the whole diffusion process, till convergence. Section 7 contains final remarks and concludes the paper.

2. Recap of Galam’s Model

This section reviews the foundational elements of Galam’s model [6]. Think of a group of N people (agents), each of whom may hold one of two opposing views (let us say, ‘+’ or ‘−’), regarding a specific issue. These agents meet, for several repeated rounds within subgroups of smaller cardinality, to converse and possibly change one anothers’ minds.
Each agent at round (time) t has a probability a k of being a member of a subgroup of size k, and L is the maximum allowed size of groups. In the original formulation of Galam’s model, the values a 1 , , a L are exogenous parameters such that
k = 1 L a k = 1 , a k 0 , k = 1 , , L .
Joining a group discussion at time t, any agent may, at the beginning of the subsequent time t + 1 , modify their position (e.g., ‘+’ becomes ‘−’ or vice versa) in accordance with a unique law: the majority rule. Indeed, all agents in a subgroup take the position of the majority in that group in the end of time t. The rule for reversing opinion is slightly biased in favour of the negative opinion ‘−’, since tie breaks are in favour of ‘−’. This may lead to a substantial bias in the case where the subgroup has an even number of members.
Calling P + ( t ) the probability that an agent opinion is ‘+’ at time t, the probability of opinion ‘−’ is then P ( t ) = 1 P + ( t ) . The probability P + ( t + 1 ) is estimated in Ref. [6] as
P + ( t + 1 ) = k = 1 L a k j = k 2 + 1 k C j k P + ( t ) j { 1 P + ( t ) } k j ,
where z is the largest integer less or equal to z, and C j k is the binomial coefficient, k j .
Let N + ( t ) ( N ( t ) = N N + ( t ) ) be the number of agents who at time step t have opinion ‘+’ (‘−’). Observe that for small values of N, setting P + ( 0 ) = N + ( 0 ) / N , where N + ( 0 ) is the number of agents thinking ‘+’ at time t = 0 , for any t 1 the quantity P + ( t ) may possibly differ from the ‘actual’ frequency of ‘+’, i.e., N + ( t ) / N (see [7]). Nevertheless, the estimated probability P + ( t + 1 ) always lies in the interval [ 0 , 1 ] being
j = k 2 + 1 k C j k P + ( t ) j { 1 P + ( t ) } k j < j = 0 k C j k P + ( t ) j { 1 P + ( t ) } k j = 1 .
A relevant role in the model is taken by the value P ^ + such that
  •      when P + ( 0 ) > P ^ + then lim t P + ( t ) = 1 ,
  •      when P + ( 0 ) < P ^ + then lim t P + ( t ) = 0 ,
  •      when P + ( 0 ) = P ^ + then P + ( t ) = P + ( 0 ) , t > 0 .
P ^ + constitutes the threshold value such that when N + ( 0 ) / N is greater than P ^ + , then all agents will eventually have opinion ‘+’. Conversely, when t all the agents will definitely think ‘−’ if N + ( 0 ) / N < P ^ + . The value P ^ + is the fixed point of Equation (1) and is called the killing point or tipping point of the model. In Figure 1, one can observe the dynamics described by relation (1), when the largest cardinality L of the subgroups takes integer values in the interval [ 3 , 20 ] and a k = 1 / L , for any k: for each of the 18 curves, the killing point is identified by the intersection with the bisector line other than the extreme points ( 0 , 0 ) and ( 1 , 1 ) . Observe that for small values of L no killing point appears (or equivalently, it coincides with the extreme point ( 1 , 1 ) ). Figure 2 shows a zoomed in perspective of Figure 1.

3. Capturing Additional Dynamics Using a Generalised Galam’s Model

According to model (1), a strict majority of members with positive opinion is a necessary and sufficient condition to have opinion ‘+’ for all the subgroup members.
Since the ultimate choice in a group is frequently the product of a discussion, rather than a simple tally of the two opposing viewpoints in the group, a rule that is so rigorous yet so straightforward could not correctly reflect the actual opinion dynamics in practice. As an illustration, think about the propagation of political opinions. The probability that everyone in the group would share the same view (e.g., +) at the close of a conversation may rise smoothly with the number of members who had that opinion prior to the meeting. As a second application, the reader may consider the audience of social networks, where the dynamics of information spreading was widely investigated in the dedicated literature (see, e.g., [11]).
Accordingly, we suggest to generalise Galam’s model (1) taking into account a softer dynamics of opinion change, i.e., without using rigid majority as a necessary and sufficient condition to shift the entire group to the same view. In particular, we assume that after the conversations, all agents in a group will have opinion ‘+’ with a probability α j k that is dependent on the size k of the group and the number j of agents that had opinion ‘+’ before the discussion. We use the following definition to model the relationship between the probabilities of having an opinion ‘+’ before (i.e., P + ( t ) ) and after (i.e., P + ( t + 1 ) ) discussion (see [12] for a preliminary version of the model):
P + ( t + 1 ) = k = 1 L a k j = 0 k α j k C j k P + ( t ) j { 1 P + ( t ) } k j .
Model (2) generalises model (1), since it is possible to select indeed the probabilities { α j k } that exactly replicate model (1) (see also Figure 3):
α j k = 0 if j < k 2 + 1 , 1 if j k 2 + 1 .
As mentioned, probabilities { α j k } should reasonably increase with the number j of ‘+’ in a subgroup, and decrease with respect to the size of the group k. In this regard, it is reasonable to expect for the probability α j k to become negligible when the number j of ‘+’ in a subgroup is relatively small (i.e., much lower than the strict majority), and to become close to 1 as the number of ‘+’ noticeably increases (i.e., higher than strict majority). In general, the probability that all agents in the subgroup will adopt the opinion ‘+’ is conceivably a function rising from zero to one as j increases. If one assumes that this function of j is linear, one may precisely define the probabilities α j k as (see Figure 4)
α j k = 0 , if j < k 2 + 1 + z j k h , 1 2 + j k 2 + 1 + z j k 2 h , if k 2 + 1 + z j k h j < k 2 + 1 + z j k + h , 1 , if j k 2 + 1 + z j k + h .
When z j k = h = 0 , the probabilities defined in Equation (4) are exactly the same as in Equation (3). The value of z j k in (4) represents a shift (either positive or negative) from the value k / 2 + 1 , while the slope of the ramp in Figure 4 is 1 / ( 2 h ) .
To better grasp the geometric insight behind the choice of the parameters in (4), let us consider the simple numerical example reported in Ref. [6], where L = 4 , a 1 = 0 , and a 2 = a 3 = a 4 = 1 / 3 (and h = z j k = 0 for all j and k). As reported in Ref. [6], the killing point ( K P ) lies in between 0.84 and 0.87 (see Figure 5). Then, in Figure 6, there is also the model (2) with the choice (4), after setting h = z j k = 0.5 for any j and k. One can immediately infer that the dynamics of Galam’s model [6] is definitely spoiled when the choice for the coefficients { α j k } in Equation (3) is replaced by Equation (4). Equivalently, even in case P + ( t ) = 1 (complete consensus among agents to think +) then the choice (4) imposes a regression towards the stable point given by the origin.
Hence, the presence of a killing point for Galam’s model seems to be strictly related to the expression (1), and introducing the coefficients { α j k } definitely also spoils the killing point. Moreover, one observes that, in case the majority rule is not explicitly applied in Equation (1), then the dynamics of the model is strongly altered.
Nevertheless, the model (2) retains a number of properties and can suggest fruitful results, following both of the next guidelines:
  • it provides clues on the perspective for studying the process of diffusion of information;
  • it may suggest proper ways to control information spreading among agents.
At least a couple of intriguing issues in applications can steer the choice of the coefficients { α j k } , ranging from small–medium- to large-scale (number of agents) applications:
  • One Period Analysis. One may assess values for { α j k } so that, considering at time t the probability P + ( t ) , one miximizes the probability P + ( t + 1 ) at time t + 1 . In this regard, the values { α j k } represent costs for steering the information among agents and fostering the positive opinion: the larger { α j k } (i.e., higher costs) the larger the probability to convey a group to opinion ‘+’. Certainly, the combination of the proper values for each of the coefficients { α j k } is strongly related to the value P + ( t ) , the probabilities { a k } , and the binomial coefficients C j k ;
  • Multi-Period Analysis. Similarly to the previous item, one may decide to select { α j k } such that, considering again at time t the probability P + ( t ) , one miximizes the probability P + ( T ) at time T > t , and compute the entire sequence P + ( t + 1 ) , P + ( t + 2 ) , , P + ( T ) of intermediate probabilities.
The last two scenarios can be declined in a variety of contexts, including production and marketing, where consumers play the role of agents and the aforementioned perspectives may be the answer to the question: what is (if any) the necessary extra effort in terms of advertising campaign, in order to promote a certain spread of the products or customers’ expectations on items? In this regard, the quantities { α j k } summarise the resulting effort, while from a mathematical programming perspective they represent unknowns to be assessed. This also suggests that a number of additional questions may arise adopting the model (2), mapping relevant practical instances where a tentative forecast is sought in order to plan the use of (possibly scarce) resources to control the process of diffusion of the information. For the sake of brevity, we itemise below some proposals that are representative but not exhaustive:
  • Feasibility Problem. Given the value of P + ( t ) and the target value P ¯ , one may determine a set of values for the coefficients { α j k } such that, starting at t from P + ( t ) , at time T > t , P + ( T ) P ¯ ;
  • Focus Group Problem. Given the value of P + ( t ) and the target value P ¯ and the time T > t , one may be interested to determine a set of values for the coefficients { α j k } such that α m ( k ) α j k α M ( k ) , where α m , α M are possible bounds, and P + ( T ) P ¯ . This scenario models a specific interest on those subgroups of cardinality k.

4. Single Period Maximisation of Diffusion

As from the analysis in Section 3, one of the possible proposals to couple the dynamics described through the model (2) with a single period optimisation framework, is given by the following LP scheme:
max α           k = 1 L a k j = 0 k α j k C j k P + ( t ) j { 1 P + ( t ) } k j ,
α j k α j + 1 k j = 0 , 1 , , k 1 ; k = 1 , , L ,
α j k α j k + 1 j = 0 , 1 , , k ; k = 1 , , L 1 ,
k = 1 L j = 0 k α j k b ( t ) ,
0 α j k 1 j = 0 , 1 , , k ; k = 1 , , L .
The last optimisation problem assumes that the value P + ( t ) is given, so that both the objective function and the constraints are linear in the set { α j k } . Though the meaning associated with the objective function is relatively clear, for the constraints some clarifications seem necessary:
  • the constraints in Equation (6) state that for a given dimension k of a subset, larger values of the number of agents thinking ‘+’ imply a larger probability α j k ;
  • similarly, in the constraints in Equation (7), when the number of agents thinking ‘+’ remains constant, the larger the set cardinality (i.e., k), the smaller the probability α j k ;
  • the constraint in Equation (8) expresses the overall cost (i.e., it is a budget constraint) allowed to assess the probabilities { α j k } , at time t;
  • since the quantities { α j k } need to represent probabilities, they are required to fulfill also the constraint (9).
In order to avoid either infeasible or straightforward solutions for the optimisation Problems (5)–(9), the following lemmas gives some indications on the choice of the parameter b ( t ) , for any t (for a proof, see [12]).
Lemma 1.
Let one be given the linear Programs (5)–(9) with the choice ( 1 k L and 0 j k )
α j k = 0 , f o r a n y j < k 2 + 1 , 1 , f o r a n y j k 2 + 1 .
Then, relations (10) satisfy the constraints (6), (7) and (9). Moreover, if Equation (10) also satisfies Equation (8), then the value of the objective function in Equation (5) coincides with P + ( t + 1 ) in Equation (1).
Note that Lemma 1 gives a straightforward idea of the fact that the solution of the linear Programs (5)–(9) is substantially nothing else but a generalisation of Equation (1). Furthermore, the next result will give a precise indication on the possible values for the budget b ( t ) in Equation (8).
Lemma 2.
Let one be given the optimisation problems (5)–(9) and let { α j k } be assigned as in Equation (10), for any 1 k L and 0 j k . Then,
k = 1 L j = 0 k α j k = L 2 2 + L 2 , w h e n L i s e v e n , L 1 2 2 + L , w h e n L i s o d d .
Note that the right sides of Equation (11) explicitly give some hints for the selection of the parameter b ( t ) in Equation (8), both whether in case L it is even or it is odd.
Regarding some technicalities associated with the solution of the optimisation problems (5)–(9), one observes that it is a continuously differentiable problem, where all the functions are linear. Hence, it is a convex problem, so that the set of all its solutions (possibly an empty set or a singleton) is a convex set. This implies that for any given pair of its solutions, all the points in the segment joining them will be solutions, too. Moreover, being a linear program, all its (possible) solutions will lie on vertices of the feasible set, and not in the interior of the feasible set. As is known, this makes its solution relatively simple (throughout any solver based on the simplex method) and achievable in polynomial time. Hence, large-scale instances are well tractable and allow for a scalable solution in a number of applications with a great number of agents (e.g., problems involving social media or large social groups).
We complete this section highlighting that one further generalisation of the linear programs (5)–(9) suggests to disaggregate the budget constraint and to replace the inequality (8) by the set of constraints,
j = 0 k α j k b k ( t ) , k = 1 , , L .
Observe that the value b k ( t ) , for any k, represents a budget devoted to possibly affect the solution after working uniquely on the subsets of cardinality k. This increases the flexibility of the model without compromising its overall complexity (being the resulting model yet a linear program).

5. Preliminary Numerical Experience

This Section is devoted to provide a numerical experience where the potentialities of the formulations (5)–(9) are exploited. In this regard, the investigation here is limited to a couple of meaningful instances. The first one is a small-scale (number of unknowns) problem, while the second one attempts to scale the first’s by 100.

5.1. Small-Scale Instance

Regarding the value of the coefficients in (5)–(9), we consider for the small-scale instance the following setting:
L = 10 , { a k } = { 0.1 , 0 , 0.15 , 0 , 0.3 , 0 , 0.3 , 0 , 0.15 , 0 } , P + ( t ) = 0.65 .
The above choice corresponds to possibly allow only subgroups of dimensions 1, 3, 5, 7, and 9, with probabilities that include null values and possibly repeated values. Furthermore, we set the initial percentage of the population thinking ‘+’ to P + ( t ) = 65 % . Finally, in order to avoid an empty feasible set in Equations (5)–(9) we also selected, respectively, the values b ( t ) = 5 and b ( t ) = 10 , based on Lemma 2. The outcomes of our numerical experience are obtained using the solver CPLEX 20.1.0.0 available on the NEOS Server platform [13]. Let us remark that CPLEX is definitely among the best and faster solvers for LP, along with the alternative solver BARON. Our numerical experience on the above two instances is summarised as follows:
  • b ( t ) = 5 : the problems (5)–(9) is coded using AMPL (A Mathematical Programming Language; see [14,15]). The presolve tool in CPLEX eliminated 65 constraints from the formulation, so that the simplified problem was reduced to 65 variables and 110 linear inequality constraints. Regarding the final solution, CPLEX performed 13 dual simplex iterations (i.e., iterations of a method for LP which represents the counterpart of the simplex method, after exploiting the duality theory), with an overall time for the solution not larger than a couple of seconds. Finally, the value of P + ( t + 1 ) found by the solver is
    P + ( t + 1 ) = 0.245428625
    with the set of variables ( α j k ) given by
    k = 1k = 2k = 3k = 4k = 5k = 6k = 7k = 8k = 9k = 10
    j = 00000000000
    j = 11000000000
    j = 2.000000000
    j = 3..2/32/32/300000
    j = 4...2/32/300000
    j = 5....2/300000
    j = 6.....00000
    j = 7......0000
    j = 8.......000
    j = 9........00
    j = 10.........0
  • b ( t ) = 10 : again the problem (5)–(9) is coded using AMPL and the presolve tool in CPLEX eliminated 65 constraints from the formulation, so that again the simplified problem was reduced to 65 variables and 110 linear inequality constraints. CPLEX performed 18 dual simplex iterations with an overall time for computation similar to the case where it is b ( t ) = 5 . Finally, the value of P + ( t + 1 ) found by the solver is
    P + ( t + 1 ) = 0.4392275888
    with the set of variables ( α j k ) given by the matrix,
    k = 1k = 2k = 3k = 4k = 5k = 6k = 7k = 8k = 9k = 10
    j = 01000000000
    j = 11000000000
    j = 2.000000000
    j = 3..11100000
    j = 4...110.2857140.285714000
    j = 5....10.2857140.285714000
    j = 6.....0.2857140.285714000
    j = 7......0.285714000
    j = 8.......000
    j = 9........00
    j = 10.........0
    Note that while allowing a larger value of the budget (for example, b ( t ) = 10 ), the solver is able to select a larger number of nonzero unknowns, so that the final value of P + ( t + 1 ) is almost doubled with respect to the case b ( t ) = 5 . In actual applications, this implies that, in order to obtain almost twice the effect of the previous case, on this instance twice the value of the budget must be allowed.

5.2. Large-Scale Instance

Here, we focus on the same instance of Section 5.1, where conversely, a larger number of unknowns is considered. The novel setting of the parameters for the solver are given as follows:
L = 1000 a k = 1 / L , k = 1 , , L , P + ( t ) = 0.65 .
The above choice corresponds to possibly allow all the subgroups with the same probability, and again the initial percentage of the population thinking ‘+’ is equal to P + ( t ) = 65 % . Similarly to the small-scale instance, we consider two values for the budget, b ( t ) = 50 and b ( t ) = 100 . The computation is again performed adopting the solver CPLEX 20.1.0.0 on the NEOS Server [13]. The outcomes of the resulting two instances are summarised as follows:
  • b ( t ) = 50 : the problems (5)–(9) is coded using AMPL and the presolve tool in CPLEX eliminated 501,500 constraints from the formulation. The overall simplified problem contained 501,500 variables and 1,001,000 linear inequality constraints. CPLEX performed 192 dual simplex iterations with a time of computation smaller than 20 s, showing that the linear model can well scale the time of computation. The final value of P + ( t + 1 ) found by the solver is
    P + ( t + 1 ) = 0.01061571566
    with the set of variables ( α j k ) given by
    k = 1k = 2k = 3k = 4k = 5k = 6k = 7k = 8k = 9k = 10k = 11k = 12k ≥ 13
    j = 01000000000000
    j = 11110000000000
    j = 2.111100000000
    j = 3..11111000000
    j = 4...1111100000
    j = 5....111111000
    j = 6.....11111100
    j = 7......111110.83330
    j = 8.......11110.83330
    j = 9........1110.83330
    j = 10.........110.83330
    j = 11..........10.83330
    j = 12...........0.83330
    j = 13............0
    j = 14............0
    j > 14............0
  • b ( t ) = 200 : the outcomes are quite similar to the case where b ( t ) = 50 , with 501,500 indicating the overall number of variables and 1,001,000 the linear inequality constraints. CPLEX performed 30,854 simplex iterations with a time of computation smaller than 20 s, showing again that the linear model can well scale the time of computation. The final value of P + ( t + 1 ) found by the solver was now
    P + ( t + 1 ) = 0.0242061448
    and we do not report the value of the unknowns for the sake of simplicity.
Observe that in both the last two examples, given that subgroups are allowed to be quite large, despite relatively high budget values, the levels reached by the probabilities P + ( t + 1 ) are quite low.
As a general achievement, we can immediately describe the pattern of the nonzero unknowns which was respected in all four numerical tests reported above. In particular, we can prove that the solution of the formulations (5)–(9) only fills the principal submatrix of unknowns of order h × h , depending h on the value of the budget parameter along with the number of possible subgroups L. Finally, this also allows one to straightforwardly assess a number of null unknowns and possibly reduce the complexity of the overall formulation.

6. A Multi-Period Model

This Section considers a multi-period reformulation of the LP (5)–(9), in order to further generalise the model (2). In particular, in place of the single-period model (5)–(9), where at time step t the quantity P + ( t + 1 ) is maximised starting from P + ( t ) , we can consider a multi-period approach with the ultimate goal of maximising P + ( T + 1 ) , where T is the time horizon. The latter approach is summarised in the following Nonlinear Program (NLP):
max α         P + ( T + 1 ) ,
P + ( t + 1 ) = k = 1 L a k j = 0 k α j k ( t ) C j k P + ( t ) j ( 1 P + ( t ) ) k j , t = 1 , , T ,
α j k ( t ) α j + 1 k ( t ) t = 1 , , T ; j = 0 , 1 , , k 1 ; k = 1 , , L ,
α j k ( t ) α j k + 1 ( t ) t = 1 , , T ; j = 0 , 1 , , k ; k = 1 , , L 1 ,
k = 1 L α j k ( t ) b j ( t ) t = 1 , , T ; j = 0 , 1 , , k ,
0 α j k ( t ) 1 t = 1 , , T ; j = 0 , 1 , , k ; k = 1 , , L .
The above NLP includes the unknowns
α j k ( t ) , t = 1 , , T ; j = 0 , 1 , , k ; k = 1 , , L ,
which represent a larger number of variables with respect to Equations (5)–(9). This implies that the larger the time horizon T, the larger the number of unknowns of the resulting problem formulation. Moreover, as already remarked, Equations (12)–(17) represents an NLP, which in general increases the difficulty of its solution. In particular, the nonlinearities in Equation (13) might yield a nonconcave overall maximisation problem, which implies that a certain number of local maxima (which are not global) might arise. In addition, unlike Equations (5)–(9), the feasible set of Equations (12)–(17) is no longer a polyhedron, so that the final solutions are not necessarily located on the boundary of the feasible set. As a consequence, the choice of the starting value P + ( 1 ) in Equation (13) becomes a key factor for at least a couple of reasons:
  • the sequence { P + ( t ) } strongly depends on P + ( 1 ) , in a similar fashion of the single-period formulation (5)–(9);
  • the choice of { P + ( t ) } strongly affects the local maximum provided by the solver adopted for Equations (12)–(17).
Regarding the constraints in Equation (13), observe that the constraints just state a recursion for the function in Equation (2), at each time step. Moreover, the constraints in Equations (14), (15), and (17) have a similar meaning of the constraints in Equations (6), (7), and (9), for the single-period formulation. Finally, the budget constraints in Equation (16) have a possible double formulation, due to the multi-period scheme.
Proposition 1.
Let the sequence { α j k ( t ) } be a global solution of Equations (5)–(9), for any t = 1 , , T . Then, { α j k ( t ) } t = 1 , , T is a global solution of Equations (12)–(17).
Proof. 
Observe that from relation (2), one has the following equalities:
P + ( t + 1 ) P + ( t ) = t = 2 T + 1 k = 1 L a k j = 0 k α j k ( t ) C j k P + ( t ) j ( 1 P + ( t ) ) k j k = 1 L a k j = 0 k α j k ( t 1 ) C j k P + ( t 1 ) j ( 1 P + ( t 1 ) ) k j = t = 2 T + 1 Δ P + ( t ) .
Thus, considering that P + ( 1 ) is a constant value, the maximisation in Equation (12) is equivalent to the maximisation,
max t = 2 T + 1 Δ P + ( t ) .
Moreover, observe that if P + ( t ) is given, Δ P + ( t + 1 ) depends only on the unknowns,
α j k ( t ) , j = 0 , , k ; k = 1 , , L ,
and the maximisation in Equation (5) is equivalent to
max α Δ P + ( t + 1 ) .
Now, suppose the sequence { α j k ( t ) } j = 0 , , k ; k = 1 , , L is a solution of Equations (5)–(9); then, it also satisfies Equation (13) for t, as well as Equation (14)–(17). Thus, if the sequences,
α j k ( t ) j = 0 , , k ; k = 1 , , L t = 1 , , T
solve the problem (5)–(9), for t = 1 , , T , then by Equation (18), the values in Equation (19) are a feasible point of Equations (12)–(17), satisfying also Equation (18), i.e., Equation (19) is a solution of Equations (12)–(17).  □
Lemma 3.
Let α j k ( t ) be a global solution of Equations (5)–(9), for any t { 1 , 2 , , T } , where the inequality (8) is replaced by the nonlinear inequality,
ϕ t k = 1 L α j k ( t ) b j ( t ) , ϕ t : ( L + 1 ) ( L + 2 ) 2 1 .
Then, α j k ( t ) t = 1 , , T is also a global solution of Equations (12)–(17), with Equation (16) replaced by
ϕ t k = 1 L α j k ( t ) b j ( t ) , t = 1 , , T ; j = 0 , , k .
Proof. 
The proof trivially follows the guidelines of the proof for Proposition 1. □
Lemma 4.
Let α j k ( t ) be a global solution of Equations (5)–(9), for any t { 1 , 2 , , T } , where the inequality (8) is replaced by the nonlinear inequality,
Φ k = 1 L α j k ( t ) b j ( t ) , Φ : ( L + 1 ) ( L + 2 ) 2 1 ,
and Φ is any convex function. Then, α j k ( t ) t = 1 , , T is also a feasible solution of Equations (12)–(17), with Equation (16) replaced by
Φ t = 1 T λ t k = 1 L α j k ( t ) b j ( t ) , j = 0 , , k ; 0 λ t 1 ; t = 1 T λ t = 1 ,
being b j t = 1 T λ t b j ( t ) .
Proof. 
The convexity of Φ and the hypotheses imply
Φ t = 1 T λ t k = 1 L α j k ( t ) t = 1 T λ t Φ k = 1 L α j k ( t ) t = 1 T λ t b j ( t ) b j ,
so that α j k ( t ) t = 1 , , T also satisfy Equation (21). The rest of the proof follows the guidelines of the proof for Proposition 1. □
Remark 1.
Note that from Lemma 4, if the sequences α j k ( t ) , t = 1 , , T , are global solutions of Equations (5)–(9) for t = 1 , , T , then the sequence α j k ( t ) t = 1 , , T is a feasible solution but possibly not a global solution of Equations (12)–(17), with Equation (16) replaced by
Φ t = 1 T λ t k = 1 L α j k ( t ) b j ( t ) , j = 0 , , k ; 0 λ t 1 ; t = 1 T λ t = 1 ,
and b j t = 1 T λ t b j ( t ) .

A Numerical Example

We provide here a preliminary numerical example, where the solution of the formulation (12)–(17) is considered, and the budget constraints (16) are replaced by the unique one (which aggregates possible different budgets at the epoches 1 , , T ):
k = 1 L j = 0 k t = 1 T α j k ( t ) budget .
Since the multi-period formulation is indeed nonlinear and possibly nonconvex, we preferred to preliminarily investigate its solutions through a renowned nonlinear (NLP) solver from the literature. In particular, we adopted Knitro 13.2.0 from the NEOS Server [13]. Nevertheless, we are aware that since the problem might be nonconvex (unless the last property is explicitly proved to hold for Equations (12)–(17)), the choice of the starting point by the NLP solver may be crucial, to both outreach an accurate final solution and to reduce the overall computational burden. The parameters of the two instances considered are summarised as follows (respectively):
L = 10 a k = 1 / L , k = 1 , , L , P + ( t ) = 0.65 , T = 6 , budget = 20 ,
and
L = 10 , a k = 1 / L , k = 1 , , L , P + ( t ) = 0.65 , T = 6 , budget = 100 .
In what follows, we briefly show that, due to the smaller budget (i.e., 20 < 100 ) in the first scenario, it yields worse results (i.e., a smaller value of P + ( T ) ) with respect to the second scenario. Indeed, adopting the first set of parameters for our multi-period formulation, Knitro presolver was able to eliminate 403 constraints and 1 variable, so that the final formulation included 395 variables and 660 constraints. Moreover, for the probabilities { P + ( t ) } , we obtain the following nonmonotone sequence (due to the nonlinearity of the multi-period model)
P + ( 1 ) = 0.65 , P + ( 2 ) = 9.21406 × 10 5 , P + ( 3 ) = 1.51607 × 10 5 , P + ( 4 ) = 2.37203 × 10 5 , P + ( 5 ) = 2.06585 × 10 5 , P + ( 6 ) = 0.499547 .
Conversely, adopting the second set of parameters for our multi-period formulation, Knitro presolver was again able to eliminate 403 constraints and 1 variable, yielding for the probabilities the values
P + ( 1 ) = 0.65 , P + ( 2 ) = 0.140855 , P + ( 3 ) = 0.0613564 , P + ( 4 ) = 0.0521609 , P + ( 5 ) = 0.0573217 , P + ( 6 ) = 1 .
Again, one observes a nonmonotone behaviour for the sequence { P + ( t ) } , due to nonlinearities of the multi-period model. For the sake of completeness let us remark that the solution of the last two nonlinear instances by Knitro required no more than 10 s each.

7. Conclusions

In this paper, we studied the problem of possibly enhancing standard dynamics from sociophysics (namely the model (1)), using a mathematical programming perspective. We were interested about following a couple of lines of research. First, we coupled the model (1) with an LP scheme in order to possibly control the probability P + ( t + 1 ) for a given probability P + ( t ) , after leveraging the unknowns α j k in Equation (2). The final value of these variables gives a measure of the effort which is required to steer the diffusion process of the opinion ‘+’ for the subgroups of cardinality k. The dynamics are strongly based on the idea of possibly maximising P + ( t + 1 ) . A numerical experience is also reported in this regard, showing that the computational effort for solving LPs associated with this first proposal is definitely modest, even in the case where the solution of large instances is sought.
As a second task, we also extended the (one period) LP formulations to a more general multi-period formulation, and in this case it was necessary to compute the sequence { P + ( t + 1 ) , P + ( t + 2 ) , , P + ( T ) } for a given value of P + ( t ) and for a given time horizon, T. Some theoretical properties showing a connection between the solutions of both our proposals have been given, though much work yet is required, including a broad numerical experience also in the multi-period case.

Author Contributions

Conceptualization, A.E., G.F. and D.F.; Methodology, A.E., G.F. and D.F.; Software, A.E., G.F. and D.F.; Validation, A.E., G.F. and D.F.; Writing—original draft, A.E., G.F. and D.F.; Writing—review & editing, A.E., G.F. and D.F. All authors have read and agreed to the published version of the manuscript.

Funding

G.F. wishes to thank the CNR-INM—Institute of Marine Engineering, Italian National Research Council, and the GNCS (Gruppo Nazionale per il Calcolo Scientifico) group within INdAM (Istituto Nazionale di Alta Matematica “Francesco Severi”), Italy, for their support.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Bass, F.M. A new product growth for model consumer durables. Manag. Sci. 1969, 15, 215–227. [Google Scholar] [CrossRef]
  2. Moore, G.A. Crossing the Chasm: Marketing and Selling Disruptive Products to Mainstream Customers; Harper Business: New York, NY, USA, 2014; Available online: https://archive.org/details/crossingthechasm_202002/mode/2up (accessed on 5 August 2023).
  3. Rogers, E.M. Diffusion of Innovations; The Free Press: New York, NY, USA, 2003. [Google Scholar]
  4. Schelling, T.C. Dynamic models of segregation. J. Math. Sociol. 1971, 1, 143–186. [Google Scholar] [CrossRef]
  5. Galam, S. Sociophysics: A review of Galam models. Int. J. Mod. Phys. C 2008, 19, 409–440. [Google Scholar] [CrossRef]
  6. Galam, S. Modelling rumors: The no plane pentagon french hoax case. Phys. A 2003, 320, 571–580. [Google Scholar] [CrossRef]
  7. Ellero, A.; Fasano, G.; Sorato, A. A modified Galam’s model for word-of-mouth information exchange. Physica A 2009, 388, 3901–3910. [Google Scholar] [CrossRef]
  8. Ellero, A.; Fasano, G.; Sorato, A. Stochastic model for agents interaction with opinion–leaders. Phys. Rev. E 2013, 87, 042806. [Google Scholar] [CrossRef] [PubMed]
  9. Galam, S. Sociophysics. A Physicist’s Modeling of Psycho-Political Phenomena; Springer Science + Business Media, LLC: New York, NY, USA, 2012. [Google Scholar] [CrossRef]
  10. Galam, S.; Jacobs, F. The role of inflexible minorities in the breaking of democratic opinion dynamics. Physica A 2003, 381, 366–376. [Google Scholar] [CrossRef]
  11. Backstrom, L.; Huttenlocher, D.; Kleinberg, J.; Lan, X. Group formation in large social networks: Membership, growth, and evolution. In Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Philadelphia, PA, USA, 20–23 August 2006; pp. 44–54. [Google Scholar] [CrossRef]
  12. Ellero, A.; Fasano, G.; Favaretto, D. An application of Linear Programming to sociophysics models. In Proceedings of the Modeling and Analysis of Complex Systems and Processes, Venice, Italy, 22–24 October 2020; pp. 23–33. Available online: https://ceur-ws.org/Vol-2795/ (accessed on 5 August 2023).
  13. NEOS Server: State-of-the-Art Solvers for Numerical Optimization. Available online: https://neos-server.org/neos (accessed on 5 August 2023).
  14. Fourer, R. Modeling languages versus matrix generators for linear programming. ACM Trans. Math. Softw. 1983, 9, 143–183. [Google Scholar] [CrossRef]
  15. Fourer, R.; Gay, D.M.; Kernighan, B.W. AMPL: A Modeling Language for Mathematical Programming; Duxbury Press/Thomson Co.: Belmont, CA, USA, 2002; Available online: https://vanderbei.princeton.edu/307/textbook/AMPLbook.pdf (accessed on 5 August 2023).
Figure 1. Dynamic curves described by relation (1), when the largest cardinality L of the subgroups takes integer values in the interval [ 3 , 20 ] and a k = 1 / L , for any k.
Figure 1. Dynamic curves described by relation (1), when the largest cardinality L of the subgroups takes integer values in the interval [ 3 , 20 ] and a k = 1 / L , for any k.
Physics 05 00061 g001
Figure 2. Dynamic curves described by relation (1), when the largest cardinality L of the subgroups takes integer values in the interval [ 3 , 20 ] and a k = 1 / L , for any k: magnification of the area of intersections among curves.
Figure 2. Dynamic curves described by relation (1), when the largest cardinality L of the subgroups takes integer values in the interval [ 3 , 20 ] and a k = 1 / L , for any k: magnification of the area of intersections among curves.
Physics 05 00061 g002
Figure 3. For a given 1 k L , the model (3) considers the above step-shaped choice for the coefficients { α j k } . In particular, if j < k / 2 + 1 then α j k = 0 , otherwise α j k = 1 , so that this choice corresponds exactly to obtain the original Galam’s model (1).
Figure 3. For a given 1 k L , the model (3) considers the above step-shaped choice for the coefficients { α j k } . In particular, if j < k / 2 + 1 then α j k = 0 , otherwise α j k = 1 , so that this choice corresponds exactly to obtain the original Galam’s model (1).
Physics 05 00061 g003
Figure 4. For a given 1 k L , the model (4) considers the above piecewise-linear choice for the coefficients { α j k } , where z j k represents a shift with respect to the abscissa k / 2 + 1 , and 1 / ( 2 h ) is the slope of the ramp.
Figure 4. For a given 1 k L , the model (4) considers the above piecewise-linear choice for the coefficients { α j k } , where z j k represents a shift with respect to the abscissa k / 2 + 1 , and 1 / ( 2 h ) is the slope of the ramp.
Physics 05 00061 g004
Figure 5. The numerical example from Ref. [6], with L = 4 , a 1 = 0 , a 2 = a 3 = a 4 = 1 / 3 and probabilities (3).
Figure 5. The numerical example from Ref. [6], with L = 4 , a 1 = 0 , a 2 = a 3 = a 4 = 1 / 3 and probabilities (3).
Physics 05 00061 g005
Figure 6. The numerical example from Ref. [6], with L = 4 , a 1 = 0 , a 2 = a 3 = a 4 = 1 / 3 but probabilities (4).
Figure 6. The numerical example from Ref. [6], with L = 4 , a 1 = 0 , a 2 = a 3 = a 4 = 1 / 3 but probabilities (4).
Physics 05 00061 g006
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Ellero, A.; Fasano, G.; Favaretto, D. Mathematical Programming for the Dynamics of Opinion Diffusion. Physics 2023, 5, 936-951. https://doi.org/10.3390/physics5030061

AMA Style

Ellero A, Fasano G, Favaretto D. Mathematical Programming for the Dynamics of Opinion Diffusion. Physics. 2023; 5(3):936-951. https://doi.org/10.3390/physics5030061

Chicago/Turabian Style

Ellero, Andrea, Giovanni Fasano, and Daniela Favaretto. 2023. "Mathematical Programming for the Dynamics of Opinion Diffusion" Physics 5, no. 3: 936-951. https://doi.org/10.3390/physics5030061

Article Metrics

Back to TopTop