Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CoinBuild::Type enum #301

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ClpModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1917,7 +1917,7 @@ void ClpModel::addRows(int number, const double *rowLower,
// Add rows from a build object
int ClpModel::addRows(const CoinBuild &buildObject, bool tryPlusMinusOne, bool checkDuplicates)
{
CoinAssertHint(buildObject.type() == 0, "Looks as if both addRows and addCols being used"); // check correct
CoinAssertHint(buildObject.type() == CoinBuild::Type::Row, "Looks as if both addRows and addCols being used"); // check correct
int number = buildObject.numberRows();
int numberErrors = 0;
if (number) {
Expand Down Expand Up @@ -2409,7 +2409,7 @@ void ClpModel::addColumns(int number, const double *columnLower,
// Add columns from a build object
int ClpModel::addColumns(const CoinBuild &buildObject, bool tryPlusMinusOne, bool checkDuplicates)
{
CoinAssertHint(buildObject.type() == 1, "Looks as if both addRows and addCols being used"); // check correct
CoinAssertHint(buildObject.type() == CoinBuild::Type::Column, "Looks as if both addRows and addCols being used"); // check correct
int number = buildObject.numberColumns();
int numberErrors = 0;
if (number) {
Expand Down