Skip to main content

Update mipgap after each subproblem

Answered

Comments

1 comment

  • Robert Fourer
    Gurobi-versary
    Conversationalist

    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

Please sign in to leave a comment.