Professional Documents
Culture Documents
Full name:
Student ID:
PART I: Writing 75 minutes (70 points):
A. Statistics
Q1 (8 pts).
Solutions
4 .𝐶 3 )
(𝐶11 13
a. P(there are exactly 4W in the group) = 7 = 0.2727 (4pts)
𝐶24
3 4
b. Number of ways: 𝑛 = (𝐶11 . 𝐶13 ) = 117975 (4pts)
Q2 (8 pts).
Solutions
Let CP: Car phone user;
NC: Not a car phone;
SV: Speed violation;
NS: No Speed violation.
𝑃(𝐶𝑃 ∩𝑁𝑆) 305
a. 𝑃(𝐶𝑃|𝑁𝑆) = = 725 = 0.4207 (4pts)
𝑃(𝑁𝑆)
B. LINEAR PROGRAMMING
Q4 (23 pts).
Solutions
a. (5 pts) Let X1 (or A or XA) volume of product A, X2 (or B or XB) volume of product B.
Model will be:
Maximize Z = 40 X1 + 90 X2
Subject to:
X1 >= 0.8(X1+X2)
X1 <= 100
X2 >= 20
2X1 + 4 X2 <= 300
OR
Maximize Z = 40 X1 + 90 X2 (1pt)
Subject to:
0.2 X1 – 0.8 X2 >= 0 ; (1pt)
C. AHP
Q5 (20 pts)
Mr. ABC wants to find the best car from three alternatives: Honda, Ford and Toyota. There are three criteria
named Price, Fashion and Utility. Importance judgments are given:
Solutions
Criteria (3pts)
Price Fashion Utility Price Fashion Utility
Price 1.000 3.000 5.000 Normalization Price 0.652 0.500 0.769 Average Price 0.640
Fashion 0.333 1.000 0.500 Fashion 0.217 0.167 0.077 Fashion 0.154
Utility 0.200 2.000 1.000 Utility 0.130 0.333 0.154 Utility 0.206
Sum 1.533 6.000 6.500 1.000 1.000 1.000 1.000
CI 0.0835305 CR 0.144
Final Weights
a.
MODEL:
SETS:
Tainguyen /material/: Capacity;
Product /PA PB/: Profit, sanluong;
Lienket( Tainguyen, Product): FORMULA;
ENDSETS
DATA:
! Tainguyen;
Capacity, Profit, Formula, ConstA, ConstB = @OLE("P:\Giang day BK - 2021 -
2022\COmputer Application\Exam\Tai lieu\Lingo interface Exam 26-12-22 Index 1-
Solutions.xlsx", 'Capacity', 'Profit', 'Formula', 'ConstA', 'ConstB');
ENDDATA
END
b.
MODEL:
SETS:
Tainguyen /material/: Capacity;
Product /PA PB/: Profit, sanluong;
Lienket( Tainguyen, Product): FORMULA;
ENDSETS
DATA:
! Tainguyen;
Capacity, Profit, Formula, ConstA, ConstB = @OLE("P:\Giang day BK - 2021 -
2022\COmputer Application\Exam\Tai lieu\Lingo interface Exam 26-12-22 Index 1-
Solutions.xlsx", 'Capacity', 'Profit', 'Formula', 'ConstA', 'ConstB');
@OLE("P:\Giang day BK - 2021 - 2022\COmputer Application\Exam\Tai lieu\Lingo interface
Exam 26-12-22 Index 1-Solutions.xlsx", 'Sanluong')= Sanluong;
!Material= 300 ;
! Lambong 100;
!Profit = 40 90
;
! FORMULA = 2 4 ;
ENDDATA
END
c.
MODEL:
SETS:
Tainguyen /material/: Capacity;
Product /PA PB/: Profit, sanluong;
Lienket( Tainguyen, Product): FORMULA;
ENDSETS
DATA:
! Tainguyen;
!Capacity, Profit, Formula, ConstA, ConstB = @OLE("F:\Giang day BK - 2021 -
2022\COmputer Application\Exam\Tai lieu\Lingo interface Exam 26-12-22 Index 1-
Solutions.xlsx", 'Capacity', 'Profit', 'Formula', 'ConstA', 'ConstB');
! @OLE("F:\Giang day BK - 2021 - 2022\COmputer Application\Exam\Tai lieu\Lingo
interface Exam 26-12-22 Index 1-Solutions.xlsx", 'Sanluong')= Sanluong;
!Material= 300 ;
! Lambong 100;
!Profit = 40 90 ;
! FORMULA = 2 4 ;
ENDDATA
END
Q7 (10 pts).
As in Q5.
GOOD LUCK!