Conversation
Collaborator
|
We now have or-tools fork which lives here: https://github.com/NREL/or-tools When using this fork, I was unable to build or-tools using Instead I built or-tools with I was able to run the test using SCIP and Xpress. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To use:
Download OR-Tools version 9.8 source separately in the same directory as sam, ssc, etc. https://github.com/google/or-tools/releases/tag/v9.8
Set the directory via
export ORTOOLSDIR=$HOME/.../sam-dev/or-tools/install(for Windows, set the environment variable)Then build and install it with CMake.
If using XPRESS, add
-DUSE_XPRESS=ON -DXPRESS_ROOT=${XPRESS_ROOT}to the cmake config commands below. IfXPRESS_ROOTis defined as an environment variable, you don't need to add-DXPRESS_ROOT=${XPRESS_ROOT}to the CMake command.Unix
Environment variable: ORTOOLSDIR =
/path/to/or-tools/install/install_releaseWindows
Use
x64 Native Tools Command Prompt for VS 2022and note VS 2022 is required. IfXPRESS_ROOTis defined as an environment variable, you don't need to add it to the CMake command. Windows requires building both Debug and Release. In addition, these are built in separate directories namedinstall_releaseandinstall_debug. The "release" and "debug" text is needed in the names for the CMake to switch between the configurations.Environment variables:
ORTOOLSDIR =
/path/to/or-tools/install_releaseORTOOLSDBDIR =
/path/to/or-tools/install_debugThen the .sln file can be used in Visual Studio
Test OR-tools in the Test via the
lib_ptes_chp_dispatch_testtest.If downloading OR-Tools binary from their website https://developers.google.com/optimization/install/cpp, then set
ORTOOLSDIRto the extracted folder.ORTOOLSDIRshould contain the 'lib', 'cmake', 'bin', etc folders.