Ignore:
Timestamp:
Aug 6, 2002 1:55:36 PM (18 years ago)
Author:
forrest
Message:

Improve speed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-1/ClpSimplexDual.cpp

    r8 r12  
    257257  factorization_->slackValue(-1.0);
    258258  factorization_->zeroTolerance(1.0e-13);
     259  // save if sparse factorization wanted
     260  int saveSparse = factorization_->sparseThreshold();
     261
    259262  if (internalFactorize(0))
    260263    return 1; // some error
     
    316319    // Say good factorization
    317320    factorType=1;
     321    if (saveSparse) {
     322      // use default at present
     323      factorization_->sparseThreshold(0);
     324      factorization_->goSparse();
     325    }
    318326
    319327    // status stays at -1 while iterating, >=0 finished, -2 to invert
     
    641649  // Restore any saved stuff
    642650  perturbation_ = savePerturbation;
     651  factorization_->sparseThreshold(saveSparse);
    643652  dualBound_ = saveDualBound_;
    644653  return problemStatus_;
Note: See TracChangeset for help on using the changeset viewer.