2 parents 742bca3 + baab7b3 commit 99f2fa4Copy full SHA for 99f2fa4
1 file changed
lib/gurobi_model.cpp
@@ -1265,7 +1265,7 @@ int GurobiModel::_checked_constraint_index(const ConstraintIndex &constraint)
1265
int row = _constraint_index(constraint);
1266
if (row < 0)
1267
{
1268
- throw std::runtime_error("Variable does not exist");
+ throw std::runtime_error("Constraint does not exist");
1269
}
1270
return row;
1271
0 commit comments