Tutorial 1 Solutions (2019)
Tutorial 1 Solutions (2019)
Problem 1 :
Decision variables :
Let :
Objective Function:
Max Z= 60 X1 + 20 X2
Subject to:
X1 , X2 ∈ Z+ [Integrality constraint]
Problem 2:
Decision Variables:
Let:
Objective Function:
Min Z= 7 X1 + X2
Subject to:
Problem 3:
Decision variables:
Objective Function:
Max Z= *2 241X1 + **3 323X2 * Unit profit for sedans = Price – labor cost =
2345 – (16*3.5) – (15*2)-(12*1.5) = 2241
Subject to:
** Unit profit for sports cars =3456-(16*4)-
• Workshop 1 constraint : (15*3)-(2*12) =3323
3.5X1+4X2 ≤ 1500
• Workshop 2 constraint :
2X1+3X2 ≤ 2 000
X1 ≥ 120
Compact Form:
Parameters:
Objective function:
Max Z= ∑𝑖 Pi ∗ Xi
∀ i, Xi ≥ 0
∀ i, Xi ∈ Z+ ( integers)
Solutions- Tutorial 1 2019
Problem 4:
→ we maximize the total expected value of assets at the end of the planning period (1
year)
Subject to :
→ Total amount invested should not exceed the amount available + the amount borrowed:
X1+X2+X3+X4+X5+X6 – Y ≤ 300000
Y ≤ 100000
→ The expected value of assets (exclusive interest) at the end of the planning period should
be at least 7 % higher than at the beginning:
1.18X1+1.10X2+1.02X3+1.09X4+1.04X5+1.20X6 ≥ 1.07(X1+X2+X3+X4+X5+X6 )
→ Invest at least 50 % of all the money invested in stocks and bonds combined:
20X1+12X2+X3+7X4+3X5+30X6 ≤ 10(X1+X2+X3+X4+X5+X6 )
→ Non-negativity constraints:
Let :
i = {1,….,6}
Objective Function:
→ we maximize the total expected value of assets at the end of the planning period (1 year)
Subject to:
• Total amount invested should not exceed the amount available + the amount borrowed:
∑i Xi ≤ ( 300,000 +Y)
Y ≤ 100,000
• The expected value of assets (exclusive interest) at the end of the planning period should be at
least 7 % higher than at the beginning
• Invest at least 50 % of all the money invested in stocks and bonds combined:
We define the binary constant: status_1i, it takes two values 1 or 0, for assets 4, 5 and 6
(stocks and bonds) the corresponding status_1i takes the value of 1, for the rest of the assets it
takes the value of zero, (check the excel file), the constraint becomes:
• Invest no more than 20 % of total amount available (excluding the amount borrowed) in real
estate and silver combined
X1+X2 ≤ 0.2*300,000
Following the same logic as the previous constraint, we define the binary constant status_2i ,
the constraint becomes:
∑i Xi*Riski ≤ 10*∑i Xi
• Non-negativity constraints :
∀ i , Xi ≥ 0
Y≥0
Problem 5:
Decision variables:
1 𝑖𝑓 𝑝𝑟𝑜𝑗𝑒𝑐𝑡 𝑖 𝑖𝑠 𝑐ℎ𝑜𝑠𝑒𝑛
Let: 𝑋𝑖 = {
0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒
Objective Function:
max ∑ ExpBenefit i ∗ 𝑋𝑖
𝑖∈𝑝𝑟𝑜𝑗𝑒𝑐𝑡𝑠
Subject to:
4) Project 3 cannot be accepted unless at least one of the projects 2 and 4 is accepted
X3≤ X2 + X4
5) Project 2 cannot be accepted unless at least two of the projects 5,3 and 4 are accepted
2X2 ≤ X3 + X4+ X5
X1 + X2+ X3 + X4+ X5 ≥ 3
Problem 6:
Parameters:
Subject to:
For j= 1,.., n ; ∑𝑚
𝑖=1 𝑋𝑖𝑗 = 1
[Xij is binary ]
Xij ∈{ 0,1}
Problem 7:
Decision variables:
Let: 𝑋𝑖𝑗 = the pounds of oranges of type i (type 1 = grade 9 and type 2= grade 6) used to
produce product j (product 1=oranges sold in bags, product 2= orange juice)
(Net profit for product 1: 50cents-20cents=30cents or 0.3$, Net profit for product: $1.50-
$1.05=45cents or 0.45$)
Subject to
[For grade 9]
[For grade 6]
[the average quality for oranges used in orange juice must at least 8]
[Non-negativity constraint]
Parameters:
Objective Function
Subject to :
[Availability]
[Quality]
2 2
∑ 𝑋𝑖𝑗 ∗ 𝑄𝑖 ≥ ∑ 𝑋𝑖𝑗 ∗ 𝑅𝑄𝑗 , ∀ 𝑗
𝑖=1 𝑖=1
→
2
∑ 𝑋𝑖𝑗 ∗ (𝑄𝑖 − 𝑅𝑄𝑗 ) ≥ 0 , ∀ 𝑗
𝑖=1
[Non-negativity]
Ɐ i , Ɐ j , 𝑋𝑖𝑗 ≥ 0