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