#### Abstract

Locational marginal prices (LMPs) are influenced by various factors in the electricity market; knowing the sensitivity information of LMPs is very important for both the purchase and the consumer. This paper presents a united method to compute the sensitivities of LMPs based on the optimal power flow (OPF). The Karush-Kuhn-Tucher (KKT) system to solve LMPs can be transferred into an equation system by using an NCP function, and then by using the properties of the derivative of the semismooth NCP function, this paper provides a simultaneous obtention of the sensitivities of LMPs with respect to power demands, the cost of production, voltage boundary, and so forth. Numerical examples illustrate the concepts presented and the proposed methodology by a 6-bus electric energy system. Some relevant conclusions are drawn in the end.

#### 1. Introduction

In electricity market, LMPs can reflect the actual cost of electricity supply from both space and time, and it has governed the electricity business. It has now been implemented or scheduled for implementation in U.S. energy regions in the midwest (MISO), New England (ISO-NE), New York (NYISO), the Mid-Atlantic states (PJM), California (CAISO), the southwest (SPP), and Texas (ERCOT) [1–4]. China is building east power market with this pricing mechanism. Therefore, more and more researchers began to focus on the pricing mechanisms [1–6].

As is well known, LMPs are dual variables arising in OPF problems, conditional on a given network topology. Specifically, they are the shadow prices corresponding to the nodal balance constraints that impose Kirchhoffs circuit law at each bus. In the short run, when fuel prices and other supply conditions are relatively stable, load is one of the most significant factors driving the determination of LMPs. So within an optimal power flow (OPF) framework, LMPs are the sensitivities (dual variables) associated with the active power balance equations [4, 7, 8]. When LMPs govern the electricity business, a fundamental question is how LMPs change as parameters change. These dual variables might require adjustments to be interpreted as LMPs within some market clearing frameworks, and the parameters which influence LMPs in the power market include the load demand, production costs, and voltage boundary.

The changes in LMPs as parameters vary provide insight on the functioning and behavior of the electric energy system. This sensitivity information might help producers and consumers to establish their respective bidding strategies and the regulator to assess the degree of competitiveness of the electricity market. However, we only consider the local sensitivities which provide information for small changes, not for large changes in this paper.

In the literature, sensitivity calculations are generally related to the power flow problem [9, 10] or the OPF problem involving sensitivities of the objective function and the primal variables with respect to parameters [8]. In [7], the sensitivities of certain primal variables (power injections) with respect to certain dual variables (LMPs) are calculated. But the objective function is considered linear and only equality constraints are taken into account. References [6, 8] provide a perturbation approach to sensitivity analysis similar to the one presented in [11, 12] and apply it to the OPF problem. Within a vertically integrated electric utility framework, paper [13] uses the results of [8] to carry out a valuation of the transmission impact in a resource bidding process. Reference [14] builds a system model to quantitatively analyze the effects of various factors such as load uncertainty, thermal limit, capacity reserve, market power, and their interactions on the mean and standard deviation of the LMPs. Reference [15] gives a global analysis of system variable sensitivities when LMPs are derived from DCOPF solutions for day-ahead energy market. All the existing work only considered the LMPs sensitivities with respect to several variables in different cases. However, in this paper, we will calculate the sensitivities of all dual variables with respect to all parameters of the problem in a general nonlinear programming case including equality and inequality constraints. We use the results reported in [16] and give a new expression to calculate the sensitivities based on the semismooth KKT system.

The construction of this paper is as follows. In Section 2, we give the marginal price mathematical model and define the sensitivity of the LMPs based on OPF. In Section 3, we transfer the KKT system of the OPF problem into a system of semismooth equations and present the local sensitivity formulas for both the cases of regular nondegenerate and the cases of regular degenerate solutions. In Section 4, numerical examples are given by an electricity system with 6 nodes. In Section 5, we get some conclusions of this paper.

#### 2. Mathematical Model of the LMPs Based on OPF

