Fix HiGHS interface (model name) (#4616)

This commit is contained in:
Peter Mitri
2025-04-01 10:45:59 +02:00
committed by Mizux Seiha
parent 27c0ca3156
commit fad1e40e52

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);
}