Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Application

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 20

TV

Maximize 206250
Budget 5500
Maximum tv ads 6.875
maximum social media ads
maximum billboard ads
maximum newspapaer ads
Tv and social media ads 6.875
Total amount spent on bills 5500

Variables 6.875
Objective 206250
<= Billboard Newspaper
220000 216000 80000 722250
4000 4500 1000 15000 <= 15000
6.875 <= 10
10 10 <= 10
9 9 <= 10
10 10 <= 10
10 16.875 <= 6
4500 1000 0 <= 0

10 9 10
220000 216000 80000 722250
City Homes
Newspaper ads 0.04
TV commercial 0.05

Variable Decisions

# of ads
Newspaper ad 20
TV commercial 0

Objective function
To minimise the cost
18500

Constraints
Level exposed
0.8 >=
0.6 >=
NW suburbs Cost of AD
0.03 925
0.03 2000

0.4
0.6
School/Sector B C E
A 400 0 300
B 500 0 0
C 0 100 0
D 0 800 0
E 0 0 400
Total 900 900 700
Capacity of School 900 900 900

Miles
School/Sector B C E
A 5 8 6
B 0 4 12
C 4 0 7
D 7 2 5
E 12 7 0

Student mile total 5400


Totals # students
300 700
500 500
100 100
800 800
400 400
Food Item Cost ($/lb) Calories (cal/lb) Iron (mg/lb) Fat (g/lb)
Milk 0.6 295 0.2 16
Ground Meat 2.35 1216 0.2 96
Chicken 1.15 394 4.3 9
Fish 2.25 358 3.2 0.5
Beans 0.58 128 3.2 0.8
Spinach 1.17 118 14.1 1.4
Potatoes 0.33 279 2.2 0.5

1500 meal 900 meal sum


900 0.00000 27.4 124.2
4 0
49.99999997 0
60.78001747 0
50 0
Protein (g/lb) Carbohydrates (g/lb) Optimal Amount (lbs) Cost ($) Total Calories
16 22 0 0 0
81 0 0.499 1.17265 606.784
74 0 0.173 0.19895 68.162
83 0 0 0 0
7 28 0 0 0
14 19 0.105 0.12285 12.39
8 63 0.762 0.25146 212.598

0.000
283 132 0.499
0.173
0.000
0.000
0.105
0.762
Total Iron (mg)Total Fat (g)Total Protein (g)Total Carbohydrates (g)
0 0 0 0
0.0998 47.904 40.419 0
0.7439 1.557 12.802 0
0 0 0 0
0 0 0 0
1.4805 0.147 1.47 1.995
1.6764 0.381 6.096 48.006

$ 1.75
Parcel Area/ (Acres) Water irrigation limit
SE 2,000 3,200
North 2,300 3400
NW 600 800
West 1100 500
SW 500 600

8,500
6,500
SE = 2,000 Maximum = 7,400
N = 2300
NW = 600
W = 1100
SW = 500
OBF = Minimize Water Use
Wh = 110,000 Wh = 1.6 Wh = 50 Bush per Acre
A = 1,800 A = 2.9 A = 1.5 Tons
B = 2,200 B = 3.5 B = 2.2 tons
Wh Cost = $2
A = $40
B = $50
Crop Maximum sales
Wheat 110,000
Alfalfa 1,800
Barely 2,200

Formulate Constraints
Max Limit = 7,400
SE <= 3200 Southeast's Limit (Less than or Equal too)
N <= 3400 North's Limit (Less than or Equal too)
NW <= 800 Northwest Limit ((Less than or Equal too)
W <= 500 West's Limit (Less than or Equal too)
SW <= 600 SW (Less than or Equal too)
Wh = 2 Wheat's Water Needed per Acre
A= 2.9 Alfalfa Water Needed per Acre
B= 3.5 Barley Needed Per Acre
Water needed per acre Profit per crop
2 220000.00 2
2.9 72000.00 40
3.5 110000.00 50

$ 402,000.00

Solution Crop Parcel


Wheat North
Wheat Northwest
Wheat West
Wheat Southwest
Alfalfa Southwest
Barley Southeast
Barley North
Crops per Acre max acres crop amount
1.5 73333.333 1
2.2 818.182 1
50 44.000 1

74195.52

Acres Planted
1,250
500
312
137
131
600
400
Decision Variables X Y
2790.909 2104.545

Objective Function 2280 1515


Max. 9551659

Subject to What was used


8 5 32850
3.1 2.6 14123.64
1 2 7000
0 1 2104.545
<= 32850
<= 15000
<= 7000
<= 2800
X1 X2 X3
Minimize 30 30 34.8
Constraint 1 1 - 1
Constraint 2 - 1 -
Constraint 3 1 - -15
Constraint 4 - 0.05 -
Solution 32608.8 57970.84 21739.2

Variable Value Cost that's reduced Value (Original)


X1 32608.8 - 30
X2 57970.84 - 30
X3 21739.2 - 34.8
X4 11594.17 - 34.8
Constraint Dual Value Slack/Surplus Value (Original)
Constraint 1 -31.92 - 54348
Constraint 2 -30.8 - 69565
Constraint 3 19.2 - -
Constraint 4 16 - -

Optimal Solution Minimize


X1 32608.8 $ 30.00
X2 57970.84
X3 21739.2
X4 11594.17
X4
34.8
- >= 54348
1 >= 69565
- <= 0
-25 <= 0
11594.17 Min= 3877390

Lower Bound Upper Bound


-23.2 34.8
-6.96 34.8
30 beyond
30 beyond
Lower Bound Upper Bound
39 beyond
- beyond
-8152.2 5434.8
-17391.25 3478.25

$ 30.00 $ 34.80 $ 34.80 3877390


Leg Min Fuel (1,000 GAL)
Atlanta-Los Angeles 24
Los Angeles-Houston 15
Houston-New Orleans 9
New Orleans-Atlanta 11

City
Atlanta
Los Angeles
Houston
New Orleans

Route
Fuel on Arrival (Los Angeles)
Fuel on Arrival (Houston)
Fuel on Arrival (New Orleans)
Fuel on Arrival (Atlanta)
Max Fuel (1,000 GAL) Regular Fuel Consumption (1,000 GAL)
36 12
23 7
17 3
20 5

Fuel to Purchase (1,000 GAL) Fuel Remaining After Leg (1,000 GAL)
18 6
3 12
1 8
5 6

Equations
FL = A + FA - (12 + 0.05(A + FA - 24))
FH = L + FL - (7 + 0.05(L + FL - 15))
FN = H + FH - (3 + 0.05(H + FH - 9))
FA = N + FN - (5 + 0.05(N + FN - 11))
Fuel Price per Gallon ($)
$ 4.15
$ 4.25
$ 4.10
$ 4.18

You might also like