14 #ifndef __SOLUTIONSERROR_H__
15 #define __SOLUTIONSERROR_H__
28 #include "numerical_integration.h"
30 #include "performance_term.h"
34 #include "../tinyxml2/tinyxml2.h"
120 void check(
void)
const;
136 virtual void print(
void)
const;
138 tinyxml2::XMLDocument*
to_XML(
void)
const;
139 void from_XML(
const tinyxml2::XMLDocument&);
std::string write_solutions_error_method(void) const
Returns a string with the name of the method for computing the solutions error.
const Vector< double > & get_solutions_errors_weights(void) const
Returns the weights for every single solution error, corresponding to a dependent variable...
tinyxml2::XMLDocument * to_XML(void) const
Returns a representation of the solutions error object, in XML format.
const SolutionsErrorMethod & get_solutions_error_method(void) const
Returns the method for computing the solutions error.
virtual Matrix< double > calculate_target_dependent_variables(const Matrix< double > &) const
Returns the default target solution matrix.
SolutionsErrorMethod solutions_error_method
Method used to compute the error between the mathematical model solutions and the target solutions...
virtual ~SolutionsError(void)
void set_solutions_error_method(const SolutionsErrorMethod &)
SolutionsErrorMethod
Enumeration of the different methods to compute the errors between the mathematical model solutions a...
Vector< double > solutions_errors_weights
Weights for the different dependent variables errors.
double calculate_solutions_error_integral(void) const
bool operator==(const SolutionsError &) const
std::string write_performance_term_type(void) const
Returns a string with the name of the solutions error performance type, "SOLUTIONS_ERROR".
const double & get_solution_error_weight(const size_t &) const
Returns the weight for a single solution error, corresponding to a dependent variable.
std::string write_information(void) const
NumericalIntegration numerical_integration
Numerical integration object.
double calculate_solutions_error_sum(void) const
virtual double calculate_performance(void) const
Returns the objective value of a neural network according to the solutions error on a mathematical mo...
void set_solution_error_weight(const size_t &, const double &)
virtual void print(void) const
Prints to the screen the string representation of this solutions error object.
SolutionsError & operator=(const SolutionsError &)
void set_solutions_errors_weights(const Vector< double > &)
void from_XML(const tinyxml2::XMLDocument &)