Skip to content

Commit

Permalink
Bump OR-Tools (fix crash with XPRESS) (#1873)
Browse files Browse the repository at this point in the history
Since OR-Tools 9.5-rte3.0 does not support `SetStartingLpBasis` (it
supports `SetStartingLpBasisInt`), we must use 9.8-rte1.0-beta2 instead.

Using XPRESS with Antares Simulator 8.8.0 (OR-Tools 9.5-rte3.0) causes a
crash with the following error message
```
W0111 15:00:55.315875 169991 environment.cc:282] Optimizer version: 39.01.01 (OR-Tools was compiled with version 41).
[2024-01-11 15:00:55][solver][infos] Solver OR-Tools MPS File: `problem-1-1--optim-nb-2.mps'
F0111 15:00:55.821070 169991 linear_solver.h:1766] Not supported by this solver.
*** Check failure stack trace: ***
Abandon (core dumped)
```

Also, don't convert CMAKE_BUILD_TYPE to lower-case. It causes issues
with SCIP and antares-deps.
  • Loading branch information
flomnes authored Jan 16, 2024
1 parent 6f61def commit bdead1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/build/3-Build.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here is a list of available CMake configure option :

|Option | Description |
|:-------|-------|
|`CMAKE_BUILD_TYPE` | Define build type. Available values are `release` and `debug` (case insensitive) |
|`CMAKE_BUILD_TYPE` | Define build type. Available values are `Release` and `Debug` |
|`BUILD_UI`|Enable or disable Antares Simulator UI compilation (default `ON`)|
|`BUILD_ALL`|Enable build of ALL external libraries (default `OFF`)|
|`DEPS_INSTALL_DIR`|Define dependencies libraries install directory|
Expand Down
2 changes: 1 addition & 1 deletion ortools_tag
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v9.5-rte3.0
v9.8-rte1.0
2 changes: 0 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ execute_process(COMMAND
OUTPUT_VARIABLE GIT_SHA1_SHORT
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)

string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE)

# Build Configuration
set(ANTARES_TARGET "${CMAKE_BUILD_TYPE}")

Expand Down

0 comments on commit bdead1b

Please sign in to comment.