HW4-2023-Solutions
pdf
School
University of Illinois, Urbana Champaign *
*We arenβt endorsed by this school
Course
434
Subject
Industrial Engineering
Date
Jan 9, 2024
Type
Pages
5
Uploaded by hdaggett001
1
Problem 1 (60 points): Two-stage Stochastic Optimization
Part a)
Set
?
0
, ?
0
as the land given to plant rice and corn respectively, and
?
π
, ?
π
as the land for rice and
crop given up under scenario i (i = 1,2,3,4,5 and stands for vary dry, dry, normal, wet and very wet
conditions respectively).
The problem could be formulated as follows.
There are several different formulations of the objective function. Two possible formulations are given as
follows. Note, it is also correct if you choose the decision variables at the second stage as the amount of
the crops you irrigate at the second stage instead of the crops you give up at the second stage.
One formulation for the objective is given as follows. In this formulation, in the first stage, you only have
planting cost, and then in the second stage, you pay the water cost (only for the potion you decide to
keep), and you get benefit (only out of the potion that you decide you keep). This is actually the most
natural way to think of this problem.
max ??? ????π? = β[?π???π?? ????]
?π??? ??π??
+ [????π? β ????? ???? ]
?????? ??π??
= (β0.25?
0
β 0.1?
0
) Γ 1000
+ β ?
π
(2.0(?
0
β ?
π
) + 0.5(?
0
β ?
π
) β 0.05 Γ 3(?
0
β ?
π
) β 0.05 Γ 1(?
0
β ?
π
))
5
π=1
Γ 1000 = 1600?
0
+ 350?
0
β β ?
π
(1850 ?
π
+ 450 ?
π
)
5
π=1
($)
An alternative formulation is given as follows, which calculates the net profit by subtracting the net profit
you give up at the second stage from the net profit you will gain if you keep planting all the crops you
planted at the first stage.
max ??? ????π?
= [????π? β ?π???π?? ???? β ????? ????]
?π??? ??π??
β [????π? β ????? ???? ]
?π??? ?? π? ?β? ?????? ??π??
= (2.0 ?
0
+ 0.5 ?
0
β 0.25?
0
β 0.1?
0
β 0.05 Γ 3?
0
β 0.05 Γ 1?
0
) Γ 1000
β β ?
π
(2.0 ?
π
+ 0.5 ?
π
β 0.05 Γ 3?
π
β 0.05 Γ 1?
π
)
5
π=1
Γ 1000
= 1600?
0
+ 350?
0
β β ?
π
(1850 ?
π
+ 450 ?
π
)
5
π=1
($)
Here,
?
π
is the probability for each possible scenario, and their value could be found in the following
table.
?
1
?
2
?
3
?
4
?
5
0.2
0.25
0.40
0.1
0.05
2
And the problem should be solved subject to the following constraints.
1.
Land constraints.
?
0
+ ?
0
β€ 100 (π = 1,2,3,4,5)
2.
Water constraints.
3(?
0
β ?
π
) + (?
0
β ?
π
) β€ π΄??ππ??π? ?????
π
Here,
π΄??ππ??π? ?????
π
(unit ha.foot) is the amount of water available under each scenario, and
their values could be found in the following table.
π΄??ππ??π? ?????
1
π΄??ππ??π? ?????
2
π΄??ππ??π? ?????
3
π΄??ππ??π? ?????
4
π΄??ππ??π? ?????
5
20
45
60
75
90
3.
Total given up limitations.
?
π
β€ ?
0
?
π
β€ ?
0
4.
Non-negative constraints.
?
π
, ?
π
β₯ 0 (π = 0,1,2,3,4,5. )
Solving the problem by excel solver, and we can get the following solution.
First stage
Very dry
Dry
Normal
Wet
Very Wet
x (ha)
25.00
18.33
10.00
5.00
0.00
0.00
y (ha)
0.00
0.00
0.00
0.00
0.00
0.00
And under this condition, the total profit will be $
24891.67
.
Part b)
The shadow price of water under different conditions are shown as follows.
Very dry
Dry
Normal
Wet
Very Wet
Shadow Price
($/ha.foot)
123.3333
154.1667
246.6667
9.166667
0
As we can see from the table above, the shadow price for water first goes up with water availability from
very dry to normal and then goes down with water availability from normal to very wet. There are three
different factors that could affect the shadow price of water. The first factor is that whether the water
constraint is a binding constraint under the scenario. If water constraint is not binding under one scenario,
the shadow price of water will be zero. For example, under very wet condition, the water constraint is not
binding, namely, there is still abundant water. Therefore, the total profit will not go up with unit increment
in the water availability under such scenario. Second, the probability of a scenario also affects the shadow
price of water. Scenarios with higher possibility have higher shadow price, as it has more possibility to add
the profit with one unit increase in water availability under scenarios with higher possibility. Actually, the
shadow price of water under scenarios of very dry, dry and normal is proportional to the possibility of the
scenarios. Third, whether increasing water availability under one scenario will affect the first stage decision.
3
For example, for the wet scenario, increasing in the water availability will increase the planning area for
planting rice, and consequently will affect the amount of given-up crop under other scenarios. Therefore,
increasing unit water availability will not only increase the profit under wet scenario, but also increase the
loss of given-up crops under very dry, dry and normal scenarios. Therefore, the shadow will become lower.
Part c)
The deterministic model can be adapted from the stochastic case for each scenario.
Set
?
0
,?
0
as the land
given to plant rice and corn respectively. Five separate models are developed for each scenario i (i =
1,2,3,4,5 and stands for vary dry, dry, normal, wet and very wet conditions respectively).
The constraints are the same as Part a; however, there is only one water constraint based on the water
availability for the relevant scenario,
i
.
The objective function is:
max ??? ????π? ??? ??????π?, π = [β?π???π?? ???? + ????π? β ????? ????]
????π?π? π
= (β0.25?
0
β 0.1?
0
) Γ 1000 + (2.0?
0
+ 0.5?
0
β 0.05 Γ 3?
0
β 0.05 Γ 1?
0
) Γ 1000
= 1600?
0
+ 350?
0
($)
1.
Land constraints.
?
0
+ ?
0
β€ 100
2.
Water constraints.
3?
0
+ ?
0
β€ π΄??ππ??π? ?????
π
3.
Total given up limitations are no longer relevant.
4.
Non-negative constraints.
?
0
, ?
0
β₯ 0
Solving the deterministic model for each scenario using the excel solver, we can get the following
solution.
Scenario
Net Profit ($)
Rice Planted
(ha)
Corn Planted
(ha)
Rice given up
(ha)
Corn given up
(ha)
Very Dry
$10,666.67
6.67
0
0
0
Dry
$24,000.00
15
0
0
0
Normal
$32,000.00
20
0
0
0
Wet
$40,000.00
25
0
0
0
Very Wet
$48,000.00
30
0
0
0
The average net profit over all scenarios (weighted by probabilities) is $27,333.33.
The average amount
of rice planted over all scenarios (weighted by probabilities) is 17.084 ha. The average corn planted over
all scenarios (weighted by probabilities) is 0 ha.
Comparing the stochastic and deterministic models, the deterministic model does not require any land to
be given up in the second stage because there is no uncertainty about the water availability.
The average
amount of rice planted is less in the deterministic case (17 ha) than the stochastic case (25 ha); the
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
4
average net profit is higher in the deterministic case ($27,333.33) than the stochastic case ($24,891.67).
By having complete knowledge of future water availability, the farmer is able to plant less (saving
planting costs) to maximize the net profit.
Without complete knowledge of future water availability
(probabilities of each scenario are known), the farmer must plant more (incurring higher planting costs)
and later give up those crops to maximize the expected net profit.
The table below compares the total irrigated land for each crop for the stochastic and deterministic
models:
Stochastic
Deterministic
Scenario
Rice
Irrigated (ha)
Corn
Irrigated (ha)
Net Profit
($)
Rice
Irrigated (ha)
Corn
Irrigated (ha)
Net Profit
($)
Very Dry
6.67
0
$24,891.67
6.67
0
$10,666.67
Dry
15
0
15
0
$24,000.00
Normal
20
0
20
0
$32,000.00
Wet
25
0
25
0
$40,000.00
Very Wet
25
0
30
0
$48,000.00
The amount of rice irrigated is very similar between the models.
They differ for the Very Wet scenario,
which is highly unlikely.
The stochastic model recommends planting less than the optimal amount of rice
for the Very Wet scenario because the scenario is unlikely (probability = 0.05) and would incur more
planting costs for the other, more likely scenarios.
5
Problem 2 (40 points)
Decision variables:
?
1
: ???? ?? ?π??; ?
2
:???? ?? ????
Objective function:
max ? = 2?
1
+ 0.5?
2
Constraints:
{
?
1
+ ?
2
β€ 100
π???(????? ??? β€ ????? ???ππ??πππ??) β₯ πΌ β 3?
1
+ ?
2
β€ π β πΞ¦
β1
(πΌ)
For question (a)
Plug in
πΌ = 0.95
,
Ξ¦
β1
(0.95) = 1.645
,
π = 60
,
π = 10
to the 2
nd
constraint, we can obtain the solution:
?
1
β
= 14.52 ?
2
β
= 0, ?
β
= 29.03
For question (b)
Replace the 2
nd
constraint with
3?
1
+ ?
2
β€ 60
, solve the model and we obtain:
?
1
β
= 20, ?
2
β
= 0, ?
β
= 40
The uncertainty of water availability will cause less profit.
For question (c)
Repeating the procedure of question (a) with
π β {8,10,12}
, we can obtain the following table:
We can observe that with larger uncertainty of water availability, i.e., greater
π
, the optimal planting
strategy will end up with more conservative strategy and consequently the profit will be less.
π
?
1
β
?
2
β
?
β
8
15.61
0
31.23
10
14.52
0
29.03
12
13.42
0
26.84