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/ClpSimplexPrimal.cpp

    r8 r12  
    257257  }
    258258
     259  // save if sparse factorization wanted
     260  int saveSparse = factorization_->sparseThreshold();
     261
    259262  // loop round to clean up solution if values pass
    260263  int numberThrownOut = -1;
     
    328331    // Say good factorization
    329332    factorType=1;
     333    if (saveSparse) {
     334      // use default at present
     335      factorization_->sparseThreshold(0);
     336      factorization_->goSparse();
     337    }
    330338
    331339    // Say no pivot has occurred (for steepest edge and updates)
     
    642650  // Restore any saved stuff
    643651  perturbation_ = savePerturbation;
     652  factorization_->sparseThreshold(saveSparse);
    644653  infeasibilityCost_ = saveInfeasibilityCost;
    645654  return problemStatus_;
Note: See TracChangeset for help on using the changeset viewer.