Scippy

SoPlex

Sequential object-oriented simPlex

validation.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the class library */
4 /* SoPlex --- the Sequential object-oriented simPlex. */
5 /* */
6 /* Copyright (C) 1996-2022 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SoPlex is distributed under the terms of the ZIB Academic Licence. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file validation.h
17  * @brief Validation object for soplex solutions
18  */
19 
20 #ifndef SRC_VALIDATION_H_
21 #define SRC_VALIDATION_H_
22 
23 #include "soplex.h"
24 
25 namespace soplex
26 {
27 
28 template <class R>
30 {
31 public:
32 
33  /// should the soplex solution be validated?
34  bool validate;
35 
36  /// external solution used for validation
37  std::string validatesolution;
38 
39  /// tolerance used for validation
41 
42  /// default constructor
44  {
45  validate = false;
46  validatetolerance = 1e-5;
47  }
48 
49  /// default destructor
51  {
52  ;
53  }
54 
55  /// updates the external solution used for validation
56  bool updateExternalSolution(const std::string& solution);
57 
58  /// updates the tolerance used for validation
59  bool updateValidationTolerance(const std::string& tolerance);
60 
61  /// validates the soplex solution using the external solution
63 };
64 
65 } /* namespace soplex */
66 
67 // For general templated functions
68 #include "validation.hpp"
69 
70 #endif /* SRC_VALIDATION_H_ */
Validation()
default constructor
Definition: validation.h:43
R validatetolerance
tolerance used for validation
Definition: validation.h:40
bool updateValidationTolerance(const std::string &tolerance)
updates the tolerance used for validation
void validateSolveReal(SoPlexBase< R > &soplex)
validates the soplex solution using the external solution
Preconfigured SoPlex LP solver.
bool validate
should the soplex solution be validated?
Definition: validation.h:34
Everything should be within this namespace.
~Validation()
default destructor
Definition: validation.h:50
bool updateExternalSolution(const std::string &solution)
updates the external solution used for validation
std::string validatesolution
external solution used for validation
Definition: validation.h:37