highs fix

This commit is contained in:
Laurent Perron
2025-03-21 07:10:48 -07:00
parent 1c7b7d29d5
commit f4cc7d1bd3

View File

@@ -186,13 +186,10 @@ absl::StatusOr<MPSolutionResponse> HighsSolveProto(
}
// Constraint names.
for (int c = 0; c < model.constraint_size(); ++c) {
const MPConstraintProto& constraint = model.constraint(c);
std::string constraint_name_str = "";
if (!constraint.name().empty()) {
constraint_name_str = constraint.name();
highs.passRowName(c, constraint_name_str);
}
std::string constraint_name_str = "";
if (!constraint.name().empty()) {
constraint_name_str = constraint.name();
highs.passRowName(c, constraint_name_str);
}
}