Skip to content

Commit

Permalink
change output to show how slow ConflictGraph is
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Dec 1, 2023
1 parent 8499684 commit ab0e72f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Osi/OsiSolverInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3483,15 +3483,15 @@ void OsiSolverInterface::checkCGraph(CoinMessageHandler *msgh)
cgraph_ = NULL;
}

const double stCG = CoinGetTimeOfDay();
cgraph_ = new CoinStaticConflictGraph(getNumCols(), getColType(),
double timeCG = CoinCpuTime();
cgraph_ = new CoinStaticConflictGraph(getNumCols(), getColType(),
getColLower(), getColUpper(),
getMatrixByRow(), getRowSense(),
getMatrixByRow(), getRowSense(),
getRightHandSide(), getRowRange());
const double etCG = CoinGetTimeOfDay();
timeCG = CoinCpuTime()-timeCG;

if (msgh && msgh->logLevel())
msgh->message(COIN_CGRAPH_INFO, messages()) << etCG-stCG << cgraph_->density()*100.0 << CoinMessageEol;
if (msgh && msgh->logLevel())
msgh->message(COIN_CGRAPH_INFO, messages()) << timeCG << cgraph_->density()*100.0 << ((timeCG>1.0) ? "!!" : "") << CoinMessageEol;

// fixing variables discovered during the construction of conflict graph
const std::vector< std::pair< size_t, std::pair< double, double > > > newBounds = cgraph_->updatedBounds();
Expand Down

0 comments on commit ab0e72f

Please sign in to comment.