In a competitive electricity market, the settlement between the independent system operator (ISO) and the participants is based on locational marginal prices (LMPs). LMP at a given node of a power system is the sensitivity of operational cost to the change in load at that node, and it is calculated using an optimal power flow (OPF) program. When LMPs are used for settlement of transactions, consumers are charged more than the average cost of production of electricity due to the nonlinear nature of the power flow and the constraints imposed by the OPF. So mathematical model to calculate the LMPs is as follows [4].

##### 2.1. The Objective Function (Generation Cost Function)

In electricity market, in addition to the active production costs, the production cost of the reactive power should also be considered in this model, so the active and reactive power cost function with a quadratic function curve is where is the active power generation, is the reactive power generation, is the node voltage amplitude, is the phase angle, is the active load demand, is the reactive load demand, and indicates all other parameters associated with the network and generator.

##### 2.2. Equality Constraints (The Power Balance Equation)

Imposed by the OPF, we should consider the following equality constraints: where (2) are active and reactive power flow equations.

##### 2.3. The Inequality Constraints

(a)Line flow constraints: where means the transmission capacity on the line is a composite power value on the line , represents the total number of nodes, and is the related node connecting node .(b)Capacity constraints: (c)Voltage constraints: (d)Voltage angles constraint:

For the sake of simplicity, it is assumed that all the needs are not resilient. In order to derive the sensitivities of problem (1)–(6), we transfer it into the following simply nonlinear programming problems (NLPP): where , , includes all the optimal variables , , , , and includes all the parameters , , .

#### 3. Derivation of the Sensitivity Formulas

In this section, we derive local sensitivity formulas of the LMPs. Note that the LMPs are the Lagrange multiplier vectors for the active power flow equations. So we can derive the KKT system of problem (7)–(9) firstly.

##### 3.1. Semismooth Equations Equivalent to the KKT Systems of Problem

Let be a local optimal solution, and we assume the linear independent constraint qualification is satisfied. From the first-order optimal condition, there exists a pair of vectors and satisfying the following KKT systems [11, 12]: where and are the KKT multipliers, also known as the dual variables.

To obtain the sensitivity analysis, we perturb or modify , , , , in such a way that the KKT systems (10) still hold. Thus, we will usually differentiate the objective function (7) and the KKT systems (10) directly. But in this kind of method, one must deal with a lot of compositions of equalities and inequalities in the case of regular degenerate solution (in this case, there is at least one dual variable ), and the calculation and analysis become much complex. So in this paper, we will transfer the KKT systems (10) into a system of semismooth equations by using an NCP function; then, we can get the united formulas to calculate the local sensitivity for both the case of regular nondegenerate solution (in this case, the dual variable ) and the case of regular degenerate solution by using the semismooth properties.

Let be Fischer-Burmeister function (see [17]); the definition is It is easy to see that if and only if A function with this property is called an NCP function. For the sake of convenience, we denote the Fischer-Burmeister function as FB function. From [17], we know that the FB function is differentiable everywhere except at the point and it is semismooth at . The definition and properties of semismooth function can be found in [18].

By using the FB function, we transfer the KKT system (10) into a system of semismooth equations: where

##### 3.2. Local Sensitivity Formulas for the Case of Regular Nondegenerate Solution

In this case, the dual variable . From the properties of the FB function, we know that is continuously differentiable. So we differentiate the object function (7) and the KKT system (10) as follows: where , ,

Denote In matrix form, the system (15) can be written as

Obviously, (18) is a system of linear equation, so we can get all the sensitivities from (18) easily. Furthermore, (18) can be written as where , are

It is obvious that is a square matrix and we can easily get the sensitivities of LMPs with respect to all parameters according to formula (19). The condition to ensure the application of (19) can be seen in [16].

##### 3.3. Local Sensitivity Formulas for the Case of Regular Degenerate Solution

In this case, there exists the case of , . So is not differentiable but semismooth at this time. From the semismooth properties of we know that if the changes of or (denoted by or ) are not equal to zero, we have where , , , and .

So in the case of regular degenerate solution, if or is not equal to zero and we aim to perturb , , , , in such a way that the KKT systems still hold, we have where

Though (23) is not a system of linear equations, we can get the corresponding values of , , according to the adjustment of the active inequality with . We consider two cases as follows.(i)If we want this inequality to remain active, we take , , so we get , , and .(ii)If we want this inequality to become inactive, we can take , , and get , , and .

