Changeset 1400 for stable


Ignore:
Timestamp:
Jul 18, 2009 4:58:48 AM (10 years ago)
Author:
forrest
Message:

changes for basis (copied from trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.10/Clp/src/ClpSimplex.cpp

    r1363 r1400  
    80708070ClpSimplex::statusOfProblem(bool initial)
    80718071{
     8072  // We don't want scaling
     8073  int saveFlag = scalingFlag_;
     8074  if (!rowScale_)
     8075    scalingFlag_=0;
    80728076  bool goodMatrix=createRim(7+8+16+32);
    80738077  if (!goodMatrix) {
    80748078    problemStatus_=4;
     8079    scalingFlag_ = saveFlag;
    80758080    return false;
    80768081  }
     
    80868091      if (status<0) {
    80878092        deleteRim(-1);
     8093        scalingFlag_ = saveFlag;
    80888094        return false; // some error
    80898095      } else {
     
    81138119#endif
    81148120  }
    8115     CoinMemcpyN(rowActivity_,numberRows_,rowActivityWork_);
    8116     CoinMemcpyN(columnActivity_,numberColumns_,columnActivityWork_);
     8121  CoinMemcpyN(rowActivity_,numberRows_,rowActivityWork_);
     8122  CoinMemcpyN(columnActivity_,numberColumns_,columnActivityWork_);
    81178123  gutsOfSolution(NULL,NULL);
    8118     CoinMemcpyN(rowActivityWork_,numberRows_,rowActivity_);
    8119     CoinMemcpyN(columnActivityWork_,numberColumns_,columnActivity_);
    8120     CoinMemcpyN(dj_,numberColumns_,reducedCost_);
     8124  CoinMemcpyN(rowActivityWork_,numberRows_,rowActivity_);
     8125  CoinMemcpyN(columnActivityWork_,numberColumns_,columnActivity_);
     8126  CoinMemcpyN(dj_,numberColumns_,reducedCost_);
    81218127  deleteRim(-1);
     8128  scalingFlag_ = saveFlag;
    81228129  return (primalFeasible()&&dualFeasible());
    81238130}
Note: See TracChangeset for help on using the changeset viewer.