add gurobi 12.0.2

This commit is contained in:
Laurent Perron
2025-05-20 14:37:40 +02:00
parent 04d55fc5cd
commit 45d24e2bd7

View File

@@ -347,9 +347,9 @@ void LoadGurobiFunctions(DynamicLibrary* gurobi_dynamic_library) {
std::vector<std::string> GurobiDynamicLibraryPotentialPaths() {
std::vector<std::string> potential_paths;
const std::vector<absl::string_view> kGurobiVersions = {
"1201", "1200", "1103", "1102", "1101", "1100", "1003",
"1002", "1001", "1000", "952", "951", "950", "911",
"910", "903", "902", "811", "801", "752"};
"1202", "1201", "1200", "1103", "1102", "1101", "1100",
"1003", "1002", "1001", "1000", "952", "951", "950",
"911", "910", "903", "902", "811", "801", "752"};
potential_paths.reserve(kGurobiVersions.size() * 3);
// Look for libraries pointed by GUROBI_HOME first.
@@ -408,8 +408,8 @@ std::vector<std::string> GurobiDynamicLibraryPotentialPaths() {
#if defined(__GNUC__) // path in linux64 gurobi/optimizer docker image.
for (const absl::string_view version :
{"12.0.1", "12.0.0", "11.0.3", "11.0.2", "11.0.1", "11.0.0", "10.0.3",
"10.0.2", "10.0.1", "10.0.0", "9.5.2", "9.5.1", "9.5.0"}) {
{"12.0.2", "12.0.1", "12.0.0", "11.0.3", "11.0.2", "11.0.1", "11.0.0",
"10.0.3", "10.0.2", "10.0.1", "10.0.0", "9.5.2", "9.5.1", "9.5.0"}) {
potential_paths.push_back(
absl::StrCat("/opt/gurobi/linux64/lib/libgurobi.so.", version));
}