Chp4 Tutorial: Prob 4.25 Solution

Slides:



Advertisements
Similar presentations
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Advertisements

Chp3 Tutorial: Prob 3.14 Solution
ENGR-25_Plot_Model-2.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_9_3_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-36_Lec-07_Moments_Intro.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Chp6_Tutorial_PolyFit_J_S_rsq.pptx 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR36_Tutorial_Triangle-Prism_Mass_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-06_Fa08_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
Chp 4: Moment Mathematics
MTH16_Lec-14_sec_10-1_Infinite_Series.pptx 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical &
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-14_Fa08_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-36_Lec-24_Dist_Loads.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
MTH55_Lec-62_sec_9-4a_Log_Rules.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-25_MATLAB_OverView-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-25_Programming-3.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-24_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
Chp 2: Force Resultants (1)
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-45_Photo_Scaling_Exercise.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_10-25_Catenary_Solution.ppt.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered.
ENGR-25_Programming-4.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods 1 Bruce Mayer, PE Licensed Electrical.
ENGR-25_Prob_2-24_Solution.ppt 1 Bruce Mayer, PE ENGR/MTH/PHYS25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_Prob_6-12_Solution.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-10_HW_Engr_Fields_Disciplines_Instructions.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed.
MTH55_Lec-42_sec_7-3b_Factor_Radicals.ppt 1 Bruce Mayer, PE Chabot College Mathematics Bruce Mayer, PE Licensed Electrical & Mechanical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-43_Prob_5-80_Dual-Src_Complex-Pwr_Solution_.pptx 1 Bruce Mayer, PE Engineering 43: Electrical Circuits & Devices Bruce Mayer,
ENGR-25_Programming-1.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Registered Electrical.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
E ENGR36_Tutorial_Areal_Moment_of_Inertia.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical &
ENGR-36_Prob_4_5_32_ACAD_Solution.ppt 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-36_Lab-06_Fa07_Lec-Notes.ppt 1 Bruce Mayer, PE Engineering-36: Vector Mechanics - Statics Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
MTH16_MTE1_Review.pptx 1 Bruce Mayer, PE Mathematics 16: Applied Calculus-II Bruce Mayer, PE Licensed Electrical & Mechanical.
MTH15_Lec-17a_sec_3-5_Round_End_Fence_Enclosure.pptx 1 Bruce Mayer, PE MTH15: Applied Calculus I Bruce Mayer, PE Licensed Electrical.
ENGR-45_Lec-30A_Final_Exam-Review.pptl.ppt 1 Bruce Mayer, PE Engineering-45: Materials of Engineering Bruce Mayer, PE Licensed Electrical & Mechanical.
© ENGR-43_Prob_14-32_OpAmp_OutPut_Current.pptx 1 Bruce Mayer, PE Engineering-43 Electrical Circuits & Devices Bruce Mayer, PE.
ENGR-25_HW-01_Solution.ppt 1 Bruce Mayer, PE Engineering/Math/Physics 25: Computational Methods Bruce Mayer, PE Licensed Electrical.
ENGR-10_Why-n-Where_Self-Intro_Order.pptx 1 Bruce Mayer, PE Engineering-10: Intro to Engineering Bruce Mayer, PE Licensed Electrical.
ENGR36_Flat_n_Belt_Friction_Balance_H13e_P8_133.pptx 1 Bruce Mayer, PE Engineering-36: Engineering Mechanics - Statics Bruce Mayer, PE Licensed Electrical.
ENGR-25_Linear_Regression_Tutorial.ppt 1 Bruce Mayer, PE Engineering-25: Computational Methods Bruce Mayer, PE Licensed Electrical & Mechanical Engineer.
a.k.a.: Draw in the Diamond
Test Your Understanding Chp03
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Catenary Tutorial Part-2
Licensed Electrical & Mechanical Engineer
Chp3 Tutorial: Prob 3.15 Solution
Licensed Electrical & Mechanical Engineer
Registered Electrical & Mechanical Engineer
Lab-23 Chp10 Beam VM Diagrams By Calculus
Chp3 Nodal Analysis & MATLAB
Licensed Electrical & Mechanical Engineer
Test Your Understanding Chp01
Chp4, Lab-03 Example Problems 4.5.[60,54]
Chp12 Prob Solution Common-Source pFET Amplifier
Day1 Learning Assistant Intro
Licensed Electrical & Mechanical Engineer
Licensed Electrical & Mechanical Engineer
Prob 9-28 Solution Tutorial
Presentation transcript:

Chp4 Tutorial: Prob 4.25 Solution Engineering 25 Chp4 Tutorial: Prob 4.25 Solution Bruce Mayer, PE Licensed Electrical & Mechanical Engineer BMayer@ChabotCollege.edu

The Situation Optimize Distribution Center Location for Customers:      

The Final Hand Notes

GamePlan Illustrated Set x-value (m-index) Test 31 y-values (n-index) Increment x-value (m = m+1) Test 31 new y-values Repeat

The Function File Prob4_25_Dense_Road.m % Bruce Mayer, PE * 21Feb06 % ENGR25 * Problem 4-25 % file = Prob4_25_Dense_Road.m % Find Optimum Location for Shipping Distribution Center % % INPUT SECTION - Data For Six Shipping Destinations xloc = [1,7,8,17,22,27]; % X-CoOrd in Miles yloc = [28,18,16,2,10,8]; % Y-CoOrd in Miles V = [3,7,4,5,2,6]; % Shipping Volume in Tons/Week % Initialize Low-Cost Location & CoOrds Collection Vectors %% Units for Collection Vectors: [$-Cost, X-miles, Y-Miles] C_Lo = [1e6, 31, 31]; C_L1 = [1e6, 31, 31]; C_L2 = [1e6, 31, 31]; % CALCULATION SECTION % vary X&Y for Dist Cntr; calc cost at each location for m = 1:30 % vary X-CoOrd for n = 1:30 % vary Y-CoOrd for k = 1:6 % Calc Dist & Cost for 6 Destinations d(k) = sqrt((m-xloc(k)).^2 + (n-yloc(k)).^2); cost(k) = 0.5*d(k)*V(k); end % Sum the 6 costs for location (m,n) Cmn = sum(cost); % Compare to Previous value for Low-Cost if Cmn < C_Lo(1) % replace previous if true C_L2 = C_L1; C_L1 = C_Lo; C_Lo = [Cmn, m, n]; % REPORT RESULTS display('The LOWEST-Cost Option in [$-cost, X-miles, y-miles]') disp(C_Lo) display('The 2nd Lowest-Cost Option in [$-cost, X-miles, y-miles]') disp(C_L1) display('The 3rd Lowest-Cost Option in [$-cost, X-miles, y-miles]') disp(C_L2)

The Command Session >> run Prob4_25_Dense_Road The LOWEST-Cost Option in [$-cost, X-miles, y-miles] 147.2551 9.0000 16.0000 The 2nd Lowest-Cost Option in [$-cost, X-miles, y-miles] 147.3513 8.0000 16.0000 The 3rd Lowest-Cost Option in [$-cost, X-miles, y-miles] 150.3551 8.0000 15.0000