Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
advanced.h
1/*
2** Copyright 2007-2024, RTE (https://www.rte-france.com)
3** See AUTHORS.txt
4** SPDX-License-Identifier: MPL-2.0
5** This file is part of Antares-Simulator,
6** Adequacy and Performance assessment for interconnected energy networks.
7**
8** Antares_Simulator is free software: you can redistribute it and/or modify
9** it under the terms of the Mozilla Public Licence 2.0 as published by
10** the Mozilla Foundation, either version 2 of the License, or
11** (at your option) any later version.
12**
13** Antares_Simulator is distributed in the hope that it will be useful,
14** but WITHOUT ANY WARRANTY; without even the implied warranty of
15** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16** Mozilla Public Licence 2.0 for more details.
17**
18** You should have received a copy of the Mozilla Public Licence 2.0
19** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20*/
21#ifndef __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADVANCED_PARAMETERS_H__
22#define __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADVANCED_PARAMETERS_H__
23
24#include "../../../toolbox/components/button.h"
25#include <wx/dialog.h>
26#include <wx/textctrl.h>
27#include <antares/study/fwd.h>
28
29namespace Antares
30{
31namespace Window
32{
33namespace Options
34{
35extern Yuni::Event<void(bool)> OnRenewableGenerationModellingChanged;
36
40class AdvancedParameters final : public wxDialog
41{
42public:
44
45
50 AdvancedParameters(wxWindow* parent);
52 virtual ~AdvancedParameters();
54
55private:
56 void refresh();
57 void onClose(void*);
58 void onResetToDefault(void*);
59
60 void onInternalMotion(wxMouseEvent&);
61
62 wxTextCtrl* insertEdit(wxWindow* parent,
63 wxSizer* sizer,
64 const wxString& text,
65 wxObjectEventFunction);
66
67 void onEditSeedTSDraws(wxCommandEvent&);
68
69 void onNumericQuality(Component::Button&, wxMenu&, void*, Data::TimeSeriesType ts);
70 void onSelectNumericQualityStandard(wxCommandEvent& evt);
71 void onSelectNumericQualityHigh(wxCommandEvent& evt);
72
73 void onHydroHeuristicPolicy(Component::Button&, wxMenu& menu, void*);
74 void onSelectAccomodateRuleCurves(wxCommandEvent& evt);
75 void onSelectMaximizeGeneration(wxCommandEvent& evt);
76
77 void onHydroPricingMode(Component::Button&, wxMenu& menu, void*);
78 void onSelectHPHeuristic(wxCommandEvent& evt);
79 void onSelectHPMixedIntegerLinearProblem(wxCommandEvent& evt);
80
81 void onPowerFluctuations(Component::Button&, wxMenu&, void*);
82 void onSelectMinimizeRamping(wxCommandEvent& evt);
83 void onSelectMinimizeExcursions(wxCommandEvent& evt);
84 void onSelectFreeModulations(wxCommandEvent& evt);
85
86 void onSheddingPolicy(Component::Button&, wxMenu&, void*);
87 void onSelectSHPShavePeaks(wxCommandEvent& evt);
88 void onSelectSHPMinimizeDuration(wxCommandEvent& evt);
89
90 void onUnitCommitmentMode(Component::Button&, wxMenu& menu, void*);
91
92 void onSelectUCMode(Antares::Data::UnitCommitmentMode mode);
93 void onSelectUCHeuristicFast(wxCommandEvent& evt);
94 void onSelectUCHeuristicAccurate(wxCommandEvent& evt);
95 void onSelectUCMILP(wxCommandEvent& evt);
96
97 void onNumberOfCores(Component::Button&, wxMenu& menu, void*);
98 template<Antares::Data::NumberOfCoresMode>
99 void onSelectNumberOfCoresLevel(wxCommandEvent& evt);
100
101private:
102 void onSelectNumberOfCoresLevel(Data::NumberOfCoresMode ncMode);
103
104public:
105 void onRenewableGenerationModelling(Component::Button&, wxMenu& menu, void*);
106 void onSelectRGMaggregated(wxCommandEvent& evt);
107 void onSelectRGMrenewableClusters(wxCommandEvent& evt);
108
109private:
110 Component::Button* pBtnNumericQualityLoad;
111 Component::Button* pBtnNumericQualityWind;
112 Component::Button* pBtnNumericQualitySolar;
113 Component::Button* pBtnPowerFluctuations;
114 Component::Button* pBtnHydroHeuristicPolicy;
115 Component::Button* pBtnHydroPricing;
116 Component::Button* pBtnSheddingPolicy;
117 Component::Button* pBtnUnitCommitment;
118 Component::Button* pBtnRenewableGenModelling;
119 Component::Button* pBtnNumberOfCores;
120 wxTextCtrl* pEditSeeds[Data::seedMax];
121 // Only used for menus
122 Data::TimeSeriesType pCurrentTS;
123
124}; // class AdvancedParameters
125
126} // namespace Options
127} // namespace Window
128} // namespace Antares
129
130#endif // __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADVANCED_PARAMETERS_H__
Definition button.h:34
Startup Wizard User Interface.
Definition advanced.h:41
virtual ~AdvancedParameters()
Destructor.
Definition advanced.cpp:297
AdvancedParameters(wxWindow *parent)
Default constructor.
Definition advanced.cpp:61