fmincon can't meet nonlinear constraints with a feasible start point

the start point i give can satisfy the constraints but fmincon gives an answer that can't satisfy the constraints.where can the problem is ? in the attachment is the codes : fmincon_test.m is the main function , runfmincon.m is the sub-function to call fmincon ; the constraints are in mycon.m, main_1.m is the objective function which calls a solver for current problem

1 件のコメント

Shashank Prasanna
Shashank Prasanna 2014 年 7 月 8 日
Please share your objective function, results and other matlab code. Its hard to dig deeper without this information.

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

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2014 年 7 月 8 日

0 投票

Hi,
are you sure they satisfy the constraints? You can check e.g. with
all(A*x0<=b)
Or: what is
max(abs(Aeq*x0-beq))
Similarly feed the non linear restriction function to see if the starting point really fulfills the restriction.
Titus

1 件のコメント

Jing Chen
Jing Chen 2014 年 7 月 8 日
i'm quite sure about this; i attached the codes here, can you help me to find the bugs ?

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

カテゴリ

ヘルプ センター および File ExchangeSystems of Nonlinear Equations についてさらに検索

質問済み:

2014 年 7 月 8 日

コメント済み:

2014 年 7 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by