Skip to main content

The results obtained by using quadprog and gurobi are quite different



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: = -Inf(size(qpinfo.f));

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


Please sign in to leave a comment.