Skip to main content

User cuts are not counted in the MIP log

Ongoing

Comments

3 comments

  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi!

    The number of cuts shown in the final statistics is the number of actually applied cuts to improve the dual bound. Not every cut that you add in the cut callback will be added - there is still some filtering applied.

    I hope this answers your question.

    Cheers,
    Matthias

    0
  • Jihye Jung
    Gurobi-versary
    First Comment
    First Question

    Thank you for your answer, Matthias! 
    I'd like to ask you a few more questions, please.

    I understood that the user cuts generated in the callback function might be filtered out and not added to the model.

    When the "Cuts" parameter is set to 0, is there any way to check whether individual user cuts generated in the callback function are filtered or not?

    Also, I want to know the performance when I force all user cuts to be added without filtering.
    Will using cblazy instead of cbcut give me the experimental results I want?

    Thanks for your help again.

    Best regards,
    Jihye

    0
  • Matthias Miltenberger
    Gurobi Staff Gurobi Staff

    Hi Jihye!

    You cannot modify the internal filtering mechanism. The best way to see how many of your cuts were added is to check the final statistics at the end.

    There is a fundamental difference between user cuts and lazy constraints. Please refer to this article for further information: What is the difference between user cuts and lazy constraints? – Gurobi Support Portal

    Cheers,
    Matthias

    0

Please sign in to leave a comment.