Skip to main content

The results obtained by using quadprog and gurobi are quite different

Answered

Comments

1 comment

  • Eli Towle
    • Gurobi Staff 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

Please sign in to leave a comment.