Changeset 477


Ignore:
Timestamp:
Oct 15, 2004 2:21:17 PM (15 years ago)
Author:
forrest
Message:

startFinishoptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpSimplex.cpp

    r473 r477  
    22072207      factorization_->messageLevel(CoinMax(3,factorization_->messageLevel()));
    22082208  }
     2209  bool newArrays = (what&32)!=0;
    22092210  numberExtraRows_ = matrix_->generalExpanded(this,2,maximumBasic_);
    22102211  if (numberExtraRows_) {
     
    22692270    }
    22702271    // row reduced costs
    2271     if (!dj_) {
     2272    if (!dj_||newArrays) {
     2273      delete [] dj_;
    22722274      dj_ = new double[numberRows2+numberColumns_];
    22732275      reducedCostWork_ = dj_;
     
    22762278      memcpy(rowReducedCost_,dual_,numberRows_*sizeof(double));
    22772279    }
    2278     if (!solution_||(what&32)!=0) {
    2279       if (!solution_)
    2280         solution_ = new double[numberRows2+numberColumns_];
     2280    if (!solution_||newArrays) {
     2281      delete [] solution_;
     2282      solution_ = new double[numberRows2+numberColumns_];
    22812283      columnActivityWork_ = solution_;
    22822284      rowActivityWork_ = solution_+numberColumns_;
     
    25542556  // we need to treat matrix as if each element by rowScaleIn and columnScaleout??
    25552557  // maybe we need to move scales to SimplexModel for factorization?
    2556   if ((what&8)!=0&&!pivotVariable_) {
     2558  if (((what&8)!=0&&!pivotVariable_)||newArrays) {
     2559    delete [] pivotVariable_;
    25572560    pivotVariable_=new int[numberRows2];
    25582561    for (int i=0;i<numberRows2;i++)
Note: See TracChangeset for help on using the changeset viewer.