The model simulates the activities of 1872 farms in Luxembourg, including livestock (dairy and meat production) and crop farming activities and integrating a mathematical optimization of each farm at every time step based on economic and environmental objectives and constraints.
The time step used in our simulations is one month, and the simulation covers the span of ten years. This time step was chosen because crop rotation changes occur at different moments of the year, and 1-month time step allows to follow more precisely harvesting and planting decisions for each crop. Furthermore, decisions that impact the structure of the herd (for example, culling decisions) are made by the farmer monthly rather than on an annual basis. Finally, crop, milk, and meat prices all have seasonal patterns that may impact farmer decisions. Crop fertilizer requirements can be met in a variety of ways. The first alternative is to use either solid or liquid farm-produced animal manure. The second option is to purchase inorganic fertilizers at a set price during the experiment. Dairy farms, which account for most farms in Luxembourg, use animal manure first and then purchase inorganic fertilizer if the crop requires further fertilization. Farmers who are members of a biogas cooperative may use the digestate from the biogas facility as a third alternative. However, due to a lack of precise farm-specific data, the model provided in this research does not incorporate biogas producing operations. The costs included in the model are divided into two categories: fixed and variable. Fixed costs are those primarily determined by the size of the farm, such as material costs, fixed capital consumption, cost of labor, and energy costs, which are not taken into consideration in the optimization owing to a lack of accurate data. Variable expenses, on the other hand, are those that vary according on the number of animals and the cultivated area, such as fertilizers, animal feed, plant seeds, and veterinary charges.
The animals in our model are represented individually, which means that their phenotypical traits (body weight, gender, age, etc.) are allocated to each cattle head separately. Body weight estimate is needed to calculate an animal's energy requirements. As a result, we proceeded in two stages. First, we used the body weight mid infrared based calculation provided by for dairy cows developed by [
42] on the Walloon milk spectral database managed by the Walloon Breeding Association. This database contained 713,428 records (45,488 cows and 222 herds) collected from 2006 to 2020. The predicted body weight was then modeled using (1) where the independent variables (weeks of breastfeeding and parity) were classified into five classes (first to fifth+ parity, i.e., we set to 5 every parity larger than 5). Based on parity and week of breastfeeding, this equation reflects the theoretical averaged calculation of expected BW.
Table 1 shows the coefficients of the equation utilized to perform the BW simulation.
where
is the number of parities (i.e. the number of gestations a cow has completed) of the animal and WOL is the week of lactation.
Table 1.
The coefficients for (1) that is used to calculate the body weight of dairy animals.
|
Yintercept
|
w1
|
w2
|
w3
|
w4
|
w5
|
w6
|
Mean |
539.344995 |
37.1976496 |
-8.204927 |
0.98199403 |
-0.0470851 |
0.00102944 |
-0.00000831 |
St. Dev. |
0.32182335 |
0.0275649 |
0.130811 |
0.01723356 |
0.00095285 |
0.00002321 |
0.000000205 |
2.1. Multi-Objective Optimization Problem (MOOP) Formulation
In the S3 file, the definition of mathematical optimization, a generic explanation of linear programming, weighted sum method and details of how NSGA-III works can be found. In this section, we will introduce the problem formulation, i.e., the objectives and constraints of the MOOP.
The NSGA III method was used to implement the MOO in this work. We employed the multi objective evolutionary algorithm (MOEA) framework [
43], an open-source Java library that supports multiple evolutionary algorithms, including NSGA III. This choice was considered suitable for our case, because our agent-based simulator is written in Java [
44]. The probabilities of crossover [
45] and mutation [
46] were set to 0.9 and 0.1, respectively. The algorithm's convergence is dependent on the population size (N). This latter can affect the efficiency of evolution, preventing iteration from stopping at local optima. A population of 100 individuals can be attained in a reasonable period of processing time, and increasing the size has little effect on the answers.
The ideal values for various decisions, such as the number of animals to keep in the farm at each iteration, or cropland allocation to different crops, are established by solving the objective functions. The optimization module is run in the post-market phase, i.e. when the revenues for the sales of the farm produce have been already calculated. Table 2 lists the variables used in the optimization problem.
Table 2.
Variables used in the optimization problem.
Table 2.
Variables used in the optimization problem.
Indices and sets |
Units |
t |
index for the planning time step |
— |
c |
index for crop products |
— |
A |
index for animals |
— |
I |
index for environmental impact categories |
— |
C |
set of crops |
— |
NC |
size of current crop plantation |
— |
NLnewborn |
number of newborns |
— |
NLcull |
number of livestock to be culled |
— |
Decision variables |
UAAc,t |
Utilized agricultural area (UAA) with crop plantation c for a given time t. |
ha |
NL |
number of livestock |
— |
Parameters |
T |
simulation time horizon. |
years |
hc |
harvesting month of crop c. |
— |
sc |
seeding month of crop c. |
— |
Af |
total acreage available in farm f. |
ha |
wi |
weight of the EF impact category i
|
— |
ni |
normalization factor of the EF impact category i
|
— |
impc,i |
environmental impact of crop c in impact category i
|
— |
impmilk,i |
environmental impact of milk in impact category i
|
— |
impmeat,i |
environmental impact of meat in impact category i |
— |
Continuous variables |
fc,t |
profit from crop production at time t. |
€ |
fa,t |
profit from animal production at time t. |
€ |
fs,t |
revenue from subsidies at time t. |
€ |
fp,t |
total profit of a farm at time t. |
€ |
fi,t |
impact of farming activities for impact category i at time t. |
— |
fEF,t |
EF single score impact of farming activities at time t. |
— |
pc,t |
price of crop c sold at time t. |
€/ha |
vcc,t |
variable cost of production of crop c sold at time t. |
€/ha |
Ac,t |
area of crop c at time t. |
ha |
Apasture,t |
area occupied by pastureland at time t. |
ha |
pmilk,t |
price of milk sold at time t. |
€/kg |
ymilk,t |
total yield of milk at time t. |
kg |
pmeat,t |
price of meat sold at time t. |
€/kg |
ymeat,t |
total yield of meat at time t. |
kg |
vcfeed,t |
variable cost of feeding at time t. |
€ |
vcvet,t |
variable cost of veterinary at time t. |
€ |
Pmilk,t |
total milk production in the farm at time t. |
kg |
Pmilk,a,t |
total milk production of animal a at time t. |
kg |
Pmeat,t |
total meat production in the farm at time t. |
kg |
Pmeat,a,t |
total meat production from animal a at time t. |
kg |
m |
the current month of the simulation |
— |
mp |
the number of months to be considered for rolling sum profit |
— |
fp,roll |
mp-month rolling sum of farm profit. |
€ |
NEroll |
12-month rolling sum of nitrogen excretion. |
kg |
NEt |
nitrogen excretion at the current time t. |
kg |
subt |
total subsidies received by the farmer at time t. |
€ |
Mt |
transition matrix for fields at time t. |
— |
The goal of the model is to reduce the environmental impact while maximizing profit from milk and dairy products and crops at the farm level. Crop production profit is computed as the difference between revenue and variable costs of cropping operations:
To calculate the total milk and meat production, individual productions of animals are first calculated and then aggregated over the farm.
The profit for animal production is calculated similarly to crops by subtracting the variable costs of veterinary and feeding spending from the revenue:
The subsidy schemes explained in [
18] are still in place. Therefore, they are part of a farm revenue stream. However, the amount of subsidy for compensatory allowance has been recently changed. Farmers get 165 €/ha up to 90 ha and 90 €/ha above 90 ha.
Then we define the first objective function as:
The environmental impacts are calculated using the impact scores of crops and animal production activities. As mentioned above, the EF 3.0 LCIA method was used to formulate the optimization problem. The objective function may include more than one impact category. Its expression for one category can be written as follows:
The EF single score impact of a farm (
were calculated using the weights in
Table 1 of the S4 file:
Each farm is assigned a certain number of fields, or unitary agricultural areas (UAAs
1). During the simulations, the extension and boundaries of a farm or the geometry of fields are not modified (because fields cannot be sold or split). As a result, the size of a farm is always equal to or larger than the cultivated area:
By regulation, the pastureland total area cannot change and pastures cannot be turned into cropland:
Crop harvesting and sowing are subjected to several constraints. Transitioning from one agricultural plantation to another is only possible during the harvesting and sowing seasons of the related crops. Furthermore, a farm's crop rotation scheme must be respected. Farmers can pick crops with lesser environmental impacts if the value of their green consciousness (GC) parameter (see Table 6) is greater than the threshold that was set (0.5 in all tests in this study). If not, they select the most lucrative option while keeping the plantation calendar and crop rotation scheme limits in mind.
If
M is the transition matrix (the matrix containing the probability of changing crops), then the transition from crop
x to crop
y can take place as:
where each element of
(i.e.,
) is determined according to crop rotation and the GC value of the farmer. (12) is also subject to the constraints:
Therefore, the harvesting and sowing seasons for current and following crop plantations are considered respectively in transitioning.
Dairy producers must choose which animals to cull and how many. If the culling decisions in our model are not controlled, two major issues may arise. First, while animals must always be culled owing to age constraints, farmers may desire to cull more animals to receive more subsidies or reduce adverse environmental effects. The other issue is the exact opposite of excessive culling. Farmers may wish to raise herd size to boost milk output and therefore optimize profit. As a result, the number of culled animals is limited by the number of births and farm class (
Table 3).
Table 3.
The constraints on culling decisions.
Table 3.
The constraints on culling decisions.
Farm class |
Culling condition |
Culling decision |
|
(15) |
|
A,B,C,D |
(16) |
|
|
(17) |
|
|
(18) |
|
E,F,G,H |
(19) |
|
|
(20) |
|
As stated in Section
Error! Reference source not found., while selecting crop to plant, farmers assess the whole set of environmental impacts of each crop (estimated using the EF method). Furthermore, there is an annual hard limit for nitrogen emissions to soil [
47], which may be represented as :
where
are the kilograms of organic nitrogen fertilizer applied on the field.
Since the 1980s, environmental targets have been an increasingly important component of the EU's Common Agricultural Policy (CAP). The EU's climate change strategy requires a shift in agricultural techniques to help reduce GHG emissions, increase energy efficiency, and preserve soil. In our simplified simulations, these policy objectives were addressed by direct subsidies to encourage environmental measures (Pillar 1 of CAP) and multi-year rural development regulations with climate change as one of the guiding considerations (Pillar 2 of CAP). It is important to note, however, that in order to obtain these subsidies, all farms must first meet the cross-compliance norms [
48], as has been the case for all farms in Luxembourg in recent years.
To qualify for the subsidies, farmers must fulfill certain criteria, such as land allocation or nitrogen emissions from animals. Farms with more than three hectares of land (
) are eligible for the compensating allowance if they fulfill the cross-compliance conditions [
48]. The greening subsidy, on the other hand, may be obtained only if the farm fits the standards outlined in
Table 4:
Table 4.
Criteria for greening subsidy.
Table 4.
Criteria for greening subsidy.
Farm Area |
Crop Diversity |
Number of Crops on the Plantation |
|
— |
— |
|
(22) |
(23) |
(24) |
|
(25) |
(26) |
(27) |
(28) |
(29) |
The specifications that were established for the subsidy program "Extensification of permanent grassland" may assist regulators and farmers in avoiding excessive nitrogen leakage into the soil. Using NE_roll in (21), we may define constraints in this scheme as shown in
Table 5.
Table 5.
Specifications to get extensification of permanent grassland subsidy scheme.
Table 5.
Specifications to get extensification of permanent grassland subsidy scheme.
Corresponding stocking rate (LSU/ha) |
) |
Subsidy (€ / ha) |
1.2 |
(30) |
150 |
0.8 |
(31) |
200 |
Notwithstanding the objective of emissions reduction, the farmer's business must obviously remain always financially sustainable. Therefore, it makes sense to include a constraint that prevents non-profitable enterprises from operating throughout the simulation. As a result, for each farm, the rolling sum of revenues over
mp months is computed with Eq. 32:
If it is smaller than zero, the farmer optimizes the farm using just the first objective function (7).
Three different cases were simulated as follows, which differed in the formulation of the objective function and constraints.
Case 1 (Maximize Profit): In this case none of the environmental objectives or constraints are taken into account. In
Section 3, the impact scores and farm earnings obtained in the other cases are compared to this case, which is used as a baseline scenario. The problem can be represented as a MOOP in which the goal is to maximize
subject while respecting the constraints described by Eqs. 10 to 32.
Case 2 (Maximize profit, minimize EF Climate Change): In this case the EF method uses the GWP
100 (Global Warming Potential over 100 years) indicator to calculate the impact of GHG emissions on global warming. The problem can be formulated as follows:
where
is the climate change impact score calculated with the EF method.
Case 3 (Maximize profit, minimize EF Single Score): In this case the EF method relies on a set of weighting and normalization factors to express as a single impact score the lifecycle environmental impacts calculated on different impact categories. To define the weighting criteria for each impact category, a stakeholder engagement approach is employed, in which experts and interested parties express their opinions on the relative importance of various environmental concerns. The weighting factors are expressed as percentages that total 100%. Normalization factors for each impact category are used to compare the environmental impacts to a reference value, which is the equivalent impact produced in the same impact category by a reference population (such as Europe’s population in a certain year). The values in
Table 1 of the S4 file are used to find the single score result, which is then applied in the optimization problem. in this case, the problem can be formalised as follows:
where
is the single score impact calculated with the EF method.