WQ HW1_2023_ZJUI (1)

pdf

School

University of Illinois, Urbana Champaign *

*We aren’t endorsed by this school

Course

434

Subject

Finance

Date

Jan 9, 2024

Type

pdf

Pages

6

Uploaded by UltraExploration8833

Report
CEE 434 Fall 2023 - ZJUI Water Quality Assignment # 1 Due on 2023.12.23 Problem 1 (40 points) Use the MATLAB file provided for the laundromat problem to design regulatory policies ( ࠵? ࠵? , ࠵? ࠵? ) and calculate costs ( ࠵? ࠵? , ࠵? ࠵? and ࠵? ࠵? ) under both Least Cost and UPR programs for the following values of ࠵? = 2,5,7,8 . Assume that ࠵? ࠵?࠵? = 4.5 , ࠵? ࠵?࠵? = 3.5 , ࠵? ࠵? = 4.0 and ࠵? ࠵? = 7.5 . In one graph, plot ࠵? ࠵? and ࠵? ࠵? versus ࠵? for both programs, and in another graph, plot ࠵? ࠵? , ࠵? ࠵? and ࠵? ࠵? versus ࠵? for both programs. Discuss the differences between the two programs based on your results. Problem 2 (60) Now let’s assume that there are three laundries discharging their waste into the lake. The initial untreated discharges from these laundries are ࠵? ࠵? 1 , ࠵? ࠵? 2 and ࠵? ࠵? 3 . Part a) Formulate an optimization model for the least cost program. Hint 1: Your model should be very similar to the least cost model discussed in lecture 12b, but there are now three dischargers. Hint 2: Considering the steady state situation and full mixing in the lake, define: ࠵? = ࠵? ࠵? 1 + ࠵? ࠵? 2 + ࠵? ࠵? 3 ࠵? . ࠵? ࠵? . Part b) Assume that the upper bound constraints for phosphorus removal are not binding. Derive the optimal solutions for the optimization model (phosphorus removals: ࠵? 1 , ࠵? 2 and ࠵? 3 ) using KKT approach. Part c) Assume that ࠵? ࠵? 1 = 55 , ࠵? ࠵? 2 = 5 , ࠵? ࠵? 3 = 18, ࠵? 1 = 1 , ࠵? 2 = 110 , and ࠵? 3 = 18 . Calculate the optimal phosphorus removals, marginal costs for each laundry, physical and financial costs for each laundry, and the total physical and financial costs for ࠵? = 25 and ࠵? = 55 . Part d) Redo Part c if we use a market-based program based on taxes instead of the least cost program.
23-12-20 下午 10:40 C:\Users\904...\untitled2.m 1 页,共 2 % Given parameters aw = 4; % empirical constant for Wembley as = 7.5; % empirical constant for Sno-White rtw = 4.5; % P generated by Wembley (before treatment) rts = 3.5; % P generated by Sno-White (before treatment) R_values = [2, 5, 7, 8]; % Values of R to loop over % Initialize results storage for Least Cost and UPR policies results_rw = zeros(2, length(R_values)); results_rs = zeros(2, length(R_values)); results_kw_LC = zeros(1, length(R_values)); results_ks_LC = zeros(1, length(R_values)); results_kt_LC = zeros(1, length(R_values)); results_kw_UPR = zeros(1, length(R_values)); results_ks_UPR = zeros(1, length(R_values)); results_kt_UPR = zeros(1, length(R_values)); % Cost objective function fun = @(x) aw*x(1)^2 + as*x(2)^2; % Optimization settings options = optimoptions( 'fmincon' , 'Display' , 'off' ); % Turn off display for cleaner output % Perform calculations for both policies for i = 1:length(R_values) R = R_values(i); % Least Cost Policy policy = 1; lb = [0, 0]; ub = [rtw, rts]; A = [-1, -1]; b = -R; Aeq = []; beq = []; x0 = [1, 1]; [x_LC, ~] = fmincon(fun, x0, A, b, Aeq, beq, lb, ub, [], options); results_rw(1, i) = x_LC(1); results_rs(1, i) = x_LC(2); results_kw_LC(i) = aw * x_LC(1)^2; results_ks_LC(i) = as * x_LC(2)^2; results_kt_LC(i) = results_kw_LC(i) + results_ks_LC(i); % UPR Policy policy = 2; Aeq = [rts, -rtw]; beq = 0; [x_UPR, ~] = fmincon(fun, x0, A, b, Aeq, beq, lb, ub, [], options); results_rw(2, i) = x_UPR(1); results_rs(2, i) = x_UPR(2); results_kw_UPR(i) = aw * x_UPR(1)^2; results_ks_UPR(i) = as * x_UPR(2)^2;
23-12-20 下午 10:40 C:\Users\904...\untitled2.m 2 页,共 2 results_kt_UPR(i) = results_kw_UPR(i) + results_ks_UPR(i); end % Plot rw and rs versus R for both programs figure; plot(R_values, results_rw(1,:), 'r-o' , R_values, results_rs(1,:), 'b-o' ); hold on ; plot(R_values, results_rw(2,:), 'r--*' , R_values, results_rs(2,:), 'b--*' ); xlabel( 'R' ); ylabel( 'rw and rs' ); title( 'rw and rs versus R for Least Cost (solid) and UPR (dashed)' ); legend( 'rw - Least Cost' , 'rs - Least Cost' , 'rw - UPR' , 'rs - UPR' ); grid on ; saveas(gcf, 'rw_rs_vs_R.png' ); % Save the figure as an image % Plotting costs versus R for both programs figure; plot(R_values, results_kw_LC, 'b--o' , R_values, results_ks_LC, 'r--o' , R_values, results_kt_LC, 'g--o' ); hold on ; plot(R_values, results_kw_UPR, 'b-*' , R_values, results_ks_UPR, 'r-*' , R_values, results_kt_UPR, 'g-*' ); xlabel( 'R' ); ylabel( 'Cost' ); title( 'Costs versus R for Least Cost and UPR Policies' ); legend( 'k_w LC' , 'k_s LC' , 'k_T LC' , 'k_w UPR' , 'k_s UPR' , 'k_T UPR' ); grid on ; saveas(gcf, 'costs_vs_R.png' ); % Save the figure as an image The Least Cost (LC) program prioritizes economic e ciency by assigning more treatment to the less expensive Wembley facility, whereas the Uniform Percentage Reduction (UPR) program mandates equal percentage reductions for all, regardless of cost. As a result, LC achieves lower overall costs with uneven treatment loads, while UPR ensures equitable treatment across laundries but may incur higher costs.
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
Problem 2 a objective function minimize cost air azrita.rs Sit ritrzt V3 R r 5Th rz r T2 V3 rT3rlirz.rs70 R r T t r p t r T s Q Cs b KKT form min cost f air 2tazrz as rs S.t g R r IT2 3 0 92 r i_r y 0 93 r2 V72 0 94 r3 0 rlir2 rs 0 Optimality ftuiog.tMzogztMsog.tn4094 0 Complementary slackness.mg 0 M292 0 M393 0 M494 0 Feasibility gi R ri rz rstogi ri rT.CO 93 52 rp 0 94 r3 873 0 M1M2 M3 iM4iri.rz.rs 0 Assume that the upper bound constraints for phosphorus removal are not binding 92 ri rT.CO 93 r2 r Tz LO
94 V3 T T340 M2 M3 M4 0 i Vf thing 0 Mig 0 g 0 i zari zazr2 2as rs EM if R ri ri rsco.M.IO riirz r s 0 Rco infeasible i Mizo ritritrs R.ir Fenaastgaz.ge R V2 aastaast Rrs aagtaags R c PC i FC i a i r i i 1 2 3 total PC Put Put PLS total FC FC it F Cz t FG rt r it V2try marginal cost M Ci zai ri For R V5 r1 23.48 rz 0.21 13 130 rt 25 PU FCI 551 40 Plrifz 5.01 Pls Is 3063 MCFMCEMG 46.96 total Pl total FC 587.05 For 12 50 ri 51.66 r2 0.47 V3 287 rt255 Pll FCI 2668.79 Plz Flz 24.26 Pls FC32148.27 MCFMCE Mls 103.32 total Pl total Pt 2841.32
d Pli airi i 1.213 Fci P litzairi r i i_ r i t total Pl Put Plz t Pls total FC F4t Flrt FCS rt ritrztr Mli zai ri For 12 25 r F 23 48 V2 0121 r3 1.30 rt 25 Pll 551 40 Plz 5101 Pl3 30.63 Fu 2031.61 FL2222981 Fl 81472 My MCEMUF 46.96 total Pl 587.05 total Fl 3076.14 For R255 r1 51 66 V2 047 V3 287 rt 55 Pu 2668.79 Plz 2426 PU3 148.27 FU 3013.85 FCL 492.34 12C 1711.51 MCFMCEM V3 103.32 ttal Pl 2841.32 total FL 5217.69
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