-
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.
Added outputs for spilled and unsupplied volumes into the interface a…
…nd removed them from text outputs
- Loading branch information
Showing
12 changed files
with
523 additions
and
73 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
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
117 changes: 117 additions & 0 deletions
117
...able/include/antares/solver/variable/economy/VCardReserveParticipationUnsuppliedSpilled.h
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,117 @@ | ||
/* | ||
** Copyright 2007-2023 RTE | ||
** Authors: Antares_Simulator Team | ||
** | ||
** This file is part of Antares_Simulator. | ||
** | ||
** Antares_Simulator is free software: you can redistribute it and/or modify | ||
** it under the terms of the GNU General Public License as published by | ||
** the Free Software Foundation, either version 3 of the License, or | ||
** (at your option) any later version. | ||
** | ||
** There are special exceptions to the terms and conditions of the | ||
** license as they are applied to this software. View the full text of | ||
** the exceptions in file COPYING.txt in the directory of this software | ||
** distribution | ||
** | ||
** Antares_Simulator is distributed in the hope that it will be useful, | ||
** but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
** GNU General Public License for more details. | ||
** | ||
** You should have received a copy of the GNU General Public License | ||
** along with Antares_Simulator. If not, see <http://www.gnu.org/licenses/>. | ||
** | ||
** SPDX-License-Identifier: licenceRef-GPL3_WITH_RTE-Exceptions | ||
*/ | ||
#ifndef __SOLVER_VARIABLE_ECONOMY_VCardReserveParticipationUnsuppliedSpilled_H__ | ||
#define __SOLVER_VARIABLE_ECONOMY_VCardReserveParticipationUnsuppliedSpilled_H__ | ||
|
||
#include "../storage/results.h" | ||
|
||
namespace Antares | ||
{ | ||
namespace Solver | ||
{ | ||
namespace Variable | ||
{ | ||
namespace Economy | ||
{ | ||
struct VCardReserveParticipationUnsuppliedSpilled | ||
{ | ||
//! Caption | ||
static std::string Caption() | ||
{ | ||
return "RESERVE UNSUPPLIED OR SPILLED ENERGY"; | ||
} | ||
//! Unit | ||
static std::string Unit() | ||
{ | ||
return "MWh"; | ||
} | ||
|
||
//! The short description of the variable | ||
static std::string Description() | ||
{ | ||
return "Reserve unsupplied or spilled Power"; | ||
} | ||
|
||
//! The expected results | ||
typedef Results<R::AllYears::Average< // The average values throughout all years | ||
>> | ||
ResultsType; | ||
|
||
//! The VCard to look for for calculating spatial aggregates | ||
typedef VCardReserveParticipationUnsuppliedSpilled VCardForSpatialAggregate; | ||
|
||
enum | ||
{ | ||
//! Data Level | ||
categoryDataLevel = Category::area, | ||
//! File level (provided by the type of the results) | ||
categoryFileLevel = ResultsType::categoryFile & (Category::id | Category::va), | ||
//! Precision (views) | ||
precision = Category::all, | ||
//! Indentation (GUI) | ||
nodeDepthForGUI = +0, | ||
//! Decimal precision | ||
decimal = 0, | ||
//! Number of columns used by the variable | ||
columnCount = Category::dynamicColumns, | ||
//! The Spatial aggregation | ||
spatialAggregate = Category::spatialAggregateSum, | ||
spatialAggregateMode = Category::spatialAggregateEachYear, | ||
spatialAggregatePostProcessing = 0, | ||
//! Intermediate values | ||
hasIntermediateValues = 1, | ||
//! Can this variable be non applicable (0 : no, 1 : yes) | ||
isPossiblyNonApplicable = 0, | ||
}; | ||
|
||
typedef IntermediateValues IntermediateValuesDeepType; | ||
typedef IntermediateValues* IntermediateValuesBaseType; | ||
typedef IntermediateValuesBaseType* IntermediateValuesType; | ||
|
||
// typedef IntermediateValues IntermediateValuesType; | ||
|
||
}; // class VCard | ||
|
||
static std::string thermalUnsuppliedSpilledToString(Data::ThermalUnsuppliedSpilled idx) | ||
{ | ||
switch (idx) | ||
{ | ||
case 0: | ||
return "UNSP."; | ||
case 1: | ||
return "SPIL."; | ||
default: | ||
return "<unknown>"; | ||
} | ||
} | ||
|
||
} // namespace Economy | ||
} // namespace Variable | ||
} // namespace Solver | ||
} // namespace Antares | ||
|
||
#endif //__SOLVER_VARIABLE_ECONOMY_VCardReserveParticipationUnsuppliedSpilled_H__ |
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.