1 Introduction

Over the time electricity has become one of the greatest vital forms of amenities to man. However, modeling and planning of quantity of electricity consumed have been a major concern to both researchers and industry [1]. The balancing between the power generation and consumption is crucial for the smooth running of the power grids. Any disparity between power supply and demand would increase costs to both the load serving entity and consumers which may damage the entire grid. Thus, the electricity industry is undergoing a time of speedy and unprecedented transformation in the deployment of renewable energy generation technologies. Since 2012, renewable sources have generated more than half of the new energy generation capacity worldwide. In 2016, total renewable energy generation that was accounted for exceeded 2000 GW, doubling the quantity in the space of nine years [2].

Today’s microgrids consist of a combination of renewable and non-renewable sources of power generation to meet the ever-growing electricity demand. To this end, microgrids comprise small distributed energy resources (DER) located close to the consumers. This comes with advantages such as the ability to operate in either the grid-connected or island mode of operation to enhance the supply reliability. Additionally, it also improves the network performance resulting in loss reduction, voltage control and reduced congestion. Demand response (DR) is a useful tool in the electricity market. They are activities on the consumers’ side, which helps to reduce the customer’s electricity usage while maintaining the efficiency and reliability of the grid. They are usually divided into two broad groups: incentive-based demand response program (IBDRP) and price-based demand response program (PBDRP). The first type is typically formulated as a contractual agreement with consumers, where they get incentives in monetary value when they cut down their electricity usage, while the latter depends solely on the dynamic electricity price, which can be either peak or off-peak. Prices tend to be higher at peak periods to encourage energy curtailing and low at off-peak hours [3]. Over the years, there have been many researches in the area of dispatching and deployment of DER in the microgrids incorporating DR to curtail electricity at the customer’s side [4]. Reference [5] worked on day-ahead scheduling for commercial buildings combining time of use (ToU) and demand pricing (DP) to plan the demand response program (DRP) with the goal of minimizing monthly electricity charge, while Asadinejad and Tomsovic [6] proposed a model deploying both ToU and IBDRP plans based on the demand price elasticity to design an optimal structure for achieving cost reduction and maximizing customer acceptance level of the DRP. Also, the work done in [7] modeled the responsive load behavioral model with linear and nonlinear modeling for the IBDR and PBDR programs. In [8], optimization of a home-based energy management controller integrating various categories of loads which could be curtailable, deferrable and non-deferrable appliances and sought to simultaneously minimize customer’s electricity bill and the day-to-day capacity of energy curtailed. The contributions of this paper include:

  1. 1.

    Investigate an incentive demand response program with renewables to minimize annual cost and maximize the profit of customer participation.

  2. 2.

    Evaluate the impact of an IBDRP on the operational schedule of the microgrid and by extension on the cost metrics.

The rest of the paper is organized as follows: Sect. 2 presents the system modeling and formulations, Sect. 3 details the verified results, and Sect. 4 gives the conclusion and future works.

2 Methods

2.1 Microgrid Model

The sources of power deployed in a microgrid consist of both renewable and non-renewable sources, which comprises: 1 PV, 1 wind, 3 PGUs, a grid connection and 10 willing customers. The objective function is to minimize the annual cost of electricity production and carbon dioxide emission. The mathematical formulation is presented as follows:

$$\mathop \sum \limits_{t = 1}^{N} \left( {c_{\text{fuel}} + c_{\text{grid}} - c_{\text{sub}} } \right)$$
(1)

Subject to the following constraints:

$$yp_{it } \le yp_{{{ \text{max} }_{i} }}$$
(2)
$$yp_{i,t} + E_{{{\text{grid}}\,t}} + yw_{t} + ypv_{t} = {\text{load}}_{t}$$
(3)
$$ypv_{t} \le sr_{t}$$
(4)
$$yw_{t} \le w_{t}$$
(5)

where

$$c_{\text{fuel}} = \mathop \sum \limits_{t = 1}^{T} \mathop \sum \limits_{i = 1}^{I} ccng \times fng_{i,t} \times P$$
(6)
$$c_{\text{grid}} = \mathop \sum \limits_{t = 1}^{T} cc_{{{\text{grid}}t}} \times E_{{{\text{grid}}t}} \times P$$
(7)
$$c_{\text{sub}} = \mathop \sum \limits_{t = 1}^{T} cc_{\text{sub}} \times ypv_{t} \times P$$
(8)

The following is a brief description of the constraints:

Equation (2): The PGU’s output (i) at time (t) must be less or equal to the maximum capacity of the PGU.

Equation (3): This constraint is referred to as the energy balance constraint, which means the output from the PGUs (\(yp_{i,t}\)), the energy from the grid \((E_{{{\text{grid}}_{t} }} )\), output from the wind (\(yw_{t}\)) and output from PV (\(ypv_{t}\)) must be equal to the total load.

Equation (4): The PV output at time (t) must be less or equal to the forecast solar power at time (t).

Equation (5): The wind output at time (t) must be less or equal to the forecast wind power at time (t).

2.2 The Incentive-Based Demand Response Model

The aim of demand-side management program, which demand response falls under, is to regulate the demand for electricity amongst consumers by reducing load and improving system reliability. Clearly, demand response contract formulations give incentives to customers who were willing to engage in the load disruption with payments [9]. The demand response model in the study involved ten customers who are ready to participate in the contract and willing to declare the amount of load they want to reduce in return for incentive.

The mathematical formulation seeks to maximize the total customer benefit and is presented below:

