Changeset 477
 Timestamp:
 Oct 15, 2004 2:21:17 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/ClpSimplex.cpp
r473 r477 2207 2207 factorization_>messageLevel(CoinMax(3,factorization_>messageLevel())); 2208 2208 } 2209 bool newArrays = (what&32)!=0; 2209 2210 numberExtraRows_ = matrix_>generalExpanded(this,2,maximumBasic_); 2210 2211 if (numberExtraRows_) { … … 2269 2270 } 2270 2271 // row reduced costs 2271 if (!dj_) { 2272 if (!dj_newArrays) { 2273 delete [] dj_; 2272 2274 dj_ = new double[numberRows2+numberColumns_]; 2273 2275 reducedCostWork_ = dj_; … … 2276 2278 memcpy(rowReducedCost_,dual_,numberRows_*sizeof(double)); 2277 2279 } 2278 if (!solution_ (what&32)!=0) {2279 if (!solution_)2280 2280 if (!solution_newArrays) { 2281 delete [] solution_; 2282 solution_ = new double[numberRows2+numberColumns_]; 2281 2283 columnActivityWork_ = solution_; 2282 2284 rowActivityWork_ = solution_+numberColumns_; … … 2554 2556 // we need to treat matrix as if each element by rowScaleIn and columnScaleout?? 2555 2557 // 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_; 2557 2560 pivotVariable_=new int[numberRows2]; 2558 2561 for (int i=0;i<numberRows2;i++)
Note: See TracChangeset
for help on using the changeset viewer.