Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Problem using fminunc
Replies: 20   Last Post: May 20, 2012 9:41 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Matt J

Posts: 4,979
Registered: 11/28/09
Re: Problem using fminunc
Posted: May 17, 2012 12:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Wei" wrote in message <jp2jer$51q$1@newscl01ah.mathworks.com>...
> I want to use fminunc to solve my optimization problem, the problem is shown as follows:
> min 0.5*norm(U'*Ai-At,'fro')+a*trace(U'*L1*U)-b*trace(U'*L2*U)+0.2*norm(U','fro');
> U
> U is a matrix of [800, 280]. If I use U0 as a start matrix, fminunc will not solve this problem because of memory exceeded. Is there any method to transform this problem so that it can be solved via fminunc? Thanks for your time.

==================

As John said, you'll need to avoid finite differences and specify your own gradient and Hessian calculations. Moreover, you'll need to use an algorithm option in which the Hessian (or an approximation of it) is sparse. For example, if using the medium scale algorithm, you could choose HessUpdate='steepdesc' option which will just minimize using plain ol' steepest descent. This will be quite slow. If using the large scale algorithm, you could try the HessMult option and use maybe a diagonal approximation of the Hessian, or something else sparse that you think would be a good approximation.

Another problem with what you've shown is that your objective function is not differentiable everywhere, because norm(x) is not differentiable at x=0. Try to reformulate in terms of norm(x)^2.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.