Can I use fmincon to solve Mixed Integer Convex Problem?

조회 수: 2 (최근 30일)
mohamed Faraj
mohamed Faraj 2019년 11월 20일
댓글: Walter Roberson 2019년 11월 21일
I have a mixed integer convex problem (some variables are binary). If yes, How to define the binary variables?. I have matlab 2013a

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 20일
Mixed integer problems are discontinuous and fmincon can only work with continuous functions.
You would need to evaluate once for each possible binary arrangement of the variables, and then pick the best of the results.
  댓글 수: 2
mohamed Faraj
mohamed Faraj 2019년 11월 21일
Thank you Walter. I agree with your solution. However, if I have too many possible combinations of the binary variables, this maynot be a good approach. Is there another function that can be used to minimize a binary nonlinear problem?
Walter Roberson
Walter Roberson 2019년 11월 21일
ga() or https://www.mathworks.com/help/optim/ug/intlinprog.html

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by