SmartEquilibriumResult.hpp
86 auto operator+=(const SmartEquilibriumResultDuringPrediction& other) -> SmartEquilibriumResultDuringPrediction&;
97 auto operator+=(const SmartEquilibriumResultDuringLearning& other) -> SmartEquilibriumResultDuringLearning&;
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
A type used to describe the result of an equilibrium calculation.
Definition: EquilibriumResult.hpp:28
auto iterations() const
Return the number of iterations in the calculation.
Definition: EquilibriumResult.hpp:36
auto succeeded() const
Return true if the calculation succeeded.
Definition: EquilibriumResult.hpp:30
Used to represent the result of a learning operation in a smart chemical equilibrium calculation.
Definition: SmartEquilibriumResult.hpp:92
auto operator+=(const SmartEquilibriumResultDuringLearning &other) -> SmartEquilibriumResultDuringLearning &
Self addition assignment to accumulate results.
EquilibriumResult solve
The result of the conventional iterative chemical equilibrium calculation in the learning operation.
Definition: SmartEquilibriumResult.hpp:94
Used to represent the result of a prediction operation in a smart chemical equilibrium calculation.
Definition: SmartEquilibriumResult.hpp:72
double failed_with_amount
The amount of the species that caused the smart approximation to fail.
Definition: SmartEquilibriumResult.hpp:80
double failed_with_chemical_potential
The amount of the species that caused the smart approximation to fail.
Definition: SmartEquilibriumResult.hpp:83
String failed_with_species
The name of the species that caused the smart approximation to fail.
Definition: SmartEquilibriumResult.hpp:77
bool accepted
The indication whether the smart equilibrium prediction was accepted.
Definition: SmartEquilibriumResult.hpp:74
Used to describe the result of a smart chemical equilibrium calculation.
Definition: SmartEquilibriumResult.hpp:102
auto predicted()
Return true if the calculation was performed using a fast first-order Taylor prediction.
Definition: SmartEquilibriumResult.hpp:110
SmartEquilibriumTiming timing
The timing information of the operations during a smart chemical equilibrium calculation.
Definition: SmartEquilibriumResult.hpp:125
auto succeeded()
Return true if the calculation succeeded.
Definition: SmartEquilibriumResult.hpp:104
auto failed()
Return true if the calculation failed.
Definition: SmartEquilibriumResult.hpp:107
SmartEquilibriumResultDuringLearning learning
The result of the learning operation (if there was learning).
Definition: SmartEquilibriumResult.hpp:122
SmartEquilibriumResultDuringPrediction prediction
The result of the smart approximation operation.
Definition: SmartEquilibriumResult.hpp:116
auto operator+=(const SmartEquilibriumResult &other) -> SmartEquilibriumResult &
Self addition assignment to accumulate results.
auto learned()
Return true if the calculation was learned, not predicted, and performed using the conventional algor...
Definition: SmartEquilibriumResult.hpp:113
auto iterations()
Return the number of iterations in the calculation (zero if prediction was successful).
Definition: SmartEquilibriumResult.hpp:116
Used to provide timing information of the operations during a smart chemical equilibrium calculation.
Definition: SmartEquilibriumResult.hpp:28
double prediction_taylor
The time spent for the matrix-vector multiplication during a smart prediction (in seconds).
Definition: SmartEquilibriumResult.hpp:60
double prediction_priority_update
The time spent for updating the priority related info of the clusters in the database (in seconds).
Definition: SmartEquilibriumResult.hpp:63
double learning_sensitivity_matrix
The time spent for computing the sensitivity matrix during the learning operation (in seconds).
Definition: SmartEquilibriumResult.hpp:42
double prediction_search
The time spent for the search operation during a smart prediction (in seconds).
Definition: SmartEquilibriumResult.hpp:54
double learning_error_control_matrices
The time spent for computing the error control matrices during the learning operation (in seconds).
Definition: SmartEquilibriumResult.hpp:45
double solve
The time spent for solving the chemical equilibrium problem (in seconds).
Definition: SmartEquilibriumResult.hpp:30
double prediction_error_control
The time spent during on error control while searching during a smart prediction (in seconds).
Definition: SmartEquilibriumResult.hpp:57
double learning
The time spent for learning a new chemical equilibrium state (in seconds).
Definition: SmartEquilibriumResult.hpp:33
double learning_storage
The time spent for storing the computed chemical state into the tree of knowledge (in seconds).
Definition: SmartEquilibriumResult.hpp:48
auto operator+=(const SmartEquilibriumTiming &other) -> SmartEquilibriumTiming &
Self addition of another SmartEquilibriumTiming instance to this one.
double prediction
The time spent for the smart chemical equilibrium state prediction (in seconds).
Definition: SmartEquilibriumResult.hpp:51
double learning_chemical_properties
The time spent for computing the chemical properties during the learning operation (in seconds).
Definition: SmartEquilibriumResult.hpp:39
double learning_solve
The time spent for a conventional iterative chemical equilibrium calculation during the learning oper...
Definition: SmartEquilibriumResult.hpp:36