HW7

.pdf

School

Tulane University *

*We aren’t endorsed by this school

Course

516

Subject

Mechanical_engineering

Date

May 24, 2024

Type

pdf

Pages

8

Uploaded by LieutenantAardvark4281

AE512 - Dynamics, Stability, and Control of Vehicles - Spring 2024 Homework 6 Due Date : Sunday, May 12 th , 2024 at 11:59 PM (PST) 1. Cost function practice (a) Create a Matlab function cost p 1 .m which computes the cost function at a given point Figure 1: cost p 1 .m (b) Create a Matlab function gradient p 1 .m which computes the gradient of the cost function at a given point Figure 2: gradient p 1 .m (c) Use an initial point, numerically solve this problem using a gradient descent method
Figure 3: Gradientdescentsetup Figure 4: Resultingsolutionsover 35 steps (d) Plot the cost function over a given range, On the same figure, plot the sequence. On a separate graph, plot the cost as a function of the step number
Figure 5: plots of the gradient descent results and the cost vs steps. (e) Using a different initial condition and repeat part C and D Figure 6: plots of the gradient descent results and the cost vs steps. Figure 7: plots of the gradient descent results and the cost vs steps.
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