メインコンテンツへスキップ

UndefVarError: setparams! not defined

回答済み

コメント

6件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three 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.
  • Simon Bowly
    • 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
  • 書廷 林
    • Gurobi-versary
    • First Comment
    • First Question

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

    How could I fix this?

    0
  • 書廷 林
    • Gurobi-versary
    • First Comment
    • First Question

    Did anyone know where my problem is?

    I need this bad

    0
  • Simon Bowly
    • Gurobi Staff

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

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

    thank you !

    It's actually working!!!

    thanks a lot

    0

投稿コメントは受け付けていません。