Skip to main content

Error in setting different LP method

Answered

Comments

1 comment

  • Jaromił Najman
    Gurobi Staff Gurobi Staff

    Method is a parameter and not an attribute. Thus, you have to use the GRBsetintparam function.

    GRBnewmodel(LPenv, &LPmodel, "LP", 0, NULL, NULL, NULL, NULL, NULL);
    error = GRBsetintparam(GRBgetenv(LPmodel), "Method", 0);
    if (error) printf("Error in setting LP method.\n");

    Best regards, 
    Jaromił

    0

Please sign in to leave a comment.