Wrapped the calls to Highs::calledOptimizeModel(), simplex, callSolveQp and MIP solver in try-catch blocks - #3168
Wrapped the calls to Highs::calledOptimizeModel(), simplex, callSolveQp and MIP solver in try-catch blocks#3168jajhall wants to merge 20 commits into
Highs::calledOptimizeModel(), simplex, callSolveQp and MIP solver in try-catch blocks#3168Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## latest #3168 +/- ##
==========================================
+ Coverage 72.92% 72.94% +0.01%
==========================================
Files 436 439 +3
Lines 106038 106165 +127
Branches 17071 17077 +6
==========================================
+ Hits 77329 77437 +108
- Misses 28433 28452 +19
Partials 276 276 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Looks good! However, if there is an exception thrown by the parallel scheduler (there shouldn't be, I hope I fixed all the bugs, but who knows), this will not be caught here, because it does not inherit from |
…lverObject.h to lp_data/HighsQpSolverObject.h
… HighsTask::Interrupt&) also for MIP
Thanks. I've done quite a bit of refactoring of the interface to the solves. Now
All this means that there are a lot of diffs - mainly due to moving code. The most important changes are in |
…hFpe, which is better named Highs::optimizeModelTryCatch
Closes #2924 and #3150
Although the
Highs::calledOptimizeModel()try-catch block is sufficient, the lower level try-catch blocks enable the particular solver causing the exception to be identified.