-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/ant 958 #12
Merged
Merged
Feature/ant 958 #12
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7c8a540
See #ANT-958 Create model/common.py and refactor ValueType
ianmnz 900c776
See #ANT-958 Add ProblemContext to Par, Var and Constraint
ianmnz b678875
See #ANT-958 Add ProblemType to build_problem
ianmnz 9995811
See #ANT-958 Add ExportModel to tests
ianmnz 5464f5d
See #ANT-958 Add Export MPS function for Xpansion's Bender
ianmnz 87122d1
See #ANT-958 Set verbose name to variables and constraints
ianmnz e7aeb39
See #ANT-958 Add cluster_candidate to test
ianmnz 12790b0
See #ANT-958 Fixed after merge
ianmnz 435eee4
See #ANT-958 Avoid string parsing for structure.txt
ianmnz 0af3cd8
See #ANT-958 Rename serialize function
ianmnz 2997ee7
See #ANT-958 Separate optimization.py from xpansion.py
ianmnz 98acf35
See #ANT-958 Add node_with_spillage_and_ens to standard models
ianmnz a56a4b1
See #ANT-958 Split Xpansion test into two
ianmnz b4ac1e6
See #ANT-958 To avoid CI errors when ./bender is not found
ianmnz b30b673
Merge branch 'main' into feature/ANT-958
ianmnz 3d6990c
See #ANT-958 Fixes after PR review
ianmnz add3654
See #ANT-958 Add Coupling context for variables
ianmnz eb7a727
See #ANT-958 String fix after review
ianmnz ed94844
See #ANT-958 Rename cluster candidate to better relate to real life
ianmnz 85c62db
See #ANT-958 Fixes after review
ianmnz 635f78d
See #ANT-958 Rename Xpansion to BendersDecomposed
ianmnz 8ecaa3d
See #ANT-958 Implement ProblemStrategy interface
ianmnz 2a26daa
See #ANT-958 Rename build_problem parameter for better understanding
ianmnz 07fca4f
See #ANT-958 Move ModelSelectionStrategy to simulation directory
ianmnz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ venv | |
.env | ||
.coverage | ||
coverage.xml | ||
bin | ||
outputs |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2024, RTE (https://www.rte-france.com) | ||
# | ||
# See AUTHORS.txt | ||
# | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# SPDX-License-Identifier: MPL-2.0 | ||
# | ||
# This file is part of the Antares project. | ||
|
||
""" | ||
Module for common classes used in models. | ||
""" | ||
from enum import Enum | ||
|
||
|
||
class ValueType(Enum): | ||
FLOAT = "FLOAT" | ||
INTEGER = "INTEGER" | ||
# Needs more ? | ||
|
||
|
||
class ProblemContext(Enum): | ||
OPERATIONAL = 0 | ||
INVESTMENT = 1 | ||
COUPLING = 2 |
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add open source header !