Next Article in Journal
Lycium barbarum (Wolfberry) Branches and Leaves Enhance the Growth Performance and Improve the Rumen Microbiota in Hu Sheep
Previous Article in Journal
Characterization of Removal Reasons for Nurse Sows and the Associated Removal Due to Their Extended Lactation Length in Hyperprolific Farrow-Wean Herds
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Collecting and Delivering Fattened Pigs to the Abattoir

1
Department of Mathematics, University of Lleida, 25001 Lleida, Spain
2
Agrotecnio CERCA Center, 25198 Lleida, Spain
3
Research Center on Production Management and Engineering, Universitat Politècnica de València, 03801 Alcoy, Spain
4
Department of Computer Architecture & Operating Systems, Universitat Autònoma de Barcelona, 08193 Bellaterra, Spain
*
Author to whom correspondence should be addressed.
Animals 2024, 14(11), 1608; https://doi.org/10.3390/ani14111608
Submission received: 26 March 2024 / Revised: 9 May 2024 / Accepted: 27 May 2024 / Published: 29 May 2024
(This article belongs to the Section Animal System and Management)

Abstract

:

Simple Summary

This article discusses how to plan the transport of fattened pigs from farms to the abattoir efficiently when the farms are coordinated with the abattoir operation. In contrast to the papers published to date that have been concerned with the farmer’s profit, this paper adopts the slaughterhouse perspective. Coordination with growers should help to better plan the collection of pigs by establishing the best routes for the trucks to ensure the optimal functioning of the abattoir. Starting from a real scenario, the study delves into a complex Team Orienteering Problem, taking into account factors such as stochastic production and maximum truck workload. The paper adopts the PJS heuristic and compares it with exact methods, revealing the computational infeasibility of the latter. Through scenario analysis, the study unveils insights into practical solutions, highlighting a positive relationship between the exploration of alternative routes, the number of trips, transport costs, and maximum reward. In particular, greater variability in the number of pigs to be collected presents opportunities for a more efficient mix of loads, especially if one truck can visit at least one more farm. These results offer valuable insights for optimizing the pig transport logistics, potentially improving the profitability and sustainability.

Abstract

In the context of pig farming, this paper addresses the optimization problem of collecting fattened pigs from farms to deliver them to the abattoir. Assuming that the pig sector is organized as a competitive supply chain with narrow profit margins, our aim is to apply analytics to cope with the uncertainty in production costs and revenues. Motivated by a real-life case, the paper analyzes a rich Team Orienteering Problem (TOP) with a homogeneous fleet, stochastic demands, and maximum workload. After describing the problem and reviewing the related literature, we introduce the PJS heuristic. Our approach is first compared with exact methods, which are revealed as computationally unfeasible. Later, a scenario analysis based on a real instance was performed to gain insight into the practical aspects. Our findings demonstrate a positive correlation between the number of alternative routes explored, the number of trips, the transportation cost, and the maximum reward. Regarding the variability in the number of pigs to collect, when a truck can visit more than one farm, better solutions can be found with higher variability since the load can be combined more efficiently.

1. Introduction

In countries like Spain, the pig sector plays a key and competitive role [1]. The growth in pig companies and increasing competition have led to increasingly complex decision-making processes, necessitating specialized models to maintain competitiveness [2]. Spain leads Europe in pig production, with a supply chain dominated by vertically integrated companies or cooperatives, while independent individual farmers are becoming scarce. The integration in the pig sector began primarily around feed mills in the 1970s, leading to a concentration of pig production separate from the meat packing plant operations, creating a bottleneck in the Pig Supply Chain (PSC) between the two dominant subsystems: farming production and pork marketing [2]. However, over the last few decades, economies of scale have accelerated the changes globally, further promoting integration [3,4]. Consequently, Spanish pig production has evolved to include meat packing plants, abattoirs, and other connected business activities, such as consulting services, medical products, veterinary services, or engineering offices. In this context, the integrator, whether a private company or cooperative, operates as a PSC. Therefore, while farmers were once the primary on-farm decision-makers, today, decisions primarily rest with the integrators’ headquarters as they coordinate their own PSC, composed of different decision-making units or PSC agents [5,6]. Simultaneously, traditional open market relationships have been replaced by new marketing agreements seeking higher degrees of coordination among the chain agents [7].
In general, the specialization and technical advancements in the pig sector have complicated the decision-making processes, necessitating a holistic view compatible with consumer and societal preferences [2,4,5]. Most models proposed for pig production planning have focused on individual farm perspectives, reflecting the realities in countries where farmers have significant control and autonomy, such as France [8]. However, some models overlook transportation planning [3]. Specifically, the problem of delivering pigs to the abattoir has been explored by various authors. For instance, Pourmoayed et al. [9], Rodríguez-Sánchez et al. [10], and Davoudkhani et al. [8] consider the perspective of individual growers selling pigs to the abattoir. In contrast, few decision models in the literature consider the perspective of the Pig Supply Chain (PSC), which involves managing multiple fattening farms concurrently [4,6]. The focus of a PSC manager is on optimizing the abattoir operations, starting with coordinating fattening farms to slaughter pigs to meet the pork demand rather than optimizing individual farmers’ slaughter times. Thus, the collection of fattened pigs with marketable weight across integrated farms should be planned from the abattoir’s perspective and coordinated by the PSC manager to prevent disruptions and downtime at the meat packing plant. An effective optimization model for PSC coordination must consider coordinating all the fattening farms involved in pig marketing, in addition to the abattoir. Consequently, coordination is typically executed by a fleet of vehicles responsible for collecting and delivering the pigs to the abattoir under the supervision of the PSC manager. The fleet must address the Team Orienteering Problem (TOP) [11,12], determining which vehicle visits which farm to collect the pigs for slaughter. The TOP approach aims to optimize the routing of the trucks that can collect pigs by visiting a subset of farms with different reward values within a limited time frame. The objective is to maximize the total collected reward while considering constraints such as transportation cost, time limitations, and limited truck capacity. Given that farm and abattoir operations are scheduled weekly, the objective of this paper is to propose a TOP model formulation to plan the weekly collection of pigs for delivery to the abattoir. Therefore, the main contributions of the paper are the following:
  • Provide a conceptual description of the problem of marketing fattened pigs to the abattoir from the abattoir’s perspective.
  • Formulate a Team Orienteering Problem (TOP) and solve it for large instances using an algorithm that extends the Panadero–Juan savings (PJS) heuristic [12].
  • Conduct a scenario analysis based on a real-life case to investigate and discuss the main practical implications.
