File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22
22
#include " lp_data/HighsRanging.h"
23
23
#include " lp_data/HighsSolutionDebug.h"
24
24
#include " model/HighsModel.h"
25
+ #include " util/HighsExceptions.h"
25
26
#include " presolve/ICrash.h"
26
27
#include " presolve/PresolveComponent.h"
27
28
Original file line number Diff line number Diff line change @@ -3918,10 +3918,8 @@ HPresolve::Result HPresolve::presolve(HighsPostsolveStack& postsolve_stack) {
3918
3918
try {
3919
3919
HPRESOLVE_CHECKED_CALL (initialRowAndColPresolve (postsolve_stack));
3920
3920
} catch (const DataStackOverflow& e) {
3921
- highsLogUser (options->log_options , HighsLogType::kInfo ,
3922
- " Problem is too large to be presolved\n " );
3923
3921
// Here we re-throw the error
3924
- throw ;
3922
+ throw PresolveTooLarge (e. what ()) ;
3925
3923
}
3926
3924
3927
3925
HighsInt numParallelRowColCalls = 0 ;
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ class HighsPostsolveStack {
380
380
reductionAdded (ReductionType::kFixedCol );
381
381
} catch (const DataStackOverflow& e) {
382
382
std::cerr << " Memory allocation failed while processing fixedColAtLower: "
383
- << e. what () << std::endl;
383
+ << std::endl;
384
384
// Rethrow.
385
385
throw ;
386
386
}
You can’t perform that action at this time.
0 commit comments