メインコンテンツへスキップ

Solver interface needed for MIQP problem Gurobi/MATLAB

進行中

コメント

5件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Alison Cozad
    • Gurobi Staff Gurobi Staff

    You can use Gurobi's MATLAB interface directly.  It can handle objectives and constraints with quadratic, bilinear, and linear terms.  To get started, take a look at

    1
  • Gwyneth Butera
    • Gurobi Staff Gurobi Staff

    Cross-posted on StackOverflow.

    0
  • JW
    • Gurobi-versary
    • First Question
    • First Comment

    @... Thank you very much for your elaborate reply! I went through the entire manual and you are indeed right. However, on https://www.gurobi.com/documentation/9.1/examples/matlab_examples.html a list of MATLAB functions derived from the Optimization Toolbox (such as intlinprog or qp) can be found. These functions solve MILP and QP problems in a straightforward and easy manner. However, I was wondering whether such a function also exists for MIQP problems. Would you know whether such a function exists and if so, where I could find it?

    0
  • Alison Cozad
    • Gurobi Staff Gurobi Staff

    It looks like you are referencing the intlinprog.m and qp.m examples from the Matlab Examples you linked.  Those are two Gurobi examples that show how you can use Gurobi in Matlab for an MILP and QP, respectively. 

    However, it might be worth a closer look at qp.m.  This example builds a fairly trivial QP model then solves it.  Next, it converts the model into an MIQP model then solves it again. 

    These are intended to be examples that you can use to get you started in Gurobi, then you can extend them to suit your modeling needs.  Is there a particular constraint challenge or question you have while writing your MIQP?

    1

投稿コメントは受け付けていません。