You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// singletonColumns data structure appears not to be retained
4385
+
// throughout presolve
4386
+
//
4387
+
bool unit_coeff_only = true;
4388
+
for (HighsInt iCol = 0; iCol != model->num_col_; ++iCol) {
4389
+
if (colDeleted[iCol]) continue;
4390
+
if (colsize[iCol] != 1) continue;
4391
+
if (model->integrality_[iCol] == HighsVarType::kInteger) continue;
4392
+
HighsInt coliter = colhead[iCol];
4393
+
HighsInt iRow = Arow[coliter];
4394
+
assert(Acol[coliter] == iCol);
4395
+
assert(!rowDeleted[iRow]);
4396
+
if (model->row_lower_[iRow] != model->row_upper_[iRow]) continue;
4397
+
double lower = model->col_lower_[iCol];
4398
+
double upper = model->col_upper_[iCol];
4399
+
double cost = model->col_cost_[iCol];
4400
+
double rhs = model->row_lower_[iRow];
4401
+
double coeff = Avalue[coliter];
4402
+
printf("Col %d is continuous and is singleton in equality row %d with cost %g, bounds [%g, %g], coeff %g and RHS = %g\n", int(iCol), int(iRow), cost, lower, upper, coeff, rhs);
4403
+
if (unit_coeff_only && std::fabs(coeff) != 1.0) continue;
0 commit comments