# Minimal Optimization Model¶

The minimal model in urbs is a simple expansion and dispatch model with only processes being able to fulfill the given demands. All spatial information is neglected in this case. The minimal model is already multiple-input/multiple output (mimo) and the variable vector takes the following form:

Here, \(\zeta\) represents the total annualized system cost, \(\rho_{ct}\) the amount of commodities \(c\) taken from a virtual, infinite stock at time \(t\), \(\kappa_{p}\) and \(\widehat{\kappa}_{p}\) the total and the newly installed process capacities of processes \(p\), \(\tau_{pt}\) the operational state of processes \(p\) at time \(t\) and \(\epsilon^{\text{in}}_{cpt}\) and \(\epsilon^{\text{out}}_{cpt}\) the total inputs and outputs of commodities \(c\) to and from process \(p\) at time \(t\), respectively.

## Objective¶

For any urbs problem, as the objective function, either the total system costs or the total emissions of CO2 can be chosen. In the former (standard) case this leads to an objective vector of:

where only the costs are part of the objective function. For the latter choice of objective no such simple structure can be written.

## Costs¶

In the minimal model the total cost variable can be split into the following sum:

where \(\zeta_{\text{inv}}\) are the annualized invest costs, \(\zeta_{\text{fix}}\) the annual fixed costs, \(\zeta_{\text{var}}\) the total variable costs accumulating over one year, \(\zeta_{\text{fuel}}\) the accumulated fuel costs over one year and \(\zeta_{\text{env}}\) the annual penalties for environmental pollution. These costs are then calculated in the following way:

### Annualized Investment Costs¶

Investments’ values are typically depreciated with time. This devaluation happens in general longer time horizons than our model’s standard of one year. However to overcome distortions in the overall cost function, urbs uses the annual cash flow (CAPEX) for the calculation of the investment costs in the cost function. This is captured by multiplying the total invest costs for a given process \(C_p\) with the annuity factor \(f_p\), i.e.:

For an interest rate of \(i\) and a depreciation period of \(n\) years the annuity factor can be derived using the remaining debt after \(k\) payments \(C_k\):

Since the outstanding debt becomes \(0\) at the end of the depreciation period this leads to:

The annualized invest costs for all investments made by the optimizer are then given by:

where \(k^{\text{inv}}_p\) signifies the specific invest costs of process \(p\) per unit capacity and \(P_{\text{exp}}\) is the subset of all processes that are actually expanded.

### Annual Fixed Costs¶

The annual fixed costs represent maintenance and staff payments the processes used. They are playing a role for unit expansion only and are given as parameters for all allowed processes. Fixed costs scale with the capacity (in W) of the processes, and can be calculated using:

where \(k^{\text{fix}}_p\) represents the specific annual fix costs for process \(p\).

### Annual Variable Costs¶

Variable costs represent both, additional maintenance requirements due to usage of processes and taxes or tariffs. They scale with the utilization of processes (in Wh) and can be calculated in the following way:

where \(k^{\text{var}}_{pt}\) are the specific variable costs per time integrated process usage, and \(w\) and \(\Delta t\) are a weight factor that extrapolates the actual modeled time horizon to one year and the timestep length in hours, respectively.

### Annual Fuel Costs¶

The usage of fuel adds an additional cost factor to the total costs. As with variable costs these costs occur when processes are used and are dependent on the total usage of the fuel (Stock) commodities:

where \(k^{\text{fuel}}_{c}\) are the specific fuel costs. The distinction between variable and fuel costs is introduced for clarity of the results, both could in principle be merged into one class of costs.

### Annual Environmental Costs¶

Environmental costs occur when the emission of an environmental commodity is penalized by a fine. Environmental commodities do not have to be balanced but can be emitted to the surrounding. The total production of the polluting environmental commodity is then given by:

where \(k^{\text{env}}_{c}\) are the specific costs per unit of environmental commodity and \(CB\) is the momentary commodity balance of commodity \(c\) at time \(t\). The minus sign is due to the sign convention used for the commodity balance which is positive when the system takes in a unit of a commodity.

After this discussion of the individual cost terms the constraints making up the matrices \(A\) and \(B\) are discussed now.

## Process Expansion Constraints¶

The unit expansion constraints are independent of the modeled time. In case of the minimal model they are restricted to two constraints only limiting the allowed capacity expansion for each process. The total capacity of a given process is simply given by:

where \(K_p\) is the already installed capacity of process \(p\).

### Process Capacity Limit Rule¶

