-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thermal clusters lists : cleaning (#1844)
This PR follows the PR #1809 (about cleaning common cluster list and renewable cluster list) It aims at simplifying thermal cluster lists as much as possible. **Goal** : Having only one list of thermal clusters. This list would be **private** Code would interact with this list through an interface. This interface would contain functions returning **std::views** that would result in filtering thermal clusters using a certain property of clusters : enabled / disabled, must-run or not, a combination of these. **What's done** : - [x] Simplifying the `ClusterList<T>::add()` method - [x] Changing **std::map** `mapping` from class **ThermalClusterList** into a **std::vector** (named `allClusters_`) - [x] Removing **PartThermal::clusters** (often reached by `area.thermal.clusters`) - [x] Removing **PartThermal::mustrunList** (often reached by `area.thermal.mustrunList`) - [x] Removing **PartThermal::list** (often reached by `area.thermal.list.clusters`) **Before starting a review, one should know several things** : - what the old lists of clusters used to contain : - **area.thermal.list.mapping** : all clusters - **area.thermal.mustrunList.clusters** : clusters must-run and enabled - **area.thermal.clusters** : enabled clusters - **area.thermal.list.clusters** : list used to build the optimization problem (clusters enabled and not must-run). Careful with that list : when loading clusters from input, this list contains all clusters. Then it is progressively cleared from disabled and must-run clusters. So its content depends on where we are in the execution. This list is also used from the **GUI**. In that case, it always contains all clusters : it is **not** cleared from specific clusters. - the list **area.thermal.list.clusters** is the only list used in the **GUI**, and in that case, it contains all clusters. - As said previously, all lists of clusters are removed, except **area.thermal.list.mapping**, turned into a private **std::vector** (**area.thermal.list.allClusters_**) containing all clusters, and filtered to access only clusters of interest at any point of the code. - **cluster indices** : any cluster (thermal / renewable) used to have 2 indices : - **index** : it turns out to be an index regarding only enabled and not must-run clusters. So this index never concerns renewable clusters. It was moved down from parent class **Cluster** to class **ThermalCluster**. - **areaWideIndex** : index regarding only enabled clusters. Concerns both thermal and renewable clusters - the 2 lists **area.thermal.mustrunList.clusters** and **area.thermal.list.clusters** are closely related (inter-dependent) to the **renewable** cluster list, due to a common inheritance. So this work deeply impacts the **renewable** cluster lists. --------- Co-authored-by: Vincent Payet <[email protected]> Co-authored-by: Jason Maréchal <[email protected]> Co-authored-by: Florian OMNES <[email protected]> Co-authored-by: payetvin <[email protected]>
- Loading branch information
1 parent
418f563
commit b181904
Showing
83 changed files
with
696 additions
and
1,200 deletions.
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ on: | |
- main | ||
- develop | ||
- release/* | ||
pull_request: | ||
- fix/* | ||
- feature/* | ||
|
||
jobs: | ||
sonarcloud: | ||
|
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ Makefile | |
src/.vs | ||
|
||
src/config.h | ||
src/config/include | ||
|
||
# Yuni | ||
src/ext/yuni/src/ProfileBuild.cmake | ||
|
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
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
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
Oops, something went wrong.