[SOLVED] CS6210 Assignment 4

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Homework4-gcrxsj.zip (264.7 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (3 votes)

Note: Please use Matlab, or a public domain approximation to it in this assignment. The code must compile on one of the lab machines with your instructions. Document your code thoroughly!

Instructions
1.Write a Newton’s method code to solve the pair of equations given by

f(x,x)x3x 1 11212

f (x , x )  x 3  x 1 21221

Use appropriate criteria to measure convergence and to terminate the iteration. Use starting values of x  1.0, x  0.1 .Perform a few experiments with different starting values

and count the number of iterations it takes to get to convergence.
2. Repeat the process with the potentially difficult system of equations given by

f(x,x)x2x2 20 11212

f(x,x)e(x11) x2 1.00 212 2

Using the top equation to eliminate x2 from the bottom equation. Find the solution either by using. Newton’s method for a single equation or by guesswork. What happens if the last

term in the second equation is -2.0 instead of -1.0?
Solve the full problem with values x 1.1,x 1.1, x 2.0,x 0.5 , x 3.0,x 5.0

12

x  0.7, x  1.14 as starting values. In which cases do you get a solution?. 12

121212

1

Verify your results by using the top equation to eliminate x2 from the bottom equation. Find the solution either by using. Newton’s method for a single equation or by guesswork.

Does the matlab routine fsolve compute a solution in all these cases?

3. LORAN LOng RAnge Navigation calculates the position of a boat at sea using signals from fixed transmitters. From the time differences of the incoming signals the boat obtains differences of distances to the transmitters. This leads to two equations that represent the distances such as;

12 f(x,x)x2 x2 1

1 1 2 1862 3002 1862 f(x,x)(x2500)2(x1300)2 1

2 1 2 2792 5002 2792
Implement a Newton solver for this system and define the Jacobian matrix.

Using (400,400) as a starting point and run the solution for 25 iterations. This is enough to get to convergence?. Repeat for all starting values from (401, 401) to (600,600) in increments of 1 (402,402) etc . Which values does the method converge to for which starting values and how many different solutions are there?

4. Use the simple gradient descent program provided in the lecture slides to solve Problem 8.21 in Holmes.

5. (a) Use the provided simple gradient descent program supplied to solve the Rosenbock Problem. Use and accuracy requirement of 1.0e-8 and find how many iterations are needed to get the solution when starting from (0.5, 0.5) (0.1, 0.1) and (-0.5 0.5).

5. (b) Implement the Armijo algorithm on page 361-3 of Holmes. How much does this reduce the number of iterations needed?

5 (c) Implement the Adam method which is one of the most commonly used methods in machine learning and see if that helps. Notes on this method are on line as are many examples of its use with the Rosenbrock function.

  • Homework4-gcrxsj.zip