The remainder of the paper is structured as follows: Section 2 presents the state of the art regarding the TOP based on a literature review of the recent papers published in indexed journals. Section 3 describes the real problem from the abattoir’s perspective. In Section 4, methods such as the linear programming formulation and the approximate approach, as well as the data available from a real-life scenario, are presented. Section 5 introduces the results of the scenario analysis and discusses the most relevant findings and limitations of this study. Finally, Section 6 provides the main conclusions and outlines future research directions.

2. The Team Orienteering Problem in Agriculture

The Team Orienteering Problem was introduced by Chao et al. [11], who proposed a linear programming model aiming to determine m routes starting and ending at specific points through a subset of locations. The goal is to maximize the total reward given a fixed amount of time for each team member. An extensive literature review on this topic, reporting the different variants of this problem, was published by [13]. Despite the TOP not being a novel problem in the field of Operational Research, there are relatively few applications in agriculture. A search on ScienDirect with the terms “Team”, “Orienteering”, “Problem”, and “Agriculture” yields only 45 references, and not all of them are concerned with applying the TOP to agricultural problems. Many of these papers merely mention agriculture as a potential field of application. In fact, only four papers are directly related to agricultural research. Two of them address the optimal spraying tasks in crop protection with multi-Unmanned Aerial Vehicle (UAV) systems [14,15], while the other two focus on farm monitoring, also utilizing UAVs [16,17]. Clearly, the use of UAVs has been the dominant field of application for the TOP model thus far, but there is a noticeable absence of scientific articles concerning livestock production.

3. Understanding the Real Problem for the Abattoir

The problem addressed in this paper is based on a real-life scenario encountered by PSC managers, who must coordinate the transportation of fattened pigs from various fattening farms to the abattoir (Figure 1). This scenario is a usual one in vertically integrated companies or cooperatives globally [3], including the Spanish pig sector [6]. Each week, the abattoir needs to organize trips to collect the marketable pigs from different fattening farms owned by the integrator. Pig farming encompasses various types of essential farms, as illustrated in Figure 1: sow farms, rearing farms, and growing–fattening farms. However, different combinations of sow-rearing farms, rearing–fattening farms, or farrowing-to-finish farms may coexist under the same integrator. The number of marketable pigs in each fattening farm is estimated by a farm visitor, an individual assisting the PSC manager who estimates pig live weights visually [10]. These estimations are utilized to determine the tentative date for commencing pig deliveries to the abattoir and clearing the farm. Fattening farms adhere to an all-in-all-out (AIAO) management policy, meaning that all pigs enter the farm as a batch, and a new batch can only be introduced once all the pigs from the previous batch have been delivered to the abattoir and the facilities have been cleaned.
Since not all pigs grow at the same rate, the delivery of pigs to the abattoir typically lasts about four weeks between the first and the last load of animals [10,18]. Moreover, as all the fattening farms supply pigs to the same abattoir and belong to the same integrator, the delivery of pigs over time must be balanced throughout the year, and farms house batches of pigs at different growing stages. In a balanced production system, the number of weekly trips to the abattoir depends on the slaughtering capacity. Additionally, the number of trips per truck depends on the size of the available fleet owned by the integrator or abattoir and the distance of farms to cover. Depending on the country, different transportation regulations apply to the welfare of animals during loading, driving, and unloading (e.g., EU Regulation No. 1/2005). This includes the maximum capacity of trucks, minimum room per pig, or maximum distance to cover.
Once the total number of pigs available to be collected on each farm is determined, scheduling load trucks must consider the incompatibility constraints between the workload tasks and ensure that a minimum number of pigs are collected. Incompatibilities between farms can result from housing different breeds or the sanitary status of the herds. Transport routes are planned by the transport manager, abattoir, or PSC manager according to the commercial link between these actors in the PSC. These plans depend on the details of the contract and are not always related to the distance that needs to be covered [19]. The integrator may own a fleet of vehicles for transportation. However, outsourcing is also common in practice, particularly during peak periods. Therefore, the abattoir is served by a team of truck drivers based at the depot. Each week, the team leaves the depot to execute the schedule for that week and returns to unload. The daily schedule for a week is flexible and only needs to fulfill the abattoir demand and balance the workload of drivers. Slaughtering of third-party pigs is also possible to keep the workload at the abattoir balanced over time or to profit from opportunity cost, but priority is afforded to in-house-produced animals. The problem thus involves constructing a schedule to collect pigs from farms so that the weekly abattoir demand is met and the total reward associated with collecting the fattened pigs is maximized. Since a farm can only be visited once a week, it can only belong to one route in the context of a vehicle routing problem. The reward of each farm depends on the live weight of the animals, the lean content, and the bonus agreed upon by farmers with the abattoir [10]. The objective is to maximize the rewards derived from collecting pigs from farms minus the transportation cost. To the best of our knowledge, this problem has never been addressed in the scientific literature and can be viewed as a TOP with additional constraints. In particular, these additional constraints are the following:
  • Each vehicle route starts and ends at the abattoir.
  • The accumulated quantity of pigs carried by each vehicle does not exceed the total carrying capacity due to animal welfare regulation of the European Union (EU Regulation No. 1/2005).
  • There is a maximum time limit for vehicle routes.
  • Each farm delivers at most only once by the same vehicle at the same period.
  • If the truck capacity is sufficient, a truck visiting a farm must collect all available pigs.
