Loading [MathJax]/extensions/tex2jax.js
Antares Xpansion
Investment simulations for Antares studies
All Classes Namespaces Files Functions Variables Typedefs Pages
JsonXpansionReader.h
1#pragma once
2
3#include <filesystem>
4#include <json/reader.h>
5
13{
14private:
15 typedef std::map<std::string, double> Point;
16
17private:
18 // number of the last iteration
19 int _lastIterNb;
20
21 // json file content
22 Json::Value _input;
23
24public:
29
33 virtual ~JsonXpansionReader() = default;
34
42 void read(const std::filesystem::path& filename_p);
43
49 int getBestIteration() const;
50
56 int getLastIteration() const;
57
62 Point getSolutionPoint() const;
63};
Class that reads a json file describing an antares-xpansion solution.
Definition JsonXpansionReader.h:13
int getBestIteration() const
returns the index of the best iteration indicated in the json output file
Definition JsonXpansionReader.cpp:32
JsonXpansionReader()
JsonXpansionReader default constructor.
Definition JsonXpansionReader.cpp:7
virtual ~JsonXpansionReader()=default
JsonWriter default destructor.
int getLastIteration() const
returns the index of the last iteration indicated in the json output file
Definition JsonXpansionReader.cpp:37
void read(const std::filesystem::path &filename_p)
reads a json file describing the execution of an antares xpansion optimisation and populates the json...
Definition JsonXpansionReader.cpp:12
Point getSolutionPoint() const
returns the solution to the xpansion problem indicated in the json output file
Definition JsonXpansionReader.cpp:42