Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge classical and by batch benders #738

Merged
merged 25 commits into from
Feb 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix test
a-zakir committed Dec 27, 2023
commit 1a38b119ab311c197ea33adb69612feacb9b41aa
16 changes: 6 additions & 10 deletions tests/end_to_end/examples/example_test.py
Original file line number Diff line number Diff line change
@@ -351,7 +351,7 @@ def test_full_study_long_sequential(
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study,
BendersMethod.BENDERS, allow_run_as_root, 1)
allow_run_as_root, 1)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
tmp_study, expected_investment_solution, antares_version)
@@ -373,8 +373,7 @@ def test_full_study_long_mpi(
):
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study,
BendersMethod.BENDERS, allow_run_as_root)
launch_xpansion(install_dir, tmp_study, allow_run_as_root)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
tmp_study, expected_investment_solution, antares_version)
@@ -566,8 +565,7 @@ def test_full_study_medium_sequential(
):
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study,
BendersMethod.BENDERS, allow_run_as_root, 1)
launch_xpansion(install_dir, tmp_study, allow_run_as_root, 1)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
tmp_study, expected_investment_solution, antares_version)
@@ -589,8 +587,7 @@ def test_full_study_medium_parallel(
):
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study,
BendersMethod.BENDERS, allow_run_as_root)
launch_xpansion(install_dir, tmp_study, allow_run_as_root)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
tmp_study, expected_investment_solution, antares_version)
@@ -681,7 +678,7 @@ def test_full_study_short_sequential(
):
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study, BendersMethod.BENDERS,
launch_xpansion(install_dir, tmp_study,
allow_run_as_root, nproc=1)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
@@ -704,8 +701,7 @@ def test_full_study_short_parallel(
):
tmp_study = tmp_path / study_path.name
shutil.copytree(study_path, tmp_study)
launch_xpansion(install_dir, tmp_study,
BendersMethod.BENDERS, allow_run_as_root)
launch_xpansion(install_dir, tmp_study, allow_run_as_root)
verify_solution(tmp_study, expected_values, expected_investment_solution)
verify_study_update(
tmp_study, expected_investment_solution, antares_version)