The anticipated outcomes of the proposed approach benefit from an understanding of the context in which farmers and pig companies make decisions, and it is expected that they will facilitate the future deployment of new decision support systems [20]. This is a relevant contribution considering the competitiveness of the sector and the absence of specialized tools to facilitate data-driven decisions.

4. Materials and Methods

This section provides a formal description of the problem, introduces the proposed solving approach, and elaborates on a real-life case study.

4.1. Mathematical Formulation

The proposed TOP can be defined on a complete directed network. Let G = ( V , A ) be a complete directed graph with vertex 0 V representing the abattoir, where the route starts and ends, while set V = 1 n V represents the farms’ locations; set A is the arc set. Each vertex i V has an associated profit p i R + and each arc ( i , j ) A has a travel time t i j R + calculated from real distances among farms. The length of a path (measured in time) cannot exceed the predefined time limit T m a x . Every farm (vertex) can be visited at most once. The decision variables are as follows:
  • Binary decision variables x i j d { 0 , 1 } , where each x i j d takes the value 1 if farm j is visited immediately after farm i, with truck d, being 0 otherwise.
  • Integer decision variables y i d N , where each y i d takes the value z if farm i is the z t h visit of truck d, being 0 otherwise.
Then, the mathematical model can be formulated as
Maximize d D ( i , j ) A u j · x i j d
s . t . : x i j d 1 ( i , j ) A , d D
y i d y j d + 1 ( 1 x i j d ) · | V | i , j V , d D
i V x i j d = h V x j h d j V , d D
j V x 0 j d = i V x i 0 d = 1 d D
( i , j ) A t i j · x i j d T m a x d D
x i j d { 0 , 1 } ( i , j ) A , d D
y i d N i V , d D
Equation (1) represents the objective function to be maximized. Constraint (2) ensures that each farm should be visited by a truck at most once during the entire time horizon. Constraint (3) prevents the formation of subtours. Constraint (4) includes a flow balance constraint, ensuring that any arrival at a farm is compensated by a departure. Constraint (5) dictates that all vehicles must depart from and return to the abattoir (vertex 0). Constraint (6) stipulates that the total travel time of each vehicle should not exceed its threshold. Finally, constraints (7) and (8) define the nature of the x i j d and y i d variables.

4.2. Solution Approach

Given the complexity of the model in Equations (1)–(8), obtaining an exact solution within a reasonable computational time is not feasible. Therefore, a heuristic based on the PJS algorithm [12] is proposed. The general steps of the algorithm are detailed in the pseudocode presented in Algorithm 1. The basic idea is to explore the space of solutions iteratively, while retaining the best solution found. The key process of the algorithm is the merge() function, which incorporates the PJS heuristic to construct new solutions.
Algorithm 1 PJS pseudocode adapted to the collection and delivery of pigs to the abattoir
  • Data : B R , m a x S a v e , n o d e s , d M a t , e l a p s e d
  • s o l g e n I n i t S o l ( m a x S a v e , n o d e s , d M a t )
  • e f f _ l i s t c r e a t e _ e f f _ l i s t ( s o l )
  • e f f _ l i s t s o r t ( e f f _ l i s t )
  • while  e l a p s e d < T m a x  do
  •      n e w _ s o l m e r g e ( B R , m a x S a v e , n o d e s , d M a t , e f f _ l i s t )
  •     if  n e w _ s o l > s o l  then
  •          s o l n e w _ s o l
  •     end if
  • end while
  • Print the best solution s o l
