From baab7b3530dd427b5e15d37bbc68663a13047064 Mon Sep 17 00:00:00 2001 From: Martin Staadecker Date: Fri, 26 Jun 2026 11:12:47 -0400 Subject: [PATCH] Change error message for non-existent constraint --- lib/gurobi_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gurobi_model.cpp b/lib/gurobi_model.cpp index 66fd240..4a2c0f7 100644 --- a/lib/gurobi_model.cpp +++ b/lib/gurobi_model.cpp @@ -1265,7 +1265,7 @@ int GurobiModel::_checked_constraint_index(const ConstraintIndex &constraint) int row = _constraint_index(constraint); if (row < 0) { - throw std::runtime_error("Variable does not exist"); + throw std::runtime_error("Constraint does not exist"); } return row; }