--- FlopC++-1.2.5/src/MP_model.cpp.orig 2016-07-26 04:51:41.000000000 -0600
+++ FlopC++-1.2.5/src/MP_model.cpp 2019-06-21 09:07:24.557978525 -0600
@@ -433,19 +433,19 @@ MP_model::MP_status MP_model::solve(cons
if (isMIP == true) {
try {
Solver->branchAndBound();
- } catch (CoinError e) {
+ } catch (CoinError& e) {
cout<<e.message()<<endl;
cout<<"Solving the LP relaxation instead."<<endl;
try {
Solver->initialSolve();
- } catch (CoinError e) {
+ } catch (CoinError& e) {
cout<<e.message()<<endl;
}
}
} else {
try {
Solver->initialSolve();
- } catch (CoinError e) {
+ } catch (CoinError& e) {
cout<<e.message()<<endl;
}
}