A key aspect of the proposed approach is the generation of the efficient list, e f f _ l i s t , by the function c r e a t e _ e f f _ l i s t ( ) (see Algorithm 1). When an edge is created, both its cost and efficiency are computed. Specifically, efficiency is calculated as a linear combination of cost and reward, depending on a parameter α [ 0 , 1 ] . Once all edges are created with their corresponding cost and efficiency, they are sorted by efficiency in the e f f _ l i s t . This ordered list serves as the basis for constructing new solutions by attempting to combine (merge) the most promising edges. Moreover, the selection of elements from the list to build a new solution is randomized at each iteration. This random selection approach allows for better exploration of the solution space and prevents deterministic outcomes that would arise from always selecting elements of the list in the same order.
Models (1)–(8) were implemented in IBM OPL and solved with CPLEX 12.0, while Algorithm 1 was implemented in Python 3.11. Both the model and the algorithm were executed on a 2.10 GHz Intel® CoreTM i 7 -1260P with 16 GB of RAM running the Windows 11 Pro operating system. The same time constraint was applied to both methods to obtain a solution. For statistical analysis and plotting, JMP® 17 Pro was utilized.

4.3. The Real Instance

We obtained permission from a medium-sized Spanish pig integrator company (kept confidential) to utilize the locations of their various fattening farms and their own abattoir. The abattoir has a slaughtering capacity of 5000 pigs per day, and the integrator operates 186 fattening farms, producing nearly a million pigs annually. The abattoir accepts third-party pigs for slaughter but gives priority to those produced by the same company, providing flexibility in managing their own production. The abattoir is responsible for organizing the collection and transportation of fattened pigs from farms on a weekly basis. The typical truck capacity ranges between 200 and 220 heads, with 200 pigs being the most common capacity currently due to an increase in slaughtering weight in recent years.
Figure 2 displays the geographical locations of the facilities considered in this study on a map, with the latitude and longitude provided by the company for all farms and the abattoir.
Instead of using a distance matrix, a travel time matrix was built using the coordinates of all the farms and abattoir provided by the integrator. To accomplish this, the URL https://project-osrm.org/ (accessed on 6 December 2023) was utilized. This URL serves as an endpoint for the Open Source Routing Machine (OSRM) service, specifically designed for generating travel time and distance matrices for driving routes. Correct requests to this endpoint generate a JSON response containing a matrix of travel times and distances between multiple pairs of locations based on driving routes. Only travel times were utilized in this study. The reward of each farm is calculated according to [10]. The rest of the production system was not taken into account (e.g., like sow or rearing farms), also leaving aside considerations regarding other production stages.
In the evaluation of different scenarios for the abattoir, several practical considerations were assumed regarding fattening farm capacity and operation:
  • All farms are assumed to be operating.
  • The full capacity of farms is considered; however, we are only concerned with heads or tails in batch production.
  • Welfare and sanitary regulations affecting swine transport [19] are assumed to be correct.
  • Third-party transportation is not considered, and fleet size is not constrained.

4.4. Scenario Analysis

The scenario analysis was designed over a large set of instances based on the real instance presented in Section 4.3. The parameters used to simulate different scenarios considered three important dimensions: (i) the number of marketable pigs; (ii) the homogeneity or variability of available pigs; and (iii) the capacity of available trucks. In order to balance costs, tuning of the alpha value involved in the PJS heuristic was performed.
A total of 10 (average number of marketable pigs) × 5 (different homogeneity levels or standard deviations) × 3 (maximum truckload) = 150 scenarios were simulated. For this purpose, each scenario was recorded in a coded file named m X s d Y Z Z Z , where X refers to the average number of pigs to collect, Y is the standard deviation, and Z Z Z is the maximum load of trucks. The average values and standard deviation values were used to randomly generate normal observations for the number of pigs in each fattening farm. The same values were maintained for the different truck capacities considered (parameters Z Z Z ). Any random value outside the range [ 0 , Z Z Z ] was replaced by its corresponding extreme value, i.e., 0 or Z Z Z .
The outputs recorded in each scenario included the following: (i) the best solution number with the corresponding best cost; (ii) the reward obtained; and (iii) the number of routes generated. For further inspection and analysis, a more detailed file was recorded, providing specific routes within the solution. Additionally, auxiliary calculations were performed to derive supplementary variables, providing further insights into the analysis of results. These calculations are detailed in Table 1.

5. Results and Discussion

This section provides the results obtained and the corresponding statistical analysis.

5.1. Base Case: Preliminary Results

Descriptive statistics were employed to explore the characteristics of the real sample using JMP® Pro version 17. The mean number of pigs was 94, with a large standard deviation of 63.4. Initially, attempts were undertaken to obtain the exact solution of the TOP for the abattoir using the mathematical formulation presented in Section 2. As anticipated, it proved impossible to obtain an optimal solution even after running the model for 24 h. However, to validate the correctness of the mathematical model, small instances with 10 nodes were successfully solved.
Afterward, we solved the same problem using Algorithm 1 presented in Section 4.2. This solution is considered the base case for the scenario analysis. The results of the base case yielded a reward of 17,119 pigs slaughtered with a transportation cost (time) of 265.72 h, covering 91 routes. Solving the problem with different truck load capacities produced the results shown in Table 2. It is noteworthy that the costs are similar, as well as the number of routes. A simple calculation of mean travel time (cost) per route shows that it ranges from 2.920 to 3.007 h per route. However, the reward changes, increasing the number of pigs delivered to the abattoir as the truck load capacity increases.

