Skip to main content

The results obtained by using quadprog and gurobi are quite different

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Eli Towle
    • Gurobi Staff

    In Gurobi, the lower bounds on variables are \( 0 \) by default. To solve the same problem as \(\texttt{quadprog}\), explicitly remove the lower bounds on the variables:

    model.lb = -Inf(size(qpinfo.f));

    You can read more about this in the The model argument section of the Gurobi MATLAB documentation.

    0

Post is closed for comments.