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-2024 Zuse Institute Berlin (ZIB) */
7/* */
8/* Licensed under the Apache License, Version 2.0 (the "License"); */
9/* you may not use this file except in compliance with the License. */
10/* You may obtain a copy of the License at */
11/* */
12/* http://www.apache.org/licenses/LICENSE-2.0 */
13/* */
14/* Unless required by applicable law or agreed to in writing, software */
15/* distributed under the License is distributed on an "AS IS" BASIS, */
16/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
17/* See the License for the specific language governing permissions and */
18/* limitations under the License. */
19/* */
20/* You should have received a copy of the Apache-2.0 license */
21/* along with SoPlex; see the file LICENSE. If not email to soplex@zib.de. */
22/* */
23/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
24
25/**@file validation.h
26 * @brief Validation object for soplex solutions
27 */
28
29#ifndef SRC_VALIDATION_H_
30#define SRC_VALIDATION_H_
31
32#include "soplex.h"
33
34namespace soplex
35{
36
37template <class R>
39{
40public:
41
42 /// should the soplex solution be validated?
44
45 /// external solution used for validation
46 std::string validatesolution;
47
48 /// tolerance used for validation
50
51 /// default constructor
53 {
54 validate = false;
55 validatetolerance = 1e-5;
56 }
57
58 /// default destructor
60 {
61 ;
62 }
63
64 /// updates the external solution used for validation
65 bool updateExternalSolution(const std::string& solution);
66
67 /// updates the tolerance used for validation
68 bool updateValidationTolerance(const std::string& tolerance);
69
70 /// validates the soplex solution using the external solution
72};
73
74} /* namespace soplex */
75
76// For general templated functions
77#include "validation.hpp"
78
79#endif /* SRC_VALIDATION_H_ */
R validatetolerance
tolerance used for validation
Definition: validation.h:49
Validation()
default constructor
Definition: validation.h:52
bool updateValidationTolerance(const std::string &tolerance)
updates the tolerance used for validation
bool validate
should the soplex solution be validated?
Definition: validation.h:43
bool updateExternalSolution(const std::string &solution)
updates the external solution used for validation
~Validation()
default destructor
Definition: validation.h:59
void validateSolveReal(SoPlexBase< R > &soplex)
validates the soplex solution using the external solution
std::string validatesolution
external solution used for validation
Definition: validation.h:46
Everything should be within this namespace.
Preconfigured SoPlex LP solver.