Path: news.mathworks.com!not-for-mail
From: Marcelo Marazzi <mREMOVEmaALLraCAPITALSzzi@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Have fminunc show the gradient?
Date: Thu, 14 Aug 2008 16:58:02 -0400
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g8268q$384$1@fred.mathworks.com>
References: <g7sm8a$fgh$1@fred.mathworks.com>
NNTP-Posting-Host: marazzim.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1218747482 3332 172.31.57.176 (14 Aug 2008 20:58:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 14 Aug 2008 20:58:02 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
In-Reply-To: <g7sm8a$fgh$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:485561



Dave,

See the output function in the doc, which provides a number of 
optimization quantities at each iteration, e.g. the gradient in
fminunc:
http://www.mathworks.com/access/helpdesk/help/toolbox/optim/ug/f19175.html#f11022

-Marcelo

David Doria wrote:
> I have been looking through the help for a long while and
> cant seem to find how to make fminunc display the gradient
> at each iteration - maybe I am just missing it??
> 
> Thanks,
> 
> Dave