Scippy

SoPlex

Sequential object-oriented simPlex

spxsteepexpr.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 
17 /**@file spxsteepexpr.h
18  * @brief Steepest edge pricer with exact initialization of weights.
19  */
20 #ifndef _SPXSTEEPEXPR_H_
21 #define _SPXSTEEPEXPR_H_
22 
23 
24 #include <assert.h>
25 
26 #include "soplex/spxdefines.h"
27 #include "soplex/spxsteeppr.h"
28 
29 namespace soplex
30 {
31 
32 /**@brief Steepest edge pricer.
33  @ingroup Algo
34 
35  Class SPxSteepExPR implements a steepest edge pricer to be used with
36  SoPlex. Exact initialization of weights is used.
37 
38  See SPxPricer for a class documentation.
39 */
40 class SPxSteepExPR : public SPxSteepPR
41 {
42 
43 public:
44 
45  //-------------------------------------
46  /**@name Construction / destruction */
47  //@{
48  ///
50  : SPxSteepPR("SteepEx", EXACT)
51  {
52  assert(isConsistent());
53  }
54  /// copy constructor
56  : SPxSteepPR(old)
57  {
58  assert(isConsistent());
59  }
60  /// assignment operator
62  {
63  if(this != &rhs)
64  {
66 
67  assert(isConsistent());
68  }
69 
70  return *this;
71  }
72  /// destructor
73  virtual ~SPxSteepExPR()
74  {}
75  /// clone function for polymorphism
76  inline virtual SPxSteepPR* clone() const
77  {
78  return new SPxSteepExPR(*this);
79  }
80  //@}
81 };
82 
83 } // namespace soplex
84 #endif // _SPXSTEEPPR_H_
virtual ~SPxSteepExPR()
destructor
Definition: spxsteepexpr.h:73
Steepest edge pricer.Class SPxSteepExPR implements a steepest edge pricer to be used with SoPlex...
Definition: spxsteepexpr.h:40
SPxSteepPR & operator=(const SPxSteepPR &rhs)
assignment operator
Definition: spxsteeppr.h:142
virtual SPxSteepPR * clone() const
clone function for polymorphism
Definition: spxsteepexpr.h:76
Steepest edge pricer.
SPxSteepExPR(const SPxSteepExPR &old)
copy constructor
Definition: spxsteepexpr.h:55
virtual bool isConsistent() const
starting with exactly computed values
Definition: spxsteeppr.h:55
SPxSteepExPR & operator=(const SPxSteepExPR &rhs)
assignment operator
Definition: spxsteepexpr.h:61
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
Steepest edge pricer.Class SPxSteepPR implements a steepest edge pricer to be used with SoPlex...
Definition: spxsteeppr.h:41