代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/coin-or-cbc 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
diff -up Cbc-releases-2.10.4/Cbc/src/Cbc_C_Interface.cpp.orig Cbc-releases-2.10.4/Cbc/src/Cbc_C_Interface.cpp
--- Cbc-releases-2.10.4/Cbc/src/Cbc_C_Interface.cpp.orig 2020-01-31 04:34:18.000000000 -0700
+++ Cbc-releases-2.10.4/Cbc/src/Cbc_C_Interface.cpp 2020-02-20 11:57:30.731295819 -0700
@@ -870,7 +870,7 @@ Cbc_solve(Cbc_Model *model)
try {
CbcMain1((int)argv.size(), &argv[0], *model->model_, NULL, *model->cbcData);
- } catch (CoinError e) {
+ } catch (CoinError& e) {
printf("%s ERROR: %s::%s, %s\n", prefix,
e.className().c_str(), e.methodName().c_str(), e.message().c_str());
}
diff -up Cbc-releases-2.10.4/Cbc/test/OsiCbcSolverInterfaceTest.cpp.orig Cbc-releases-2.10.4/Cbc/test/OsiCbcSolverInterfaceTest.cpp
--- Cbc-releases-2.10.4/Cbc/test/OsiCbcSolverInterfaceTest.cpp.orig 2020-01-31 04:34:18.000000000 -0700
+++ Cbc-releases-2.10.4/Cbc/test/OsiCbcSolverInterfaceTest.cpp 2020-02-20 11:57:30.731295819 -0700
@@ -124,7 +124,7 @@ void OsiCbcSolverInterfaceUnitTest(const
try {
solver.setObjCoeff(0, 0.0);
OSIUNITTEST_ADD_OUTCOME("cbc", "setObjCoeff on empty model", "should throw exception", OsiUnitTest::TestOutcome::ERROR, false);
- } catch (CoinError e) {
+ } catch (CoinError& e) {
if (OsiUnitTest::verbosity >= 1)
std::cout << "Correct throw from setObjCoeff on empty model" << std::endl;
}
@@ -138,7 +138,7 @@ void OsiCbcSolverInterfaceUnitTest(const
double value[] = { 0.0, 0.0, 0.0, 0.0 };
solver.setColSetBounds(index, index + 2, value);
OSIUNITTEST_ADD_OUTCOME("cbc", "setColSetBounds on cols not in model", "should throw exception", OsiUnitTest::TestOutcome::ERROR, false);
- } catch (CoinError e) {
+ } catch (CoinError& e) {
if (OsiUnitTest::verbosity >= 1)
std::cout << "Correct throw from setObjCoeff on empty model" << std::endl;
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。