5.2. Scenario Analysis

A summary of the rewards and costs is presented in Table 3 and Table 4. These results correspond to the average calculated for the three different solutions obtained with different trucks, i.e., different load capacities. The results summarize the outcome of the different scenarios generated according to the method presented in Section 4.4. This summary provides an overview of the average reward and cost obtained across different scenarios, offering insights into the overall performance of the solutions generated. Detailed sample outputs are shown in Figure A3 and Figure A4, included in Appendix A.1.
Table 3 illustrates that, on average, a higher number of pigs available on farms leads to a greater number of pigs being delivered to the abattoir. However, the variability observed in the number of pigs available ( σ ) does not consistently correspond to a higher number of pigs delivered to the abattoir. This discrepancy arises from the fact that random numbers are generated within the interval [ 0 , 200 ] , and high variability may result in fewer pigs available for slaughter. This observation aligns with the trends observed in the associated cost (see Table 4) as a higher number of pigs delivered implies a higher cost and vice versa.
A summary of the correlation observed among standard deviation, truck capacity, and output variables (Table 5) helps to understand the positive and negative correlations among them. Notice the strong positive correlations between the trucks and intensity (i.e., pigs per route). This is reasonable since, the higher the truck capacity, the more pigs are transported.
The variable Sol# serves as a rough indicator of the algorithmic performance, representing the number of iterations in which the best solution is found. It is positively correlated with Routes, Cost, and Reward. This suggests that higher computational time tends to yield better results in terms of Reward, Cost, and Routes. Another notable correlation is observed between Routes and Cost, indicating that a higher number of routes requires more time to cover them. Among the auxiliary variables, Duration (hours per route) is highly correlated with Unitary (hours per pig). The negative correlations are of lesser intensity compared to the positive ones. The lowest value corresponds to Unitary (hours per pig) versus Reward (pigs), indicating that, the higher the transportation time per pig delivered to the abattoir, the fewer pigs are delivered.

5.3. Exploring the Results on Routes

After conducting the scenario analysis, it becomes evident that the primary outputs revolve around the number of routes, the cost, and the reward. The distribution of Routes in Figure 3 illustrates how the number of routes increases as the number of pigs to deliver per farm rises. Simultaneously, this increment contributes to higher variability observed in the boxplot as the mean number of pigs on farms increases. The boxplot with a mean of 94 pigs per farm corresponds to the base case (real-life instance), while the rest correspond to randomly generated instances.
One could think that the variability observed in Figure 3 could be attributed to the variance in the random generation of scenarios, specifically the number of pigs in fattening farms. However, for each mean, five different standard deviations are considered. Hence, the mean number of R o u t e s for different standard deviations (SD) indicates that higher variability leads to less dispersion in the number of R o u t e s . Upon investigating this issue, we concluded that a large standard deviation around the mean number of pigs in farms generates a variety of random values, which makes truck loading easier to complete. The different numbers of pigs available among different farms complement each other better to fill a truck, resulting in a lower cost as well.
In extreme scenarios, another noteworthy aspect is the number of farms visited per route, which was one or two for an average of one hundred pigs per farm or more. For biosecurity reasons [21], it is recommended that no more than two farms belonging to the same company be visited by a truck. Scenarios with a low average number of pigs to be collected per farm (e.g., nine) involved up to twenty farms visited. Although this number of visits is not realistic, it is worth noting that the average number of pigs per farm is not realistic either.

5.4. Exploring Results on Truck Capacity

We considered different load capacities for trucks to explore their effect on the number of routes to be implemented. This information is shown in Figure 4. As expected, higher load capacity implies fewer routes to cover and less variability. Figure 4 demonstrates a clear decrement in the average number of routes when truck capacity is increased. This effect may imply an interesting reduction in greenhouse gas emissions.
Other outputs are also affected by the load capacity of trucks (see Figure 5). For instance, cost is reduced when capacity is higher (Figure 5a), while the impact on reward is more limited (Figure 5b). This might be due to the fact that the total capacity of the fleet surpasses the number of pigs in farms to collect. Accordingly, the intensity of completing truck capacity increases with truck capacity (Figure 5c). At the same time, trip times represented by duration increase slightly because more truck capacity allows the company to plan longer routes (Figure 5d), thus implying less cost per truck and more reward capacity.

5.5. The Impact of the Number of Pigs to Collect

The number of pigs to be delivered to the abattoir is a crucial element in solving the TOP. A low mean number of pigs available for slaughtering may imply longer routes to fulfill the truck capacity, while more pigs may limit the flexibility to complete the truck load. Figure 6 summarizes the impact of different average numbers of pigs per farm available to be sent to the abattoir. Figure 6a represents the increasing cost when the average number of animals increases. Logically, if there are more pigs in the system, then more trips are required to the abattoir. This is confirmed with Figure 6b, showing that the number of pigs generating rewards depends on the mean value considered.
Another observation is that the intensity is not affected by the number of pigs to be collected (Figure 6c) because we only have three different load capacities. However, the trip time per pig (unitary) is reduced as the mean number of pigs per farm increases (Figure 6d). This result suggests better efficiency in transportation when more animals are available to load in trucks.

