Need Examples for presolve #184
-
I am looking for examples of "how to utilize the presolve methods" I have read the file using the I checked cbc but it seems like it doesn't use CoinUtils in a direct way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Mohit, doing some work that led to a drive-by touch on CoinUtils presolve, and saw this question. This likely comes long after it's useful to you, but might help someone else in the future. Look at the code in OsiPresolve.cpp. It's pulling data from an OsiSolverInterface, but you can see how to load up a CoinPresolveMatrix, run the presolve transforms, invoke a solver, load up a CoinPostsolveMatrix, and run the postsolve transforms. Also have a look at the doxygen documentation --- classes CoinPresolveMatrix and CoinPresolveAction are good places to start. |
Beta Was this translation helpful? Give feedback.
-
@mohit-mhjn, this likely comes long after you've found another way. I've just come back to playing with COIN-OR code and had to cure a bit of software rot in dylp before I could write this. The previous comment points you to the OsiPresolve code. If you're looking for another example, have a look at OsiDylp, specifically OsiDylpPresolve.cpp. It's another complete example of using the CoinUtils presolve code. |
Beta Was this translation helpful? Give feedback.
@mohit-mhjn, this likely comes long after you've found another way. I've just come back to playing with COIN-OR code and had to cure a bit of software rot in dylp before I could write this. The previous comment points you to the OsiPresolve code. If you're looking for another example, have a look at OsiDylp, specifically OsiDylpPresolve.cpp. It's another complete example of using the CoinUtils presolve code.