2.2.1. Task Allocation Model for Multi-Machine Collaborative Operation of Fertilizer Applicators
For the task allocation problem of multi-machine collaborative operation of fertilizer applicators, where there are
fertilizer applicators and
fields, the objective model of the problem is established considering the number of operation days and daily working hours of fertilizer applicators, to minimize the total completion time. The objective function of the model is expressed as follows:
where
is the cost of multi-machine collaborative operation of fertilizer applicators;
is the maximum number of working hours of a fertilizer applicator per day;
is the number of operational days of fertilizer applicator
;
is the number of working hours of a fertilizer applicator
on a day
;
is the difference between the maximum and minimum operational days of different fertilizer applicators;
is the difference between the maximum and minimum total working hours of different fertilizer applicators.
In this study, the total working hours of all fertilizer applicators are used as a criterion for judging the cost. The penalty function is introduced to prevent a large difference in the number of operational days of different fertilizer applicators, where the penalty variable represents the difference between the maximum and minimum operational days of different fertilizer applicators, and is the penalty coefficient that denotes the maximum possible total working hours of all the fertilizer applicators in a day. Further, a penalty variable , which represents the difference between the maximum and minimum total working hours of different fertilizer applicators, is also introduced to ensure that the total working hours of different fertilizer applicators do not differ significantly and to avoid an increase in the idle rate of the fertilizer applicators.
According to the operation sequence of a fertilizer applicator , the number of operational days and the number of daily working hours of fertilizer applicator can be obtained. The time when fertilizer applicator continuously completes operation sequence is recorded as , where represent the field with an operational sequence ; represents the field where the continuous operation is terminated; and are the distances from the normal entrance of field and field , representing the positions where the fertilizer applicator enters field and leaves field , respectively. The last exit position of a fertilizer applicator needs to be on the same side as a specified entrance or exit position on every operational day.
- (1)
Daily operational fields and sequences
To determine the daily operational sequence of a fertilizer applicator , the following symbols are defined:
is the next operational field after field ; is the width of field ; is the width of field ; is the operational width of a fertilizer applicator ; is the time consumed by fertilizer applicator to work continuously until it completely finishes field and returns to the garage; is the time consumed by fertilizer applicator to work continuously until it completely finishes field and returns to the garage; is the time consumed by fertilizer applicator to work continuously until it completes columns of field and returns to the garage, where , and is the upwards rounding symbol.
When the condition of is satisfied, there are four possible cases:
;
and a fertilizer applicator leaving field is on the other side of the specified entrance or exit point;
and a fertilizer applicator leaving field is on the side of a specified entrance or exit point;
.
In Cases 1 and 2, the operational sequence is , whereas in Cases 3 and 4, if a fertilizer applicator that leaves a field is on the side other than that of the specified entrance or exit point, then the operational sequence is ; if a fertilizer applicator that leaves a field is on the side of the specified entrance or exit point, then the operational sequence is .
- (2)
The continuous operating time of fertilizer spreader
The time required for a fertilizer applicator to complete an operational sequence continuously consists of three parts:
Travel time of fertilizer applicator on the road;
Time of field linear operation of fertilizer applicator , which is labeled as time ;
Field turnaround time of fertilizer applicator .
where
is the total travel distance of a fertilizer applicator
on the road, as shown in Equation (8);
is the number of columns of a fertilizer applicator
operating on a field
, as shown in Equation (9);
is the speed of a fertilizer applicator operating on a field
, as shown in Equation (10);
is the speed of a fertilizer applicator
on the road;
is the length of a field
;
is field turnaround time of a fertilizer applicator
;
represents that the field
is the operational field of a fertilizer applicator
, and
represents other situations.
The total travel distance
of a fertilizer applicator
on the road is calculated as follows:
where
is the distance of a fertilizer applicator
from the garage to the entrance of a field
;
is the distance of a fertilizer applicator
from the end position of a field
to the garage;
is the distance of a fertilizer applicator
from a field
to the field
;
represents that the field
is the first operational point of fertilizer applicator
, and
represents other situations;
represents that the field
is the last operational point of fertilizer applicator
, and
represents other situations;
represents that the fields
and
are the operating points of fertilizer applicator
in the order of allocation, and
represents other situations.
The number of columns
where a fertilizer applicator
operates on a field
is obtained as follows:
where
is the upwards rounding symbol;
is the serial number of the first operational field;
is the serial number of the last operational field;
is the width of a field
;
is the working width of a fertilizer applicator
.
The speed
of a fertilizer applicator operating on a field
is expressed as follows:
where
is the working speed of a fertilizer applicator
under the field classification into positive large, positive small, medium, negative small, and negative large fields;
represents that the field
belongs to the
th classification among the five classifications, and
represents other situations.
- (3)
Distance from garage to the field and between the fields
The distance between the garage and the
fields is represented by a square matrix
of order (
) with a diagonal of zero, as shown in Equation (11), where the first row (column) represents the garage, and rows (columns) from the second row (column) to the last row (column) represent
fields.
where
is the distance from garage to field
;
is the distance from field
to field
.
It is stipulated that the entrance and exit of a garage denote the intersection points, and the entrance and exit of a fertilizer applicator in the field are divided into two situations:
The two vertices of the field are on the roadside, and the other two vertices are not on the roadside. As shown in
Figure 3, for the two fields, it is stipulated that the left point of the two points on the roadside, like point
or
, represents the entrance of a fertilizer applicator, and the point on the right, like point
or
, denotes the exit of the fertilizer applicator;
The four vertices of the field are all on the roadside. As shown in
Figure 4, it is stipulated that the left point of the upper two points, like point
or
, represents the entrance of a fertilizer applicator, and the point on the right, like point
or
, is the exit of the fertilizer applicator.
The distance between the garage and fields, from one place to the other, can be obtained by calculating the distance from its exit to the entrance of the other places using the Dijkstra algorithm.
There are three special situations in the process of distance calculation:
As shown in
Figure 3, fields
and
are connected to each other on the opposite side of the entrance or exit side of the two fields. The distance from field
to field
is the distance from the point
on the right side of the connected side of field
to the point
on the left side of the connected side of field
; similarly, the distance from field
to field
is the distance from the point
on the right side of the connected side of field
to the point
on the left side of the connected side of field
;
As shown in
Figure 4, the opposite side of the entrance or exit side of field
is on the same road as the entrance or exit side of field
. The distance from field
to field
represents the distance from the point
on the right side of the opposite side of the entrance or exit side of field
to the point
on the left side of the entrance or exit side of field
;
As shown in
Figure 4, the opposite side of the entrance or exit side of field
is on the same road as the entrance or exit side of field
. The distance from field
to field
denotes the distance from the point
on the right side of the entrance or exit side of field
to the point
on the left side of the opposite side of the entrance or exit side of field
.
As given in Equation (13), a square matrix of order
is used to represent the classification of situations from one location to another.
The distance of a fertilizer applicator
from a garage to the field
defined by Equation (8) is calculated as follows:
when a fertilizer applicator completes a field and is positioned on the opposite side of the entrance or exit side, it is necessary to add the field length to the distance between the two points. For the convenience of calculations, this study uses
to denote the side where a fertilizer applicator
enters field
and
to denote the side where the fertilizer applicator
is located when it completes the operation task on field
; “1” represents the specified entrance or exit side, and “0” denotes the other side.
where
is the modulus operator.
The distance of a fertilizer applicator
from a field
to the garage defined in Equation (8) is calculated as follows:
Similarly, the distance of a fertilizer applicator from a field to the field is calculated as follows:
For
, the calculation formula is as follows:
For
, the calculation formula is as follows:
For
, the calculation formula is as follows:
Finally, for
, the calculation formula is as follows:
2.2.2. Fertilizer Distribution Model of Fertilizer Truck
The operational field of a fertilizer truck defined for a specific day can be divided into four parts as follows. The first operational field of a fertilizer applicator in the morning is the first part; the remaining field of the fertilizer applicator in the morning is the second part; the first operation field of the fertilizer applicator in the afternoon is the third part; however, if the first operation field in the afternoon is finished in the morning, this part is regarded as the second part; the remaining field of the fertilizer applicator in the afternoon is the fourth part.
The transportation sequence of a fertilizer truck on a specific day is expressed by , and the maximum amount of fertilizer transported by the fertilizer truck is denoted by . Based on this, the number of transportations of the fertilizer truck and the distance of each transportation can be obtained. Assume that represents the amount of fertilizer that the fertilizer truck needs to transport to complete sequence at one time, and is the amount of fertilizer that the fertilizer truck needs to transport to complete sequence at one time. When , a sequence is a transportation task, and so on, until all fields are completed.
As mentioned above, one fertilizer truck completes a transportation sequence. Taking the shortest total travel distance of a fertilizer truck as the optimization goal, the model of the considered problem is constructed, and the model objective function is defined as follows:
where
is the travel distance of a fertilizer truck in the
th transportation process;
is number of transportations of a fertilizer truck;
is the cost for a fertilizer truck to complete the entire transportation sequence.
The amount of fertilizer required for each field is defined by Equation (23). Based on the amount of fertilizer for each field, which is necessary to complete all transportation tasks, the number of transportations of a fertilizer truck and the transportation sequence of each transportation can be obtained.
where
is the amount of fertilizer applied to a field
;
is the length of a field
;
is the distance from the position where a fertilizer applicator leaves a field
to the normal entrance of the field
;
is the distance from the position where a fertilizer applicator enters a field
to the normal entrance of the field
;
is the unit amount of fertilizer of the fields under the field classifications into positive large, positive small, medium, negative small, and negative large fields;
is classification of a field
.
According to the operation sequence of a fertilizer truck and the entrance of each field, the distance traveled by the fertilizer truck to complete a certain transportation sequence
can be calculated as follows:
where
is the distance between the garage and the entrance of a field
;
is the distance between the entrances of fields
and
;
represents that the field
is the first transportation point of a fertilizer truck, and
represents other situations;
represents that the field
is the last transportation point of a fertilizer truck, and
represents other situations;
represents that the fields
and
are the transportation points of a fertilizer truck according to the distribution order, and
represents other situations.
The fertilizer stacking point on each field is specified as the entrance of a fertilizer applicator on that field under normal conditions; the shortest transportation distance of a fertilizer truck between the fertilizer stacking point on each field and the garage is represented by a symmetric square matrix
of order
, with a diagonal of zero, which can be computed by the Dijkstra algorithm as follows:
where
is the distance between the garage and field
;
is the distance from field
to field
.