6. Conclusions

According to the objective of this study, we have successfully described the problem of marketing fattened pigs to the abattoir from the abattoir’s perspective by employing a TOP model. This TOP model has been formulated as a mixed integer linear problem. Solving this problem for large-sized instances in short computing times is unfeasible. Hence, an approximate method has been employed to solve a real-life instance of the problem. The solution algorithm proposed is based on a combination of the PJS heuristic and biased randomized techniques.
Regarding the managerial nature of the problem, we observed that the rewards from the pigs were more attractive than a mere reduction in the transportation cost. Another important aspect to observe was the truck capacity, which limited the number of farms to visit or the number of pigs to deliver, making it easier to resolve the problem when the variability was higher.
The proposed model performed well and is practical for planning the collecting routes of fattened pigs to be delivered to the abattoir. However, there are technical aspects relying on the uncertainty of the rewards or the interest in outsourcing the transportation that may deserve more investigation. In addition, the postponement of a visit to a farm and the collection of pigs may have a cost or a reward depending on the growth, weight, and sales price of the pigs. For that reason, in the near future, we plan to extend the model introduced here to a multi-period one.

Author Contributions

Conceptualization, L.M.P.-A., P.L., A.J. and J.P.; methodology, L.M.P.-A., A.J. and J.P.; software, L.M.P.-A. and Y.B.; validation, L.M.P.-A. and Y.B.; formal analysis, L.M.P.-A. and Y.B.; investigation, L.M.P.-A., P.L. and Y.B.; resources, A.J. and J.P.; data curation, L.M.P.-A.; writing—original draft preparation, L.M.P.-A.; writing—review and editing, L.M.P.-A., P.L., A.J. and J.P.; visualization, L.M.P.-A.; supervision, A.J. and J.P.; project administration, L.M.P.-A.; funding acquisition, L.M.P.-A. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by CYTED program, grant number 524RT0158, and the Ministerio de Ciencia e Innovación through project AI4PORK, project number TED2021-130829B-I00.

Institutional Review Board Statement

Ethical review and approval were waived for this study due to not working with experimental animals.

Informed Consent Statement

Not applicable.

Data Availability Statement

Restrictions apply to the availability of these data.

Acknowledgments

The authors wish to acknowledge Josep Reixach for their support providing the location of farms used in the case base of this research.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
AIAOAll-In-All-Out
DSSDecision Support System
IoTInternet of Things
PJS heuristicPanadero–Juan Savings heuristic
PSCPig Supply Chain
TOPTeam Orienteering Problem
UAVUnmanned Aerial Vehicle
VRPVehicle Routing Problem

Appendix A

Appendix A.1

The specific random numbers generated to represent the number of pigs available at each fattening farm and the abattoir for each instance are shown in Figure A1. In particular, we observe the values generated for each node with the mean represented in the head of the column (e.g., m9, m10, …, m189), and each sheet represents a different standard deviation (e.g., sd5, sd10, …, sd85). The first column corresponds to the base case. Therefore, we can deduce that there are 50 × 186 random values generated according to 50 different normal distributions.
Figure A1. Number of pigs to collect generated randomly for each farm.
Figure A1. Number of pigs to collect generated randomly for each farm.
Animals 14 01608 g0a1
This approach enables the observation of different distributions of pigs among the farms. From these data, the total number of pigs available to collect in a given week can be computed, as shown in Figure A2.
Figure A2. Total number of pigs to deliver by scenario.
Figure A2. Total number of pigs to deliver by scenario.
Animals 14 01608 g0a2
Figure A3 displays an example of the main output variables recorded for each scenario in an Excel file. These variables include the number of solutions explored, the number of routes to cover in the solution, transportation cost (originally recorded in seconds), the number of pigs collected (reward), transportation time per pig, pigs transported per route, and transportation time per route. This comprehensive recording allows for detailed analysis and comparison of different scenarios.
Figure A3. Results summary for each solution.
Figure A3. Results summary for each solution.
Animals 14 01608 g0a3
An additional file contained detailed information about each solution, including the specific routes, nodes visited in each route, the load of animals, and the cost associated with each truck. This level of detail, illustrated in Figure A4, provides a comprehensive understanding of the logistics involved in transporting pigs from farms to the abattoir.
Figure A4. Routes recorded for each solution.
Figure A4. Routes recorded for each solution.
Animals 14 01608 g0a4
The correlations among variables are depicted in a multivariate plot in Figure A5. This visualization provides a clear understanding of the relationships between different output variables, such as the strong correlation observed between cost and routes.
Figure A5. Multivariate correlations (the same color indicates the same cluster).
Figure A5. Multivariate correlations (the same color indicates the same cluster).
Animals 14 01608 g0a5

