Output of fmincon() for multiple solution problem

6 次查看(过去 30 天)
Hi all, I am using fmincon() for a problem like this
min |f(x1,x2)|
s.t. x1^2+x2^2<a^2
Now I know that for my problem there will be a range of variables (x1,x2) to make abs( f(x1,x2) )=0.But using fmincon() I only got one solution for this problem. So I am wondering how does fmincon() decides which solution is used if for a problem there are multiple solutions?
Thank you!
------------------------------------------------
p.s. By the way, my real problem is like this
min |f(x1,x2)|,x1^2+x2^2
s.t. x1^2+x2^2<a^2
so I am actually having two objective functions,and within the multiple solutions for (x1,x2) I am trying to find the one that has the minimum square sum. It looks like gamultiobj() doesn't give a single solution that's ready to use, so I am curios to know if there are any good method to do multi-objective optimization in MATLAB.

回答(2 个)

Matt J
Matt J 2018-3-25
FMINCON does an iterative search for the solution. The point it finds depends on the initial guess and various other algorithm settings. It is even possible for fmincon to fail to find any of the solutions, e.g., when there are local minima for the iterations to get trapped in.

Walter Roberson
Walter Roberson 2018-3-25
fmincon will use the first location it finds for any given value of the function, except in cases where a later location is less of a constraint violation.
  1 个评论
Walter Roberson
Walter Roberson 2018-3-25
You do not appear to have two objective functions. You appear to have one function and one nonlinear constraint.
fmincon will never return multiple solutions.
gamultiobj will return a set of locations each corresponding to a local minima. It does not attempt to return all of them (there could be an infinite number)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Optimization Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by