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

Update mipgap after each subproblem

回答済み

コメント

2件のコメント

  • 正式なコメント
    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.
  • Robert Fourer
    • Gurobi-versary
    • Collaborator

    It appears you are setting an AMPL gurobi_options string. Is newgap an AMPL parameter? Then you need to use an AMPL string expression in an option statement like this:

    option gurobi_options ("timelim=100 mipgap=" & newgap);

    The ( parentheses ) signal to AMPL that you are using an expression to form the option string, and & is the AMPL string concatenation operator.

    0

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