Skip to content

Commit

Permalink
fix: useless check causes malfunction (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgatto authored May 20, 2021
1 parent 3d39679 commit ec3afa4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/cpp/lpnamer/IntercoDataMps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ void Candidates::createMpsFileAndFillCouplings(std::string const & mps_name,
int ncols(in_prblm.NumVariables());
int nrows(in_prblm.NumConstraints());

// check if number of rows in the solver matrix is equal to the number of constraints
if (nrows != cstr.size()) {
std::cout << "WRONG NUMBER OF CSTR NAMES, solver = " << nrows << ", " << cstr.size() << " given" << std::endl;
}

// check if number of columns in the solver matrix is equal to the number of variables
if (ncols != var.size()) {
std::cout << "WRONG NUMBER OF VAR NAMES, solver = " << ncols << ", " << var.size() << " given" << std::endl;
Expand Down

0 comments on commit ec3afa4

Please sign in to comment.