Skip to main content

The same LP-relaxation and root node relaxation

Awaiting user input

Comments

4 comments

  • Michel Soares
    Thought Leader

    Hi Saeedeh,

    The root node of a MIP is indeed the solution of the relaxed model. Indeed, there are many cuts that can be added in the root node to speed up finding a good integer solution. If you want to increase the number of cuts, you can specify the parameter Cuts = 3 and see the impact in the report of cuts used at the end of optimization and the different in the optimization time.

    0
  • Saeedeh Ahmadi Basir
    Gurobi-versary
    First Comment
    First Question

    Thank you for your response. My question is how can I count the number of cuts that are added in root node relaxation? I want to know the reason for the same root node relaxation and LP-relaxation. I checked the solution of the LP-relaxation. It is not an integer solution.

    0
  • Michel Soares
    Thought Leader

    You can get the number of cuts added using callbacks. You can get the number of cuts added so far (MIP_CUTCNT) in a MIP node (MIPNODE and MIPNODE_NODCNT = 0): that should give you the number of cuts added in the root node.

    0
  • Saeedeh Ahmadi Basir
    Gurobi-versary
    First Comment
    First Question

    Thank you very much. 

    0

Please sign in to leave a comment.