-
Notifications
You must be signed in to change notification settings - Fork 31
parquet part 3 : parquet for legacy solver #3586
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
Changes from 137 commits
f94d570
008ad11
431265b
114c932
e55efde
56f980b
0f56acf
779fe04
808e264
bb519fe
25190d1
6081c84
11cf1cc
e678bf4
ef4625b
c748a24
b940a91
46d3dee
1abfc98
ed7ddd7
da94ac6
28ca2c2
98b2c7f
d366790
75373ad
86f7a2b
ad7fd91
b539331
c22240a
3fceb46
39dcec7
3467e32
e66c17d
76bf7e1
4310b6b
b4a71c6
b5ec827
c2003e7
108f3d3
da53c69
58c3b74
abf296e
62b2196
7520128
20e4000
0a35d56
5449229
0e7aab9
96d05b3
99b1a80
9dc58c1
a25f274
70f4748
623c42d
f33e5dd
acc6d1d
6cb9898
701d27a
08eb4f6
437dfe3
0ce202e
e9593cc
7a9b9d6
b6ff37b
7a2992e
2eef562
34cbf26
80c3dbc
59460f1
4525ed6
155603a
34424b7
85b318d
b8f13ec
c8ec2cf
dba815e
a14222c
99deb55
39a61f9
78346a2
e1da3ee
c4fdfac
a74aef9
9858a6d
570f817
ee128c4
a6f76c3
94ffce0
32cc90a
729cb06
bf4d50e
850b4cf
a8e990f
62d7089
4139291
555ecec
72fe139
d8dea4e
3ae1c6a
0aaaaed
295a5d9
74732e9
bfe2f26
b3777b5
4082e33
9095209
4aadc1d
f211b86
7995e9f
9666b70
03e96af
2600a06
279f7bd
fce0a15
f8d8043
4aaee88
c116648
a9a0b47
b6f9ba3
57dfdd2
d35a11c
c5ff2cc
be39c27
0882fc6
5bfcd63
131216f
8530bd7
b265d5b
f0825a6
f24a27b
8a0ead6
89da1ad
947137d
05f32f4
f835350
a352a27
ceed9b0
bfc4c08
bf4efd5
d8e8377
443ef77
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // Copyright 2007-2026, RTE (https://www.rte-france.com) | ||
| // SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| #include "include/antares/io/outputs/OptimisationsSimulationTable.h" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this class is now so short that it could now be a struct |
||
|
|
||
| namespace Antares::IO::Outputs | ||
| { | ||
| SimulationTable* OptimisationsSimulationTable::firstOptimSimulationTable() | ||
| { | ||
| return &firstOptimSimulationTable_; | ||
| } | ||
|
|
||
| SimulationTable* OptimisationsSimulationTable::secondOptimSimulationTable() | ||
| { | ||
| return &secondOptimSimulationTable_; | ||
| } | ||
|
|
||
| void OptimisationsSimulationTable::clear() | ||
| { | ||
| firstOptimSimulationTable_.clear(); | ||
| secondOptimSimulationTable_.clear(); | ||
| } | ||
| } // namespace Antares::IO::Outputs | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| // Copyright 2007-2026, RTE (https://www.rte-france.com) | ||
| // SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "antares/optimisation/linear-problem-api/hasStatus.h" | ||
|
|
||
| namespace Antares::Writer | ||
| { | ||
| class IColumnAdapter; | ||
| } // namespace Antares::Writer | ||
|
|
||
| using namespace Antares::Writer; | ||
|
Check failure on line 13 in src/io/outputs/include/antares/io/outputs/IColumnAdapterVisitor.h
|
||
|
|
||
| namespace Antares::IO::Outputs | ||
| { | ||
|
|
||
| // Forward declare template | ||
| template<typename T> | ||
| class TypedColumn; | ||
|
|
||
| // Define type aliases | ||
| using StringColumn = TypedColumn<std::string>; | ||
| using IntegralColumn = TypedColumn<unsigned>; | ||
| using DoubleColumn = TypedColumn<double>; | ||
|
|
||
| template<typename T> | ||
| using OptionalColumn = TypedColumn<std::optional<T>>; | ||
|
|
||
| // ================================ | ||
| // Class IColumnAdapterVisitor | ||
| // ================================ | ||
| class IColumnAdapterVisitor | ||
| { | ||
| public: | ||
| virtual ~IColumnAdapterVisitor() = default; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const StringColumn&) = 0; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const DoubleColumn&) = 0; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const IntegralColumn&) = 0; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const OptionalColumn<std::string>&) = 0; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const OptionalColumn<double>&) = 0; | ||
| virtual std::shared_ptr<IColumnAdapter> visit(const OptionalColumn<unsigned>&) = 0; | ||
|
|
||
| virtual std::shared_ptr<IColumnAdapter> | ||
| visit(const OptionalColumn<Optimisation::LinearProblemApi::MipBasisStatus>&) = 0; | ||
| }; | ||
| } // namespace Antares::IO::Outputs | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,28 +5,17 @@ | |
|
|
||
| #include "antares/io/outputs/SimulationTable.h" | ||
|
|
||
| namespace Antares::Solver | ||
| namespace Antares::IO::Outputs | ||
| { | ||
| class IResultWriter; | ||
| } | ||
|
|
||
| class OptimisationsSimulationTable | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you can see, this class was :
|
||
| { | ||
| public: | ||
| void clear(); | ||
|
|
||
| std::pair<std::string, std::string> moveBuffers(); | ||
|
|
||
| void write(); | ||
|
|
||
| void writeTo(const std::string& filePrefix, Antares::Solver::IResultWriter& writer); | ||
| Antares::IO::Outputs::SimulationTable* firstOptimSimulationTable(); | ||
| Antares::IO::Outputs::SimulationTable* secondOptimSimulationTable(); | ||
| [[nodiscard]] std::string headerCsvFormat() const; | ||
| void clear(); | ||
|
|
||
| private: | ||
| Antares::IO::Outputs::SimulationTable firstOptimSimulationTable_; | ||
| Antares::IO::Outputs::SimulationTable secondOptimSimulationTable_; | ||
| std::string firstOptimBuffer_; | ||
| std::string secondOptimBuffer_; | ||
| }; | ||
| } // namespace Antares::IO::Outputs | ||
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.
class OptimisationsSimulationTable was moved here