Fix HiGHS interface (model name) (#4616)

This commit is contained in:
Peter Mitri
2025-04-01 10:45:59 +02:00
committed by GitHub
parent 8fd204d7d4
commit 0d56b19c96

View File

@@ -55,7 +55,7 @@ absl::StatusOr<MPSolutionResponse> HighsSolveProto(
Highs highs;
// Set model name.
if (model.has_name()) {
if (model.has_name() && !model.name().empty()) {
const std::string model_name = model.name();
highs.passModelName(model_name);
}