Error with inequality constraints with patternsearch

1 回表示 (過去 30 日間)
Tan
Tan 2011 年 2 月 12 日
回答済み: Xinlei Wang 2017 年 7 月 7 日
Hi,
I encountered the following error while using patternsearch in Matlab :???
Error using ==> lcondirections at 39
Constraints are dependent at current iterate
Try increasing OPTIONS.TolBind (<eps).
The default value of TolBind is already large enough and anyway I tried to increase the TolBind value but to no avail. Does anyone here encountered a similar problem or know how to solve it? Thanks.

採用された回答

Alan Weiss
Alan Weiss 2014 年 5 月 21 日
TolBind relates to linear constraints. So I suggest that you use the GSS polling algorithm instead of the default GPS. Set the PollMethod option to 'GSSPositiveBasis2N' or 'GSSPositiveBasisNp1' with psoptimset. See Compare the efficiency of poll options in the documentation.
Alan Weiss
MATLAB mathematical toolbox documentation
  2 件のコメント
Mehul Agrawal
Mehul Agrawal 2016 年 6 月 7 日
編集済み: Walter Roberson 2016 年 6 月 7 日
Hi Alan,
I tried both of these things in the poll method. But still got the same error.
Optimization running.
Error running optimization.
Constraints are dependent at current iterate.
Try increasing OPTIONS.TolBind (< eps).
Alan Weiss
Alan Weiss 2016 年 6 月 8 日
You might also try different initial points. And try to determine whether your problem is feasible by using linprog to find an initial point that satisfies your bounds and linear constraints.
Alan Weiss
MATLAB mathematical toolbox documentation

サインインしてコメントする。

その他の回答 (1 件)

Xinlei Wang
Xinlei Wang 2017 年 7 月 7 日
Hi Tan, I happened to encounter this error and, in my problem, solved it. My linear constraints were redundant. I deleted one of the constraints and then the solver works well. I think you could check whether your constraints are too many, if this is also your case.

カテゴリ

Help Center および File ExchangeDirect Search についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by