Exercise 2: Cargo airplane (Optional)#

Original problem#

A cargo airplane has three compartments for storing freight: Front, central and rear. Each one of those compartments has the following limitations in weight and space:

Compartment

Weight (\(\text{ton}\))

Volume (\(\text{m}^3\))

Front

8

12000

Central

12

10000

Rear

14

6000

There are four cargo types, and the following maximum cargo (of each type) is available to be transported from a warehouse:

Cargo

Maximum cargo available (\(\text{ton}\))

Unit Volume (\(\cfrac{\text{m}^3}{\text{ton}}\))

Unit profit (\(\cfrac{\text{€}}{\text{ton}}\))

Type I

18

180

590

Type II

14

250

580

Type III

20

300

580

Type IV

12

80

600

Task 1#

Build the mathematical programming model in order to define the amount of cargo of each type that should be transported and how it should be distributed in order to be efficient during the flight

Task 2#

Model the problem in Python using Gurobi.

Task 3#

Task 4#

What is the distribution of cargo for the optimal solution?

Challenges#

Challenge 1#

For efficiency purposes, the total weight transported in all compartments must be the same.

Task 1#

How do you change the model?

Task 2#

Task 3#

What is the distribution of cargo for the optimal solution?

Challenge 2#

The weight of type I must be double the Type II and III together.

Task 1#

How do you change the model?

Task 2#

Task 3#

What is the distribution of cargo for the optimal solution?

Challenge 3:#

The weight of cargo in the frontal area must be at least double the cargo in the rear and central areas together.

Task 1#

How do you change the model?

Task 2#

Task 3#

What is the distribution of cargo for the optimal solution?

Attribution

This chapter is written by Gonçalo Homem de Almeida Correia, Maria Nogal Macho, Jie Gao and Bahman Ahmadi. Find out more here.