Can I use fmincon to solve Mixed Integer Convex Problem?

6 ビュー (過去 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 Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by