Skip to content

Commit 99f2fa4

Browse files
authored
Merge pull request #102 from staadecker/ms/fix
[GUROBI] Change error message for non-existent constraint
2 parents 742bca3 + baab7b3 commit 99f2fa4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/gurobi_model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,7 @@ int GurobiModel::_checked_constraint_index(const ConstraintIndex &constraint)
12651265
int row = _constraint_index(constraint);
12661266
if (row < 0)
12671267
{
1268-
throw std::runtime_error("Variable does not exist");
1268+
throw std::runtime_error("Constraint does not exist");
12691269
}
12701270
return row;
12711271
}

0 commit comments

Comments
 (0)