Some question about fmincon

I have 2 questions about using fmincon:
Q1: I use the "fmincon" to optimize the function, and when it's finish. There are some msg in
command window shows
Active inequalities (to within options.TolCon = 1e-006): lower upper ineqlin ineqnonlin 5 6 7 9 10 11
Did anyone knows what is this msg standing for?
Q2: I want the optimal solution variable that must be integer, is that possible when I use fmincon?

 採用された回答

Matt J
Matt J 2012 年 10 月 1 日
編集済み: Matt J 2012 年 10 月 1 日

0 投票

Q1: I use the "fmincon" to optimize the function, and when it's finish. There are some msg in
The message is telling you how well the constraints were satisfied at the solution found by FMINCON.
Q2: I want the optimal solution variable that must be integer, is that possible when I use fmincon?
No, it's not possible using FMINCON, but apparently the GA function in the Global Optimization Toolbox can handle mixed integer problems, so maybe it can handle integer problems as well
There's also BINTPROG in case that's applicable to you.

1 件のコメント

ben
ben 2012 年 10 月 2 日
Matt Thanks for answering my question.

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

その他の回答 (0 件)

カテゴリ

タグ

質問済み:

ben
2012 年 10 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by