References

  1. Cardil, A.; Gallizo, J.L.; Salvador, M. Factors that affect profitability in the Spanish pig farming industry. Span. J. Agric. Res. 2023, 21, e0106. [Google Scholar] [CrossRef]
  2. Perez, C.; de Castro, R.; Font i Furnols, M. The pork industry: A supply chain perspective. Br. Food J. 2009, 111, 257–274. [Google Scholar] [CrossRef]
  3. Nakrachata-Amon, T.; Vorasayan, J.; Pitiruek, K.; Arunyanart, S.; Niyamosoth, T.; Pathumnakul, S. Optimizing vertically integrated pork production supply chain: A Lagrangian heuristic approach. Heliyon 2024, 10, e26407. [Google Scholar] [CrossRef] [PubMed]
  4. Nadal-Roig, E.; Plà-Aragonès, L.M.; Alonso-Ayuso, A. Production planning of supply chains in the pig industry. Comput. Electron. Agric. 2019, 161, 72–78. [Google Scholar] [CrossRef]
  5. Rodríguez, S.; Plà, L.; Faulin, J. New opportunities in operations research to improve pork supply chain efficiency. Ann. Oper. Res. 2014, 219, 5–23. [Google Scholar] [CrossRef]
  6. Plà-Aragonès, L.M. The Evolution of DSS in the Pig Industry and Future Perspectives. In EURO Working Group on DSS: A Tour of the DSS Developments over the Last 30 Years; Papathanasiou, J., Zaraté, P., Freire de Sousa, J., Eds.; Springer International Publishing: Cham, Switzerland, 2021; pp. 299–323. [Google Scholar] [CrossRef]
  7. Trienekens, J.; Wognum, N. Requirements of supply chain management in differentiating European pork chains. Meat Sci. 2013, 95, 719–726. [Google Scholar] [CrossRef] [PubMed]
  8. Davoudkhani, M.; Mahé, F.; Dourmad, J.Y.; Gohin, A.; Darrigrand, E.; Garcia-Launay, F. Economic optimization of feeding and shipping strategies in pig-fattening using an individual-based model. Agric. Syst. 2020, 184, 102899. [Google Scholar] [CrossRef]
  9. Pourmoayed, R.; Nielsen, L.R.; Kristensen, A.R. A hierarchical Markov decision process modeling feeding and marketing decisions of growing pigs. Eur. J. Oper. Res. 2016, 250, 925–938. [Google Scholar] [CrossRef]
  10. Rodríguez-Sánchez, S.V.; Plà-Aragonès, L.; De Castro, R. Insights to optimise marketing decisions on pig-grower farms. Anim. Prod. Sci. 2019, 59, 1126–1135. [Google Scholar] [CrossRef]
  11. Chao, I.M.; Golden, B.L.; Wasil, E.A. The team orienteering problem. Eur. J. Oper. Res. 1996, 88, 464–474. [Google Scholar] [CrossRef]
  12. Ammouriova, M.; Bertolini, M.; Castaneda, J.; Juan, A.A.; Neroni, M. A Heuristic-Based Simulation for an Education Process to Learn about Optimization Applications in Logistics and Transportation. Mathematics 2022, 10, 830. [Google Scholar] [CrossRef]
  13. Vansteenwegen, P. The orienteering problem: A survey. Eur. J. Oper. Res. 2011, 209, 1–10. [Google Scholar] [CrossRef]
  14. Li, Y.; Xu, Y.; Xue, X.; Liu, X.; Liu, X. Optimal spraying task assignment problem in crop protection with multi-UAV systems and its order irrelevant enumeration solution. Biosyst. Eng. 2022, 214, 177–192. [Google Scholar] [CrossRef]
  15. Li, Y.; Wu, Y.; Xue, X.; Liu, X.; Xu, Y.; Liu, X. Efficiency-first spraying mission arrangement optimization with multiple UAVs in heterogeneous farmland with varying pesticide requirements. Inf. Process. Agric. 2023, 11, 237–248. [Google Scholar] [CrossRef]
  16. Hafeez, A.; Husain, M.A.; Singh, S.; Chauhan, A.; Khan, M.T.; Kumar, N.; Chauhan, A.; Soni, S. Implementation of drone technology for farm monitoring and pesticide spraying: A review. Inf. Process. Agric. 2023, 10, 192–203. [Google Scholar] [CrossRef]
  17. Bottarelli, L.; Bicego, M.; Blum, J.; Farinelli, A. Orienteering-based informative path planning for environmental monitoring. Eng. Appl. Artif. Intell. 2019, 77, 46–58. [Google Scholar] [CrossRef]
  18. Plà-Aragonés, L.M. (Ed.) Handbook of Operations Research in Agriculture and the Agri-Food Industry; Springer: New York, NY, USA, 2015; Volume 224. [Google Scholar] [CrossRef]
  19. Rioja-Lang, F.C.; Brown, J.A.; Brockhoff, E.J.; Faucitano, L. A Review of Swine Transportation Research on Priority Welfare Issues: A Canadian Perspective. Front. Vet. Sci. 2019, 6, 36. [Google Scholar] [CrossRef] [PubMed]
  20. Rose, D.C.; Morris, C.; Lobley, M.; Winter, M.; Sutherland, W.J.; Dicks, L.V. Exploring the spatialities of technological and user re-scripting: The case of decision support tools in UK agriculture. Geoforum 2018, 89, 11–18. [Google Scholar] [CrossRef]
  21. Alarcón, L.; Allepuz, A.; Mateu, E. Biosecurity in pig farms: A review. Porc. Health Manag. 2021, 7, 1–15. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Pig Supply Chain structure and coordination.
