Skip to main content

UndefVarError: setparams! not defined

Answered

Comments

5 comments

  • Simon Bowly
    Gurobi Staff Gurobi Staff

    Hi,

    I don't think "setparams!" is part of the JuMP API any more, although I can't figure in which version it was removed. The appropriate functions are "set_optimizer_attribute" (a general JuMP function) or "Gurobi.GRBsetintparam" (part of Gurobi.jl for interacting directly with the solver API).

    0
  • 書廷 林
    First Comment
    First Question

    After change to Gurobi.GRBsetintparam. It occurs another problem in the following picture.

    How could I fix this?

    0
  • 書廷 林
    First Comment
    First Question

    Did anyone know where my problem is?

    I need this bad

    0
  • Simon Bowly
    Gurobi Staff Gurobi Staff

    GRBsetintparam is a function, not a macro, so it requires a different syntax. Try the following:

    Gurobi.GRBsetintparam(env, "OutputFlag", 0)
    0
  • 書廷 林
    First Comment
    First Question

    thank you !

    It's actually working!!!

    thanks a lot

    0

Please sign in to leave a comment.