The capacity of each process \(p\) is limited by a maximal and minimal capacity, \(\overline{K}_p\) and \(\underline{K}_p\), respectively, which are both given to the model as parameters:

All further constraints are time dependent and are determinants of the unit commitment, i.e. the time series of operation of all processes and commodity flows.

## Commodity Dispatch Constraints¶

In this part the rules governing the commodity flow timeseries are shown.

### Vertex Rule (“Kirchhoff’s Current Law”)¶

This rule is the central rule for the commodity flows and states that all commodity flows, (except for those of environmental commodities) have to be balanced in each time step. As a helper function the already mentioned commodity balance is calculated in the following way:

Here, the tuple sets \(C^{\mathrm{in,out}}_p\) represent all input and output commodities of process \(p\), respectively. The commodity balance thus simply calculates how much more of commodity \(c\) is emitted by than added to the system via process \(p\) in timestep \(t\). Using this term the vertex rule for the various commodity types can now be written in the following way:

where \(C_{\text{st}}\) is the set of stock commodities and:

where \(C_{\text{dem}}\) is the set of demand commodities and \(d_{ct}\) the corresponding demand for commodity \(c\) at time \(t\). These two rules thus state that all stock commodities that are consumed at any time in any process must be taken from the stock and that all demands have to be fulfilled at each time step.

### Stock Commodity Limitations¶

There are two rules that govern the retrieval of stock commodities from stock: The total stock and the stock per hour rule. The former limits the total amount of stock commodity that can be retrieved annually and the latter limits the same quantity per timestep. the two rules take the following form:

where \(\overline{L}_c\) and \(\overline{l}_c\) are the totally allowed annual and hourly retrieval of commodity \(c\) from the stock, respectively.

### Environmental Commodity Limitations¶

Similar to stock commodities, environmental commodities can also be limited per hour or per year. Both properties are assured by the following two rules:

where \(\overline{M}_c\) and \(\overline{m}_c\) are the totally allowed annual and hourly emissions of environmental commodity \(c\) to the atmosphere, respectively.

## Process Dispatch Constraints¶

So far, apart from the commodity balance function, the interaction between processes and commodities have not been discussed. It is perhaps in order to start with the general idea behind the modeling of the process operation. In urbs all processes are mimo-processes, i.e., in general they take in multiple commodities as inputs and give out multiple commodities as outputs. The respective ratios between the respective commodity flows remain normally fixed. The operational state of the process is then captured in just one variable, the process throughput \(\tau_{pt}\) and is linked to the commodity flows via the following two rules:

where \(r^{\text{in, out}}_{pc}\) are the constant factors linking the commodity flow to the operational state. The efficiency \(\eta\) of the process \(p\) for the conversion of commodity \(c_1\) into commodity \(c_2\) is then simply given by:

### Basic Process Throughput Rules¶

The throughput \(\tau_{pt}\) of a process is limited by its installed capacity and the specified minimal operational state. Furthermore, the switching speed of a process can be limited:

where \(\underline{P}_{p}\) is the normalized, minimal operational state of the process and \(\overline{PG}_p\) the normalized, maximal gradient of the operational state in full capacity per timestep.

### Intermittent Supply Rule¶

If the input commodity is of type SupIm, which means that it represents an operational state rather than a proper material flow, the operational state of the process is governed by this alone. This feature is typically used for renewable energies but can be used whenever a certain operation time series of a given process is desired

Here, \(s_{ct}\) is the time series that governs the exact operation of process \(p\), leaving only its capacity \(\kappa_{p}\) as a free variable.

### Part Load Behavior¶

Many processes show a non-trivial part-load behavior. In particular, often a nonlinear reaction of the efficiency on the operational state is given. Although urbs itself is a linear program this can with some caveats be captured in many cases. The reason for this is, that the efficiency of a process is itself not modeled but only the ratio between input and output multipliers. It is thus possible to use purely linear functions to get a nonlinear behavior of the efficiency of the form:

where a,b,c and d are some constants. Specifically, the input and output ratios can be set to vary linearly between their respective values at full load \(r^{\text{in,out}}_{pc}\) and their values at the minimal allowed operational state \(\underline{P}_{p}\kappa_p\), which are given by \(\underline{r}^{\text{in,out}}_{pc}\). This is achieved with the following equations:

A few restrictions have to be kept in mind when using this feature:

- \(\underline{P}_p\) has to be set larger than 0 otherwise the feature will work but not have any effect.
- Environmental output commodities have to mimic the behavior of the inputs by which they are generated. Otherwise the emissions per unit of input would change together with the efficiency, which is typically not the desired behavior.

This concludes the minimal model.