Figure 1. Pig Supply Chain structure and coordination.
Animals 14 01608 g001
Figure 2. Distribution of farms around a geographical area.
Figure 2. Distribution of farms around a geographical area.
Animals 14 01608 g002
Figure 3. Boxplot of routes by mean number of pigs per farm.
Figure 3. Boxplot of routes by mean number of pigs per farm.
Animals 14 01608 g003
Figure 4. Boxplot of routes by truck load capacity.
Figure 4. Boxplot of routes by truck load capacity.
Animals 14 01608 g004
Figure 5. Results of C o s t (a), R e w a r d (b), I n t e n s i t y (c), and D u r a t i o n (d) per T r u c k capacity.
Figure 5. Results of C o s t (a), R e w a r d (b), I n t e n s i t y (c), and D u r a t i o n (d) per T r u c k capacity.
Animals 14 01608 g005
Figure 6. Results of C o s t (a), R e w a r d (b), I n t e n s i t y (c), and U n i t a r y (d) per mean number of pigs to collect per farm.
Figure 6. Results of C o s t (a), R e w a r d (b), I n t e n s i t y (c), and U n i t a r y (d) per mean number of pigs to collect per farm.
Animals 14 01608 g006
Table 1. Auxiliary outcomes calculated from instance results.
Table 1. Auxiliary outcomes calculated from instance results.
Calculation ExplanationUnits
Unitarycost/rewardTransportation time per pighours/pig
Intensityrewards/routesPigs per routeNo. pigs/route
Durationcost/routesTransportation time per routehours/route
Table 2. Main results of the base case.
Table 2. Main results of the base case.
Truck LoadCost (h)Reward (€)Routes (n)
200265.7217,11991
300267.6425,51989
400263.9433,91988
Table 3. Reward per scenario ( μ , σ ) expressed in number of pigs transported.
Table 3. Reward per scenario ( μ , σ ) expressed in number of pigs transported.
σ = 25 σ σ = 45 σ = 65 σ = 85
μ = 918232641385660747588
μ = 2954076160703073579321
μ = 499324952410,001954411,572
μ = 6912,89213,24013,24413,86912,439
μ = 8916,57716,55117,70817,45715,390
μ = 10920,40320,53819,78019,70317,949
μ = 12924,12623,93923,69321,57619,555
μ = 14927,75527,58625,96123,74421,034
μ = 16931,48630,35227,05625,69223,136
μ = 18934,79030,11027,62426,13624,843
Table 4. Transportation cost per scenario ( μ , σ ) expressed in hours.
Table 4. Transportation cost per scenario ( μ , σ ) expressed in hours.
σ = 5 σ = 25 σ = 45 σ = 65 σ = 85
μ = 9228.6225.5235.3237.3243.9
μ = 29239.2233.6242.9242.2244.7
μ = 49242.5246.7249.0247.6248.9
μ = 69244.1254.5254.9250.2249.3
μ = 89256.4258.4252.8256.0254.5
μ = 109282.2270.8263.6266.1254.8
μ = 129278.3277.3273.9268.5256.4
μ = 149285.4282.6277.1267.6261.5
μ = 169301.7290.7280.2272.6267.5
μ = 189297.1285.7277.0277.2275.2
Table 5. Correlation among output variables of scenarios.
Table 5. Correlation among output variables of scenarios.
SDTrucksSol#RoutesCostRewardUnitaryIntensityDuration
SD1.0000−0.00000.0738−0.1633−0.1540−0.0718−0.17560.0756−0.1581
Trucks−0.00001.00000.0188−0.3545−0.34970.1597−0.06920.96430.2206
Sol#0.07380.01881.00000.73460.71120.8391−0.6595−0.0328−0.6483
Routes−0.1633−0.35450.73461.00000.97950.7919−0.5668−0.4534−0.6443
Cost−0.1540−0.34970.71120.95751.00000.7643−0.5625−0.4527−0.6416
Reward−0.07180.15970.83910.79190.76431.0000−0.70450.1044−0.6662
Unitary−0.1756−0.0692−0.6595−0.5668−0.5625−0.70451.0000−0.08320.9323
Intensity0.07560.9643−0.0328−0.4534−0.45270.1044−0.08321.00000.1974
Duration−0.15810.2206−0.6483−0.6443−0.6416−0.66620.93230.19741.0000
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Plà-Aragonés, L.M.; Bao, Y.; Llagostera, P.; Juan, A.; Panadero, J. Collecting and Delivering Fattened Pigs to the Abattoir. Animals 2024, 14, 1608. https://doi.org/10.3390/ani14111608

AMA Style

Plà-Aragonés LM, Bao Y, Llagostera P, Juan A, Panadero J. Collecting and Delivering Fattened Pigs to the Abattoir. Animals. 2024; 14(11):1608. https://doi.org/10.3390/ani14111608

Chicago/Turabian Style

Plà-Aragonés, Lluís Miquel, Yun Bao, Pol Llagostera, Angel Juan, and Javier Panadero. 2024. "Collecting and Delivering Fattened Pigs to the Abattoir" Animals 14, no. 11: 1608. https://doi.org/10.3390/ani14111608

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop