Skip to main content


Awaiting user input



  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    You can fix the variables to the solution values if you know a specific solution. To do this, set the variable's lower and upper bound to its value in the known solution.
    If the resulting model is infeasible, you can use computeIIS.

    I know that turning certain edges off should be 0 but Gurobi does not find the solution; I would expect it to raise an infeasible flag. Instead, I receive a cutoff flag because I am limiting the number of nodes to one.

    I am not sure what you mean by this. Could you give more details? Do you use a callback function?

  • Carlos Rodriguez
    First Question

    Hey Marika! Thank you very much for your response. 

    What I meant is that I am using the cutoff parameter:

    Otherwise when I fix the value of that variable, the problem gives me that 2 nodes should be turned off when in reality only one should be off. 

  • Marika Karbstein
    Gurobi Staff Gurobi Staff

    Ok, but I still think you should try to force the solution you have in mind to see why it is not possible or found. 
    Couldn't you fix the flow to 0, only allow one node to be turned off, and then check why this is not valid?


Please sign in to leave a comment.