diff options
author | Pedro Giffuni <pfg@apache.org> | 2015-09-24 02:36:24 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2015-09-24 02:36:24 +0000 |
commit | 091a39192e48d4c6bce149550c5c6ee740bdedec (patch) | |
tree | b5e4aea66aba724f4487f2e835be8e9b964112cf /sccomp | |
parent | 73f626dc527a97e4c96d6eeb509bff55e24400c8 (diff) |
i124091 - Drop check for nonlinearity
It appears the check for non-linearity is causing failures for cases that
can be solved by CoinMP and other solvers. We don't really have a
non-linear solver but it doesn't make sense to check for linearity here.
Thanks to Ted Ralphs for pointing the exact code causing the failure.
Notes
Notes:
prefer: 077bdc73f2bcd625be1030fa8ff630c3dbd83657
Diffstat (limited to 'sccomp')
-rw-r--r-- | sccomp/source/solver/solver.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sccomp/source/solver/solver.cxx b/sccomp/source/solver/solver.cxx index 1eafae250313..6307e6e6ca23 100644 --- a/sccomp/source/solver/solver.cxx +++ b/sccomp/source/solver/solver.cxx @@ -369,12 +369,6 @@ void SAL_CALL SolverComponent::solve() throw(uno::RuntimeException) double fInitial = aCellsIter->second.front(); double fCoeff = aCellsIter->second.back(); // last appended: coefficient for this variable double fTwo = lcl_GetValue( mxDoc, aCellsIter->first ); - - bool bLinear = rtl::math::approxEqual( fTwo, fInitial + 2.0 * fCoeff ) || - rtl::math::approxEqual( fInitial, fTwo - 2.0 * fCoeff ); - // second comparison is needed in case fTwo is zero - if ( !bLinear ) - maStatus = lcl_GetResourceString( RID_ERROR_NONLINEAR ); } lcl_SetValue( mxDoc, *aVarIter, 0.0 ); // set back to zero for examining next variable |