[opengm] 25/40: avoid exception when no feasible solution is found

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 14 16:06:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository opengm.

commit 22e3f680d9f4ff29463e2fdc36fe673f58052ea8
Author: joergkappes <kappes at math.uni-heidelberg.de>
Date:   Fri Dec 4 13:26:52 2015 +0100

    avoid exception when no feasible solution is found
---
 include/opengm/inference/lpcplex.hxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/opengm/inference/lpcplex.hxx b/include/opengm/inference/lpcplex.hxx
index aec59c2..28fafcf 100644
--- a/include/opengm/inference/lpcplex.hxx
+++ b/include/opengm/inference/lpcplex.hxx
@@ -510,6 +510,7 @@ LPCplex<GM, ACC>::infer
       // solve problem
       if(!cplex_.solve()) {
          std::cout << "failed to optimize. " <<cplex_.getStatus() << std::endl;
+         inferenceStarted_ = 0;
          return UNKNOWN;
       } 
       cplex_.getValues(sol_, x_);  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list