Question: y = - w 4 8 E I ( 2 x 4 - 3 L x 3 + L 3 x ) For this beam,
For this beam, assume:
Use an anonymous function to create the deflection equation.
Use the goldensection search method to determine the number of iterations it will take to find minimum of the function with an error that is less than Use initial guesses of and Store the optimal value for each iteration in the xopt variable.
Plot the deflection equation to confirm that your solution is accurate
Calculate the approximate error for each iteration using the equation where, phi is the golden ration, and are the current bounds, and xopt is your current estimate of the optimal value.
On the same graph, plot both the optimal value and the error with respect to the iterations to identify when the solution effectively converges. Note: use the function yyaxis to get two independent vertical axes. Using matlab code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
