Skip to main content

How to use multiple MIP starts with only some variables?

Answered

Comments

2 comments

  • Jaromił Najman
    • Gurobi Staff

    Hi,

    At a first glance, your code looks correct. Could you try calling the update method after you set the NumStart parameter? Or run the \(\texttt{for}\)-loop over \(\texttt{range(2)}\) instead of \(\texttt{range(model.NumStart)}\)?

    # first try
    model.NumStart = 2
    model.update()

    # if this does not help try

    for s in range(2):
    #...

     

    If the above does not help, could you please share the corresponding model for which you are trying to set multiple MIPStarts? If possible, please try to generate a minimal reproducible example.

    Best regards, 
    Jaromił

    0
  • Sun Ju Lee
    • Gurobi-versary
    • First Comment
    • First Question

    Hello,

    Calling model.update() after setting NumStart helped. I also had to call model.update() after setting StartNumber in the loop.

    Thank you for your help!

    0

Please sign in to leave a comment.