$$\mathop \sum \limits_{t \in T} {\text{EP}}_{t} \left( {{\text{LRQ}}_{jt} \times {\text{CPART}}_{jt} } \right) - \left( {{\text{LRIC}}_{jt} + {\text{PLR}}_{jt} \times {\text{LQR}}_{jt} \times {\text{CPART}}_{jt} } \right)$$
(9)

Subject to the following constraint:

$${\text{LQR}}_{j,t} \times {\text{CPART}}_{j,t} \ge {\text{CCL}}$$
(10)

where

$${\text{LRQ}}_{j,t} = {\text{quantity}}\,{\text{of}}\,{\text{load}}\,{\text{reduction}}\,{\text{at}}\,{\text{each}}\,{\text{customer}}\,\left( j \right)\,{\text{at}}\,{\text{time}}\,\left( t \right).$$
(11)
$${\text{LRIC}}_{j,t} = {\text{load}}\,{\text{reduction}}\,{\text{initialization}}\,{\text{cost}}\,{\text{for}}\,{\text{each}}\,{\text{customer}}\,\left( j \right)\,{\text{at}}\,{\text{time}}\,\left( t \right).$$
(12)
$${\text{CPART}}_{j,t} = {\text{a}}\,{\text{binary}}\,{\text{variable}}\,{\text{indicator}}\,{\text{maybe}}\,{\text{customer}}\,{\text{participates}}\,{\text{or}}\,{\text{not}} .$$
(13)
$${\text{PLR}}_{j,t} = {\text{a}}\,{\text{variable}}\,{\text{that}}\,{\text{determines}}\,{\text{the}}\,{\text{price}}\,{\text{of}}\,{\text{the}}\,{\text{load}}\,{\text{reduction}}\,{\text{by}}\,{\text{customers}} .$$
(14)
$${\text{EP}}_{t} = {\text{energy}}\,{\text{price}}\,{\text{at}}\,{\text{time}}\,\left( t \right).$$
(15)

The following is a brief description of the constraint:

Equation (10): The quantity of load reduction of a customer (j) in time (t) multiplied by the customer participation (j) at time (t) must be greater or equal to critical load.

2.3 Combined Mathematical Model

The combined mathematical model consists of mathematical models representing both the microgrid and the incentive-based demand response program. The multi-objective function and its constraints are given below:

$$\begin{aligned} & w1\mathop \sum \limits_{t = 1}^{N} \left( {c_{\text{fuel}} + c_{\text{grid}} - c_{\text{sub}} } \right) - w2\mathop \sum \limits_{t \in T} {\text{EP}}_{t} \left( {{\text{LRQ}}_{jt} \times {\text{CPART}}_{jt} } \right) \\ & \quad - \left( {{\text{LRIC}}_{jt} + {\text{PLR}}_{jt} \times {\text{LQR}}_{jt} \times \,{\text{CPART}}_{jt} } \right) \\ \end{aligned}$$
(16)

Subject to the following constraints:

$$yp_{it } \le yp_{{{ \text{max} }_{i} }}$$
(17)
$$yp_{i,t} + E_{{{\text{grid}}_{t} }} + yw_{t} + ypv_{t} = {\text{load}}_{t}$$
(18)
$$ypv_{t} \le sr_{t}$$
(19)
$$yw_{t} \le w_{t}$$
(20)
$${\text{LQR}}_{j,t} \times {\text{CPART}}_{j,t} \ge {\text{CCL}}$$
(21)
$$w1 \, + w2 \, = 1$$
(22)

3 Numerical Simulations, Results and Discussion

To verify the developed model in Eqs. (16)–(22), we use a case study of 1 PV, 1 wind, 3 PGUs and 10 willing customers. The Advanced Interactive Multidimensional Modeling System (AIMMS) software [10, 11] was used to build and solve the multi-objective mathematical model using outer approximation algorithm (OAA) [12]. The data used in this work is gotten from a site from Harare in Zimbabwe [13]. The variables to be determined are as follows.

\(ypv_{t}\)—the hourly output of PV generator at time t, \(yp_{i,t}\)—hourly output of the power generating units (i) in time (t), \(E_{{{\text{grid}}_{t} }}\)—energy bought from the grid at time t, \(yw_{t}\)—hourly output of wind generator at time t, \({\text{CPART}}_{j,t}\)—the variable indicator that shows the customer participation in the demand and response contract and \({\text{PLR}}_{j,t }\)—the determined price of the quantity of energy reduced by the customers.

Table 1 shows the customer load curtailed and corresponding incentive, while Table 2 presents the hourly output from the various microgrid sources.

Table 1 Load curtailed and incentives
Table 2 Hourly output of the generating units

From Table 1, it is clear that the higher the quantity of load reduced the higher the customer incentive. For example, customer 1 was willing to reduce 10 kW at hour 12, which gives payment of $5, as against customer 10 who was willing to reduce 40 kW at hour 8 whose payment will be $20, thus higher than the payment of customer 1.

From Table 2, it can be observed that the output from the PV only starts generating from 8 a.m. to 6 p.m. due to the weather conditions. The output from wind dispatches as appropriate without any form of hindrances, while the three PGUs also dispatch effectively.

4 Conclusions

This work investigates the energy management of a microgrid incorporating the incentive-based demand response program. A multi-objective optimization model is proposed to determine the annual cost of electricity production, which minimizes the carbon dioxide emission and maximizes the customers’ participation in the program. The Advanced Interactive Multidimensional Modeling System (AIMMS) software was used to solve the proposed model. Furthermore, obtained results show that incorporating demand response program could be helpful at both the supply and demand sides of the microgrid. Also, it was observed that the customers’ participation in the program was maximized which is one of the objective functions of the model.