Scippy

SoPlex

Sequential object-oriented simPlex

ratrecon.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-2023 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 ratrecon.h
26  * @brief Rational reconstruction of solution vector
27  */
28 
29 
30 #ifndef _RATRECON_H_
31 #define _RATRECON_H_
32 
33 #include "soplex/spxdefines.h"
34 #include "soplex/rational.h"
35 #include "soplex/sol.h"
36 #include "soplex/basevectors.h"
37 #include "soplex/didxset.h"
38 
39 namespace soplex
40 {
41 /** reconstruct a rational vector */
42 bool reconstructVector(VectorRational& input, const Rational& denomBoundSquared,
43  const DIdxSet* indexSet = 0);
44 
45 /** reconstruct a rational solution */
46 bool reconstructSol(SolRational& solution);
47 } // namespace soplex
48 
49 #include "soplex/ratrecon.hpp"
50 
51 #endif // _RATRECON_H_
Types of solution classes.
number< gmp_rational, et_off > Rational
Definition: rational.h:29
Dymnamic index set.
Debugging, floating point type and parameter definitions.
bool reconstructVector(VectorRational &input, const Rational &denomBoundSquared, const DIdxSet *indexSet=0)
SolBase< Rational > SolRational
Definition: sol.h:37
Collection of dense, sparse, and semi-sparse vectors.
bool reconstructSol(SolRational &solution)
Everything should be within this namespace.
VectorBase< Rational > VectorRational
Definition: vector.h:40