- Timestamp:
- Aug 6, 2002 1:55:36 PM (18 years ago)
- Location:
- branches/devel-1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/devel-1/ClpSimplexDual.cpp
r8 r12 257 257 factorization_->slackValue(-1.0); 258 258 factorization_->zeroTolerance(1.0e-13); 259 // save if sparse factorization wanted 260 int saveSparse = factorization_->sparseThreshold(); 261 259 262 if (internalFactorize(0)) 260 263 return 1; // some error … … 316 319 // Say good factorization 317 320 factorType=1; 321 if (saveSparse) { 322 // use default at present 323 factorization_->sparseThreshold(0); 324 factorization_->goSparse(); 325 } 318 326 319 327 // status stays at -1 while iterating, >=0 finished, -2 to invert … … 641 649 // Restore any saved stuff 642 650 perturbation_ = savePerturbation; 651 factorization_->sparseThreshold(saveSparse); 643 652 dualBound_ = saveDualBound_; 644 653 return problemStatus_; -
branches/devel-1/ClpSimplexPrimal.cpp
r8 r12 257 257 } 258 258 259 // save if sparse factorization wanted 260 int saveSparse = factorization_->sparseThreshold(); 261 259 262 // loop round to clean up solution if values pass 260 263 int numberThrownOut = -1; … … 328 331 // Say good factorization 329 332 factorType=1; 333 if (saveSparse) { 334 // use default at present 335 factorization_->sparseThreshold(0); 336 factorization_->goSparse(); 337 } 330 338 331 339 // Say no pivot has occurred (for steepest edge and updates) … … 642 650 // Restore any saved stuff 643 651 perturbation_ = savePerturbation; 652 factorization_->sparseThreshold(saveSparse); 644 653 infeasibilityCost_ = saveInfeasibilityCost; 645 654 return problemStatus_;
Note: See TracChangeset
for help on using the changeset viewer.