Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Newton's Method with Trust Region Homework Assignment for AMSC 607 and CMSC 764, Fall 2008, Assignments of Mathematics

Instructions for a homework assignment in which students are required to write a matlab function that minimizes a multivariate function using newton's method with trust region. The assignment includes directions based on nash and sofer's problem 10.17, and notes on how to implement the method, document the code, and obtain gradient and hessian values. The submission requirements and maximum points are also outlined.

Typology: Assignments

Pre 2010

Uploaded on 02/13/2009

koofers-user-nc7
koofers-user-nc7 🇺🇸

10 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download Newton's Method with Trust Region Homework Assignment for AMSC 607 and CMSC 764, Fall 2008 and more Assignments Mathematics in PDF only on Docsity! AMSC 607 / CMSC 764 Homework 2, Fall 2008 Due 2pm Tuesday October 7 Assignment: Write a Matlab function that minimizes a function using New- ton’s method with trust region. Follow the directions in parts (ii), (iii), (iv), and (v) of Nash and Sofer’s Problem 10.17, p.340 (the 106th page of the pdf file). (In my hard-copy of the book, it is Problem 16, p.327.) It begins, “Write a computer program for minimizing a multivariate function....” Notes: • Compute an eigendecomposition of each Hessian matrix and then use the method of Homework 1 to find the correct value of γ. • Your implementation of Newton’s method should be in a function newtonmin which can be easily applied to other functions f(x) with x ∈ Rn and n arbitrary. • The function newtonmin should be well-documented, as if it were a library code. In particular, documentation at the top of the function should include: – purpose of code, since this is certainly the first thing a user wants to know! – name of author, since it provides someone to whom bugs can be reported and questions asked. – date of the original code and a list of later modifications, since it gives information such as whether the code is likely to run under the current computer environment and whether it might in- clude the latest advances. – description of each input parameter, so that a user knows what information needs to be provided and in what format. – description of each output parameter, so that a user knows what information will be yielded. – brief description of the method and references, to help a user decide whether the method fits his/her needs. In-line documentation should identify the major sections of the code and provide some detail on the method used. It is important in specifying the algorithm, identifying bugs, and providing information to someone who might need to modify the software in order to solve a slightly different problem. Note that the documentation should be an integral part of the code; in other words, it is not enough to include it in a separate document, because a potential user might not have access to that document. 1
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved