Can I use fmincon to solve Mixed Integer Convex Problem?

4 views (last 30 days)
I have a mixed integer convex problem (some variables are binary). If yes, How to define the binary variables?. I have matlab 2013a

Accepted Answer

Walter Roberson
Walter Roberson on 20 Nov 2019
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 Comments
mohamed Faraj
mohamed Faraj on 21 Nov 2019
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 on 21 Nov 2019
ga() or https://www.mathworks.com/help/optim/ug/intlinprog.html

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!