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-2019 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 
29 {
30 public:
31 
32  /// should the soplex solution be validated?
33  bool validate;
34 
35  /// external solution used for validation
37 
38  /// tolerance used for validation
40 
41  /// default constructor
43  {
44  validate = false;
45  validatetolerance = 1e-5;
46  validatesolution = 0;
47  }
48 
49  /// default destructor
51  {
52  ;
53  }
54 
55  /// updates the external solution used for validation
56  bool updateExternalSolution(char* solution);
57 
58  /// updates the tolerance used for validation
59  bool updateValidationTolerance(char* tolerance);
60 
61  /// validates the soplex solution using the external solution
63 };
64 
65 } /* namespace soplex */
66 
67 #endif /* SRC_VALIDATION_H_ */
Validation()
default constructor
Definition: validation.h:42
bool updateExternalSolution(char *solution)
updates the external solution used for validation
Definition: validation.cpp:26
void validateSolveReal(SoPlex &soplex)
validates the soplex solution using the external solution
Definition: validation.cpp:70
Preconfigured SoPlex LP solver.
double validatetolerance
tolerance used for validation
Definition: validation.h:39
bool validate
should the soplex solution be validated?
Definition: validation.h:33
Everything should be within this namespace.
Preconfigured SoPlex LP-solver.
Definition: soplex.h:89
char * validatesolution
external solution used for validation
Definition: validation.h:36
~Validation()
default destructor
Definition: validation.h:50
bool updateValidationTolerance(char *tolerance)
updates the tolerance used for validation
Definition: validation.cpp:53