The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Fminunc with logarithmic function
Replies: 1   Last Post: Jan 28, 2013 2:23 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 1,717
Registered: 11/8/10
Re: Fminunc with logarithmic function
Posted: Jan 28, 2013 2:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ravi" wrote in message <kdut20$ct7$>...
> I am trying to solve the following optimization problem
> min_x w^Tx +log(1-||x||^2).
> I invoke fminunc to solve this optimization problem. I provide gradient information also, and start at the all 0's vector. However the solution that is being returned to me ,x*, has norm much larger than 1.
> The only way I know to resolve this issue is by using fmincon. In this case I provide the same objective, and also provide the non-linear constraint ||x||\leq 1. The solution returned by fmincon is inside the ball, but the time taken by fmincon is much much larger than fminunc. So is there a way that I can use fminunc and still derive valid solutions? Perhaps if there is a way to capture the iterates generated by fminunc, then I may use the last iterate generated by fminunc that is still within the ball. But, then I do not know how to capture the iterates generated by running fminunc.
> Any help will be appreciated.

Your problem does not have a solution since log(1-||x||^2) -> -oo as

Best wishes

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.