So we can also get linear equations to calculate all the sensitivities for the case of regular degenerate solution according to the adjustment of the active inequality with as follows: where and represent the partial derivatives with respect to and of all the active inequalities which include the corresponding inequalities with but are required to remain active. is the unit matrix whose cardinality is equal to the number of all inactive inequalities which include the corresponding inequalities with but are required to become inactive. The condition to ensure the application of (25) can be seen in [16].

Expressions (19) and (25) allow deriving sensitivities of the LMPs with respect to active and reactive power demands. The simplicity of expressions (19) and (25) should be noted. The computational complexity of building matrices and evaluating expressions (19) and (25) is moderate even for large scale electric energy systems.

#### 4. Numerical Example

The 6-bus electric energy system shown in Figure 1 is taken from [6]. The OPF model of this problem is where , , , , , , are the linear cost coefficient of generator , the quadratic cost coefficient of generator , the element of the real part of the admittance matrix, the element of the imaginary part of the admittance matrix, the charging susceptance of line , and the transmission capacity of line , respectively. The optimal solution of the OPF above is illustrated in Table 1. Other data are given in Tables 2 and 3, respectively, where the unit of is MW, the unit of is MVAr, the unit of is p.u., the unit of is rad, and the unit of is S/MWh. And and .

Because the optimal solution is known and it is a regular nondegenerate solution, we can get the sensitivities of the LMPs of the active load demand by using formula (19): where is row and is column.

As can be seen from the above data, sensitivity coefficients of the LMPs with respect to all load demands are positive; they indicate that the LMPs and the load demands are changing in the same direction. Because generator 2 is the marginal generator, values in column/row 2 are small and close to 0.1. The derivative of the LMP in bus 2 with respect to the demand in that bus equals the derivative with respect to demand of the marginal cost of the generator in that bus, because this generator is the swing generator. The highest price sensitivity occurs in bus 4. This indicates that this bus might suffer a comparatively significant price volatility. Observe that the high price volatility of bus 4 is not a trivial property of the system, thus demonstrating the added value of the proposed analysis.

Sensitivities of LMPs with respect to reactive power demands are provided in the matrix below. Units are ($/MWh)/(puMVAr):

We can observe that these sensitivities are much smaller than the sensitivities with respect to active power demands. Note that the first three columns of the matrix of LMPs derivatives with respect to reactive power demands are zero because reactive power has no cost (in this particular example) and is in between its bounds for each of the generators at the first three buses.

Sensitivities with respect to the voltage single upper bound and sensitivities with respect to generator (linear and quadratic) cost parameters and are provided by the vectors below:

As it can be seen, sensitivities with respect to the voltage single lower bound are zero, as no lower bound limit is reached for voltages. Sensitivities of LMPs with respect to cost coefficients are zero for generators working at their respective maximum or minimum power output. Note also that the derivative of the LMP in bus 2 with respect to the linear cost term of the generator in that bus is 1 because that generator is the swing generator. Finally, we can see that the sensitivities with respect to line design parameters (resistance, reactance, susceptance, and capacity) and generator design parameters (capacity, minimum power output, and cost parameters) are also readily available.

#### 5. Conclusion

Within an OPF framework, this paper provides a new calculation method for the sensitivities of the LMPs. We analyze changes in LMPs with respect to operational parameters such as demands, generator cost parameters, and voltage bounds. However, the changes with respect to line design parameters such as resistance, reactance, susceptance, and capacity and generator design parameters including capacity and minimum power output can be similarly computed at the same time. We present the local sensitivity formulas of LMPs for both the cases of regular nondegenerate and the cases of regular degenerate solutions. So the main conclusion is that it can consider the sensitivity analysis in the broader sense; a simple matrix form of the sensitivities for the LMPs with respect to all parameters is given. Numerical results are also given to show that this method is effective.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work is supported by the construct program of the key discipline in Hunan Province, National Natural Science Foundation of China (11301445), the Research Foundation of Education Bureau of Hunan Province (13B121), and the Social Science Fund Project of Hunan Province (11YBA300).