The coordinates of the cuboidal packages inside a ULD using the
fol lowing convention.
2.
Also expected in the output is the total cost incurred of the proposed
solution. This cost is the sum of (a) delay-cost of al l packages that
could not be loaded plus (b) the cost of spreading Priority Packages in
multiple ULDs, computed as K x (number of ULDs that have Priority
Packages).
In this competition we are assuming that a package inside a ULD wi l l
be al igned along its axes. This assumption makes it easy to represent
the position of a package inside a ULD by means of coordinates (three
dimensional) of its two diagonal ly opposite corners. In this convention
we fol low two rules:
The coordinate system is al igned to the axis of the ULD with the
origin (0,0,0) at the front, left, bottom corner.The length of the ULD
is measured along the x axis, width along y and height along the z
axis.
1.
Convention for Representing a Package
Position Inside a ULD
Figure 3: Coordinate axes for a ULD
ULD Identifier Length (cm) Width (cm) Height (cm) Weight Limit (kg)
ULD-1 100 80 80 250
ULD-2 100 80 80 250
2. For placing a package, we need to specify the reference corner of
the package which is selected as fol lows in our convention. Amongst
the eight corners of the package, select the ones that wi l l have the
smal lest z-coordinate when placed inside the ULD.
Amongst al l such corners, select the one that has the smal lest y value.
The position of the package is specified using the coordinates of the
reference-corner and the corner diagonal ly opposite to it. For instance,
a package of size (2x25x2) with location specified by (5,0,0)-(30,2,2)
wi l l be placed l ike this inside ULD at the bottom surface, 5cm to the
right of the origin:
Figure 4: Package inside a ULD
Faces (sides) of the packages may touch the wal ls of the ULD, as wel l
as sides of other packages, for compact packing.
Table 3: ULD attributes for Example Problem
Example: Here is a fictitious toy example of only 2 ULDs and 4
packages. Suppose K=40 and the other inputs are as fol lows:
Package
Identifier
Length
(cm)
Width (cm)
Height
(cm)
Weight
(kg)
Type (P/E)
Cost of
Delay
P-1 70 40 50 100 Priority -
P-2 70 40 50 100 Priority -
P-3 70 40 50 150 Economy 20
P-4 70 40 50 150 Economy 30
Table 4: Package attributes for Example Problem
Three feasible solutions (not necessari ly optimal) are provided for
i l lustration purposes.
Solution-1
Both the ULDs get one Priority package and one Economy package
each.
Here, the position of P-1 in ULD-1 according to our convention is:
(5,0,0) - (45,70,50) and that of P-3 in ULD-1 is (45,0,0)-(85,70,50).
The cost of this solution is (40x2) 80 as there are two ULDs with
Priority packages and no package is left out.
Solution-2
One ULD has two Priority packages, and the other has two Economy
packages.
The cost of this solution is 40 as only one ULD has priority packages,
and no package is left out. However, this solution is not acceptable
because the second ULD is loaded beyond its capacity of 250KG
The ful l problem data (Chal lenge Problem Data) that wi l l be used to
judge the winners wi l l be released on 18th November. It wi l l include
about 9 ULDs of different sizes and no more than 500 packages. ULDs
wi l l not be bigger than 240 x 320 x 240 cm3 and package dimensions
wi l l vary from 4cm to 100cm (along each of the three coordinates).
Challenge Problem Data
Solution-3
Here, one ULD has two Priority packages, whi le the other one has only
one Economy package (P4).
The cost of this solution is (40 for Priority +20 for delaying package
P3) 60 units.
The fol lowing must be submitted in the final solution:
Each contesting team should prepare a short report on the method
they used to solve the problem. The method should be explained in
simple, concise Engl ish so that it is understandable by non-experts.
It can be supported by technical detai ls including detai ls of the
algorithm, flowcharts, example computations, figures etc. The report
should mention the difficulties faced and the ideas tried. The report
should also clearly mention any l imitations or drawbacks of the
proposed approach. This report should be submitted in a PDF
format (up to 10 pages).
Code used to solve the problem, without any third-party or
commercial l ibraries should also be shared. Code can be in any
programming language. A short how-to on running the code must
accompany this submission.
Final ly, the output obtained by solving the chal lenge problem
released for the competition should be submitted in the fol lowing
format.
Solution Deliverables
Participants wi l l be required to submit a plain text fi le in the fol lowing
format:
The first l ine of the fi le should contain total cost (an integer value)
computed for the solution, the total number of packages packed in
al l ULDs and the number of ULDs with Priority Packages separated
by commas (no spaces).
1.
For example:10200,380,4
2. Subsequent l ines should contain detai ls of one packet per l ine in the
format: Package-ID,ULD-ID,x0,y0,z0,x1,y1,z1
where Package-ID is the ID of the package, ULD-ID is the ID of the
ULD to which the packages is assigned, (x0,y0,z0) are the coordinates
of the reference corner of the package and (x1,y1,z1) are the
coordinates of the diagonal ly opposite corner (see convention above).
If a particular package is not al lotted to any ULD then its ULD-ID
should mention NONE and the coordinates be -1,-1,-1,-1,-1,-1.
Output Format
Evaluation Criteria
The teams wi l l be judged on the fol lowing criteria:
Qual ity of the solution to the chal lenge problem submitted in the
above format (60%). Solutions should try to meet al l primary
requirements (al l priority packages must be shipped, weight of
ULDs should not exceed the l imit, al l selected packages must be
ful ly inside their respective ULDs and no two packets should
spatial ly overlap). Cost is a secondary goal.
Qual ity of presentation and the fol lowing question and answer
session (20%).
Qual ity of the report submitted (15%).
Qual ity of the code submitted (5%). propose a solution for this problem statement
To address FedEx's Unit Load Device (ULD) optimization problem, we propose a comprehensive solution that combines strategic package prioritization, efficient packing algorithms, and cost-effective decision-making. Below is a detailed outline of the proposed approach:
1. Problem Understanding and Data Representation
a. Inputs Identification
- ULDs: Each ULD has specific dimensions (Length, Width, Height) and a weight limit.
- Packages: Each package has dimensions, weight, type (Priority/Economy), and a delay cost.
- Cost Parameters:
- K: Cost per ULD carrying at least one Priority Package.
- Delay Costs: Applicable to packages left unpacked.
b. Data Structures
- ULD Representation:
class ULD:
def __init__(self, identifier, length, width, height, weight_limit):
self.id = identifier
self.dimensions = (length, width, height)
self.weight_limit = weight_limit
self.packages = []
self.current_weight = 0
- Package Representation:
class Package:
def __init__(self, identifier, length, width, height, weight, p_type, delay_cost):
self.id = identifier
self.dimensions = (length, width, height)
self.weight = weight
self.type = p_type # 'P' for Priority, 'E' for Economy
self.delay_cost = delay_cost
2. Algorithm Selection and Strategy
Given the problem's combinatorial nature, an optimal solution may be computationally intensive, especially with up to 500 packages and 9 ULDs. Hence, we propose a Heuristic-Based Approach combined with Greedy Strategies to find near-optimal solutions efficiently.
a. Priority Handling
- Prioritize Priority Packages: Ensure all Priority Packages are packed first.
- Group Priority Packages: Aim to minimize the number of ULDs carrying Priority Packages to reduce the total cost associated with multiple ULDs.
b. Packing Strategy
-
Sort Packages:
- Primary Sort: Priority Packages first, followed by Economy Packages.
- Secondary Sort: Within each type, sort packages in descending order based on volume or weight to maximize space utilization.
-
ULD Selection Order:
- Prefer ULDs with dimensions best matching the package sizes to minimize wasted space.
- Alternatively, prioritize ULDs with the highest remaining weight capacity.
-
3D Bin Packing Heuristic:
- First Fit Decreasing (FFD): Place each package in the first ULD where it fits.
- Space Partitioning: Utilize algorithms like Skyline or Guillotine to manage the remaining space within ULDs efficiently.
-
Orientation Adjustment:
- For each package, evaluate all six possible orientations to find the best fit within the selected ULD.
- Select the orientation that allows for optimal space utilization and minimizes fragmentation.
c. Weight Management
- Continuously track the cumulative weight of packages within each ULD to ensure it does not exceed the weight limit.
d. Cost Minimization
-
Minimize ULDs with Priority Packages:
- After packing all Priority Packages, strategically select ULDs to carry Economy Packages without introducing additional ULDs that already contain Priority Packages.
-
Handle Remaining Economy Packages:
- Pack as many Economy Packages as possible within the already utilized ULDs before allocating new ones.
- Leave Economy Packages unpacked only if no feasible placement exists without violating constraints.
3. Implementation Steps
a. Initialization
- Load Data: Read ULD and package data into respective data structures.
- Sort Packages: As per the sorting strategy mentioned above.
b. Packing Process
-
Pack Priority Packages:
- Iterate through each Priority Package.
- For each package, attempt to place it in the most suitable ULD based on the packing strategy.
- If no ULD can accommodate the package, flag it as unpacked (though, per requirements, all Priority Packages must be packed).
-
Pack Economy Packages:
- Iterate through each Economy Package.
- Attempt to place it in existing ULDs first to minimize the number of ULDs used.
- If placement within existing ULDs is not possible, consider allocating a new ULD.
c. Coordinate Assignment
- For each placed package, calculate and assign the coordinates of the reference and diagonally opposite corners based on the chosen orientation and position within the ULD.
d. Cost Calculation
- ULD Cost: Multiply the number of ULDs containing Priority Packages by the cost factor K.
- Delay Cost: Sum the delay costs of all unpacked Economy Packages.
- Total Cost: Sum of ULD Cost and Delay Cost.
e. Output Generation
- Generate the output as per the specified format, including total cost, number of packed packages, number of ULDs with Priority Packages, and detailed package placements.
4. Handling Constraints and Edge Cases
a. Ensuring All Priority Packages are Packed
- Implement a verification step post-packing to confirm that no Priority Package is left unpacked.
- If a Priority Package cannot be packed due to constraints, implement error handling or report infeasibility.
b. Weight and Dimension Compliance
- Rigorously enforce weight limits and ensure that package dimensions in their chosen orientations do not exceed ULD dimensions.
- Utilize packing algorithms that consider both spatial and weight constraints simultaneously.
c. Efficient Space Utilization
- Employ space partitioning techniques to dynamically manage available spaces within ULDs, allowing for better accommodation of subsequent packages.
5. Optimization Enhancements
a. Metaheuristic Algorithms
- Incorporate algorithms like Genetic Algorithms, Simulated Annealing, or Particle Swarm Optimization to explore a broader solution space and escape local optima, potentially leading to more cost-effective packings.
b. Parallel Processing
- Utilize multi-threading or distributed computing to handle large datasets and expedite the packing process, especially when dealing with up to 500 packages.
c. Machine Learning Integration
- Develop predictive models to anticipate optimal packing configurations based on historical data, further enhancing efficiency and accuracy.
6. Reporting and Code Development
a. Report Composition
- Methodology: Clearly explain the chosen algorithms, data structures, and decision-making processes.
- Flowcharts and Diagrams: Visual representations of the packing process and algorithm flow.
- Example Computations: Step-by-step illustration using sample data.
- Challenges and Solutions: Discuss difficulties encountered and how they were addressed.
- Limitations: Acknowledge any constraints or scenarios where the approach may underperform.
b. Code Structure
- Modularity: Organize code into clear, reusable modules (e.g., data loading, sorting, packing, coordinate assignment, cost calculation).
- Documentation: Provide comprehensive comments and documentation for ease of understanding and maintenance.
- User Instructions: Include a straightforward guide on running the code, specifying any required inputs and expected outputs.
7. Conclusion
The proposed heuristic-based approach effectively balances the need to pack all Priority Packages, optimize space and weight constraints, and minimize associated costs. By leveraging strategic sorting, efficient packing algorithms, and thoughtful cost calculations, the solution aims to meet FedEx's operational efficiency and service reliability objectives.
This structured methodology ensures a systematic and efficient resolution to the ULD optimization problem, aligning with FedEx's logistical and economic goals.