Changeset 1493


Ignore:
Timestamp:
Jan 26, 2010 7:10:56 AM (10 years ago)
Author:
forrest
Message:

fix false infeasibility

Location:
stable/1.7/Clp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • stable/1.7/Clp/src/ClpFactorization.cpp

    r1152 r1493  
    33
    44#include "CoinPragma.hpp"
     5#include <cstdio>
    56#include "ClpFactorization.hpp"
    67#ifndef SLIM_CLP
  • stable/1.7/Clp/src/ClpSimplexDual.cpp

    r1150 r1493  
    33943394  bool unflagVariables = true;
    33953395  bool weightsSaved=false;
     3396  bool weightsSaved2=numberIterations_&&!numberPrimalInfeasibilities_;
    33963397  if (alphaAccuracy_<0.0||!numberPivots||alphaAccuracy_>1.0e4||factorization_->pivots()>20) {
    33973398    if (problemStatus_>-3||numberPivots) {
     
    40774078    else
    40784079      dualRowPivot_->saveWeights(this,3);
     4080  } else if (weightsSaved2&&numberPrimalInfeasibilities_) {
     4081    dualRowPivot_->saveWeights(this,3);
    40794082  }
    40804083  // unflag all variables (we may want to wait a bit?)
Note: See TracChangeset for help on using the changeset viewer.