Skip to content

Commit

Permalink
Update antares solver to 9.2-rc5 (#961)
Browse files Browse the repository at this point in the history
Update antares simulator to 9.2-RC5

Use or-tools with sirius support on windows.
  • Loading branch information
JasonMarechal25 authored Nov 15, 2024
1 parent 6a3ba09 commit 0468736
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
VCPKG_BINARY_SOURCES: "clear;files,${{ github.workspace }}/vcpkg_cache,readwrite"
ORTOOLS_DIR: $GITHUB_WORKSPACE/or-tools
ORTOOLS_URL: "https://github.com/rte-france/or-tools-rte/releases/download/v9.11-rte1.1/ortools_cxx_windows-latest_static.zip"
ORTOOLS_URL: "https://github.com/rte-france/or-tools-rte/releases/download/v9.11-rte1.1/ortools_cxx_windows-latest_static_sirius.zip"

outputs:
zip_name: ${{ steps.zip_name.outputs.zip_name }}
Expand Down Expand Up @@ -133,7 +133,6 @@ jobs:
with:
# feature: "features/outer_loop_tests.feature"
mpi_path: /c/Program Files/Microsoft MPI/Bin


- name: Cache vcpkg binary dir
if: always()
Expand Down
2 changes: 1 addition & 1 deletion antares-version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"antares_version": "9.2.0-rc1",
"antares_version": "9.2.0-RC5",
"antares_version_executable": "9.2",
"antares_xpansion_version": "1.3.2",
"minizip_ng_version": "3.0.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ Alternatively you can install openmpi yourself
## Other dependencies
- Antares Simulator: either build it from source, download precompiled binaries or use the automatic build method
- Or-tools: either build it from source, download precompiled binaries or use the automatic build method
- If you are downloading pre-compiled binaries of or-tools you need to select a version supporting Sirius solver

### Using pre-build dependency
If using built from source or pre-built release of Simulator, Or-tools-rte or other dependency, you can specify the path to the dependency in the CMake configuration.
Expand Down
2 changes: 1 addition & 1 deletion src/python/antares_xpansion/problem_generator_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def create_lp_dir(self):
def lp_namer_options(self):
is_relaxed = 'relaxed' if self.is_relaxed else 'integer'
if self.memory:
ret = ["--study", str(self.study_path), "-f", is_relaxed] # study/output/xpansion_output_dir
ret = ["--study", str(os.path.normpath(self.study_path)), "-f", is_relaxed] # study/output/xpansion_output_dir
else:
ret = ["-a", str(self.output_path), "-f", is_relaxed]
if self.weight_file_name_for_lp:
Expand Down
2 changes: 1 addition & 1 deletion tests/end_to_end/cucumber/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import subprocess
import sys
from pathlib import Path

import numpy as np
from behave import *

from utils_functions import get_mpi_command, get_conf, read_outputs, remove_outputs


Expand Down
2 changes: 1 addition & 1 deletion tests/end_to_end/lpnamer/test_lpnamerEndToEnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def launch_and_compare_lp_with_reference_study(install_dir, master_mode, study_d
lp_namer_exe = Path(install_dir) / "lp_namer"
os.chdir(study_dir)
constraint_path = get_constraint_path(study_dir)
launch_command = [str(lp_namer_exe), "--study", str(study_dir),
launch_command = [str(lp_namer_exe), "--study", study_dir,
"-e", constraint_path, "-f", master_mode, "--unnamed-problems"]
# when
returned_l = subprocess.run(launch_command, shell=False)
Expand Down
1 change: 0 additions & 1 deletion tests/end_to_end/utils_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pathlib import Path

import yaml
from dataclasses import dataclass

# File CONFIG_FILE_PATH
# yaml file containing executable name
Expand Down

0 comments on commit 0468736

Please sign in to comment.