How to Apply a Globally Valid Set of Cuts After Root Cut Generation #598
-
I have a set of cuts that I know are valid for a MILP. I would like to add them to the pool of cuts that are considered for every node in the branch and bound tree, and I would like to do so after cut generation at the root node has completed. How can I do so? |
Beta Was this translation helpful? Give feedback.
Answered by
jjhforrest
May 4, 2023
Replies: 1 comment 2 replies
-
You want to create a cut generator from CglStored and add that to the model. Look at Cbc/examples/allCuts.cpp. This may be out of date but will get you started. You may be better off using a more flexible example e.g. driver6.cpp and using a call back to add the generator. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
spkelle2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want to create a cut generator from CglStored and add that to the model. Look at Cbc/examples/allCuts.cpp. This may be out of date but will get you started. You may be better off using a more flexible example e.g. driver6.cpp and using a call back to add the generator.