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