# Your market model: the mathematics

Let us now have a somewhat more detailed look at the model that you have used two steps ago. On the surface, this model looks rather similar to the models that we have used and discussed before. However, behind the scenes, it has a very different structure.

In the models before, you had to choose how much to invest and which technology should be deployed first. Using this power, you have tried to minimize costs or to reduce emissions.

In the new model, you do not have to do this basic work anymore. Rather, you only specify general objectives and the model searches by itself for the best possible solution, given these objectives. Thus, the model is the first real **optimization model** used in this course.

How does this work? In the first three models, the mathematical structure was always the same; focusing on checking the supply-demand balance of your supply mix. We just added more information on costs and emissions resulting from the supply mix.

However, for this model we first have to define an objective to obtain an optimization problem. As discussed before, we want to minimize the social costs of satisfying a given electricity demand.

These social costs stem from three major sources:

- The conventional costs of investment and operation (investment costs and variable costs). These are typically paid by the firms that own the technologies used to generate electricity.
- The costs of CO
_{2}-emissions. In many cases, these are**external costs**, that is, these costs are not directly paid by the firms causing the emissions, but rather by the society in general (ie by all persons that are harmed by climate change) not only by the firms. - The potential costs of nuclear accidents. Again, these are external costs.

In our model the social costs (SC) are therefore defined as:

(1) .

In this formulation, emissions are weighed by the term , which describes the social costs of carbon. The costs of nuclear accidents are described by the term , which describe the contribution of one more unit of installed nuclear capacity to the social costs of nuclear accidents. In the model, you have chosen these two values, which describe central parts of the total social costs.

Second, we need to define the constraints that we need to take into account while looking for the lowest social costs.

The social costs have to be minimized subject to the constraint that demand has to be met in all four hours. As discussed last week, this constraint can be written in the following way:

(2)

(3)

(4)

(5)

Remember that the deployment of the controllable technologies (ie, the ) are decision variables that are chosen during the optimization. Furthermore, the production capacities, , are also optimized.

To close the model, we have to link the emissions, , to the other variables. We can do this by assuming that there is some given emission intensity of production for each technology, which we denote by . Thus emissions for technology are given by

(6) .

Of course, for many technologies (PV, wind power, nuclear), we have .

Altogether, the model thus consists of minimizing our objective equation (1) over all and and subject to the constraints given by equations (2-6).

This optimization is carried out behind the scenes for every value of (social costs of carbon) and (social costs of nuclear energy) that you chose.

© University of Basel