Antares Simulator
Power System Simulator
advanced.h
1 /*
2  * Copyright 2007-2025, 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 
29 namespace Antares::Window::Options
30 {
31 extern Yuni::Event<void(bool)> OnRenewableGenerationModellingChanged;
32 
36 class AdvancedParameters final: public wxDialog
37 {
38 public:
40 
41 
46  AdvancedParameters(wxWindow* parent);
48  virtual ~AdvancedParameters();
50 
51 private:
52  void refresh();
53  void onClose(void*);
54  void onResetToDefault(void*);
55 
56  void onInternalMotion(wxMouseEvent&);
57 
58  wxTextCtrl* insertEdit(wxWindow* parent,
59  wxSizer* sizer,
60  const wxString& text,
61  wxObjectEventFunction);
62 
63  void onEditSeedTSDraws(wxCommandEvent&);
64 
65  void onNumericQuality(Component::Button&, wxMenu&, void*, Data::TimeSeriesType ts);
66  void onSelectNumericQualityStandard(wxCommandEvent& evt);
67  void onSelectNumericQualityHigh(wxCommandEvent& evt);
68 
69  void onHydroHeuristicPolicy(Component::Button&, wxMenu& menu, void*);
70  void onSelectAccomodateRuleCurves(wxCommandEvent& evt);
71  void onSelectMaximizeGeneration(wxCommandEvent& evt);
72 
73  void onHydroPricingMode(Component::Button&, wxMenu& menu, void*);
74  void onSelectHPHeuristic(wxCommandEvent& evt);
75  void onSelectHPMixedIntegerLinearProblem(wxCommandEvent& evt);
76 
77  void onPowerFluctuations(Component::Button&, wxMenu&, void*);
78  void onSelectMinimizeRamping(wxCommandEvent& evt);
79  void onSelectMinimizeExcursions(wxCommandEvent& evt);
80  void onSelectFreeModulations(wxCommandEvent& evt);
81 
82  void onSheddingPolicy(Component::Button&, wxMenu&, void*);
83  void onSelectSHPShavePeaks(wxCommandEvent& evt);
84  void onSelectSHPMinimizeDuration(wxCommandEvent& evt);
85 
86  void onUnitCommitmentMode(Component::Button&, wxMenu& menu, void*);
87 
88  void onSelectUCMode(Antares::Data::UnitCommitmentMode mode);
89  void onSelectUCHeuristicFast(wxCommandEvent& evt);
90  void onSelectUCHeuristicAccurate(wxCommandEvent& evt);
91  void onSelectUCMILP(wxCommandEvent& evt);
92 
93  void onNumberOfCores(Component::Button&, wxMenu& menu, void*);
94  template<Antares::Data::NumberOfCoresMode>
95  void onSelectNumberOfCoresLevel(wxCommandEvent& evt);
96 
97 private:
98  void onSelectNumberOfCoresLevel(Data::NumberOfCoresMode ncMode);
99 
100 public:
101  void onRenewableGenerationModelling(Component::Button&, wxMenu& menu, void*);
102  void onSelectRGMaggregated(wxCommandEvent& evt);
103  void onSelectRGMrenewableClusters(wxCommandEvent& evt);
104 
105 private:
106  Component::Button* pBtnNumericQualityLoad;
107  Component::Button* pBtnNumericQualityWind;
108  Component::Button* pBtnNumericQualitySolar;
109  Component::Button* pBtnPowerFluctuations;
110  Component::Button* pBtnHydroHeuristicPolicy;
111  Component::Button* pBtnHydroPricing;
112  Component::Button* pBtnSheddingPolicy;
113  Component::Button* pBtnUnitCommitment;
114  Component::Button* pBtnRenewableGenModelling;
115  Component::Button* pBtnNumberOfCores;
116  wxTextCtrl* pEditSeeds[Data::seedMax];
117  // Only used for menus
118  Data::TimeSeriesType pCurrentTS;
119 
120 }; // class AdvancedParameters
121 
122 } // namespace Antares::Window::Options
123 
124 #endif // __ANTARES_APPLICATION_WINDOWS_OPTIONS_ADVANCED_PARAMETERS_H__
Definition: button.h:32
Startup Wizard User Interface.
Definition: advanced.h:37
virtual ~AdvancedParameters()
Destructor.
Definition: advanced.cpp:301
AdvancedParameters(wxWindow *parent)
Default constructor.
Definition: advanced.cpp:57