add missing return after LOG(FATAL)

This commit is contained in:
lperron@google.com
2011-09-21 15:48:33 +00:00
parent 2fce86a422
commit 36dc377ff8
4 changed files with 7 additions and 0 deletions

View File

@@ -163,6 +163,7 @@ class CBCInterface : public MPSolverInterface {
virtual double ComputeExactConditionNumber() const {
LOG(FATAL) << "Condition number only available for continuous problems";
return 0.0;
}
private:

View File

@@ -126,6 +126,7 @@ class CLPInterface : public MPSolverInterface {
virtual double ComputeExactConditionNumber() const {
// CLP does not provide the necessary API to access the inverse basis.
LOG(FATAL) << "ComputeExactConditionNumber is not implemented in CLP.";
return 0.0;
}
private:
@@ -547,6 +548,7 @@ MPSolver::BasisStatus CLPInterface::TransformCLPBasisStatus(
return MPSolver::FIXED_VALUE;
default:
LOG(FATAL) << "Unknown CLP basis status";
return MPSolver::FREE;
}
}

View File

@@ -689,6 +689,7 @@ GLPKInterface::TransformGLPKBasisStatus(int glpk_basis_status) const {
return MPSolver::FIXED_VALUE;
default:
LOG(FATAL) << "Unknown GLPK basis status";
return MPSolver::FREE;
}
}

View File

@@ -98,10 +98,12 @@ class SCIPInterface : public MPSolverInterface {
// Returns the basis status of a row.
virtual MPSolver::BasisStatus row_status(int constraint_index) const {
LOG(FATAL) << "Basis status only available for continuous problems";
return MPSolver::FREE;
}
// Returns the basis status of a column.
virtual MPSolver::BasisStatus column_status(int variable_index) const {
LOG(FATAL) << "Basis status only available for continuous problems";
return MPSolver::FREE;
}
// ----- Misc -----
@@ -129,6 +131,7 @@ class SCIPInterface : public MPSolverInterface {
virtual double ComputeExactConditionNumber() const {
LOG(FATAL) << "Condition number only available for continuous problems";
return 0.0;
}
private: