Skip to content

Commit ffd7599

Browse files
committed
more precision in debug
1 parent e5cd07c commit ffd7599

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Osi/OsiRowCut.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,21 @@ OsiRowCut::operator=(const OsiRowCut &rhs)
255255
void OsiRowCut::print() const
256256
{
257257
int i;
258+
char temp[80];
258259
std::cout << "Row cut has " << row_.getNumElements()
259260
<< " elements";
261+
#define MORE_PREC
262+
#ifndef MORE_PREC
260263
if (lb_ < -1.0e20 && ub_ < 1.0e20)
261264
std::cout << " with upper rhs of " << ub_;
262265
else if (lb_ > -1.0e20 && ub_ > 1.0e20)
263266
std::cout << " with lower rhs of " << lb_;
264267
else
265268
std::cout << " !!! with lower, upper rhs of " << lb_ << " and " << ub_;
269+
#else
270+
sprintf(temp," lower %.10g, upper %.10g",lb_,ub_);
271+
std::cout << temp;
272+
#endif
266273
std::cout << std::endl;
267274
for (i = 0; i < row_.getNumElements(); i++) {
268275
int colIndx = row_.getIndices()[i];

0 commit comments

Comments
 (0)