Scippy

SoPlex

Sequential object-oriented simPlex

spxdantzigpr.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 spxdantzigpr.h
17  * @brief Dantzig pricer.
18  */
19 #ifndef _SPXDEFAULTPR_H_
20 #define _SPXDEFAULTPR_H_
21 
22 #include <assert.h>
23 
24 #include "soplex/spxpricer.h"
25 
26 namespace soplex
27 {
28 
29 /**@brief Dantzig pricer.
30  @ingroup Algo
31 
32  Class SPxDantzigPR is an implementation class of an SPxPricer implementing
33  Dantzig's default pricing strategy, i.e., maximal/minimal reduced cost or
34  maximally violated constraint.
35 
36  See SPxPricer for a class documentation.
37 */
38 class SPxDantzigPR : public SPxPricer
39 {
40 private:
41  int selectLeaveSparse();/**< sparse pricing method for leaving Simplex */
42 
43  SPxId
44  selectEnterX(); /**< choose the best entering index among columns and rows but prefer sparsity */
46  SPxId& id); /**< sparse pricing method for entering Simplex (slack variables)*/
48  SPxId& id); /**< sparse pricing method for entering Simplex */
50  SPxId& id); /**< selectEnter() in dense case (slack variables) */
52  SPxId& id); /**< selectEnter() in dense case */
53 public:
54 
55  //-------------------------------------
56  /**@name Constructors / destructors */
57  //@{
58  /// default constructor
60  : SPxPricer("Dantzig")
61  {}
62  /// copy constructor
64  : SPxPricer(old)
65  {}
66  /// assignment operator
68  {
69  if(this != &rhs)
70  {
72  }
73 
74  return *this;
75  }
76  /// destructor
77  virtual ~SPxDantzigPR()
78  {}
79  /// clone function for polymorphism
80  inline virtual SPxPricer* clone() const
81  {
82  return new SPxDantzigPR(*this);
83  }
84  //@}
85 
86 
87  //-------------------------------------
88  /**@name Select enter/leave */
89  //@{
90  ///
91  virtual int selectLeave();
92  ///
93  virtual SPxId selectEnter();
94  //@}
95 };
96 } // namespace soplex
97 #endif // _SPXDEFAULTPRR_H_
virtual int selectLeave()
SPxId selectEnterDenseDim(Real &best, SPxId &id)
Abstract pricer base class.
SPxPricer & operator=(const SPxPricer &rhs)
assignment operator
Definition: spxpricer.h:277
SPxId selectEnterSparseDim(Real &best, SPxId &id)
Generic Ids for LP rows or columns.Both SPxColIds and SPxRowIds may be treated uniformly as SPxIds: ...
Definition: spxid.h:85
SPxDantzigPR & operator=(const SPxDantzigPR &rhs)
assignment operator
Definition: spxdantzigpr.h:67
virtual SPxId selectEnter()
double Real
Definition: spxdefines.h:218
virtual ~SPxDantzigPR()
destructor
Definition: spxdantzigpr.h:77
SPxId selectEnterDenseCoDim(Real &best, SPxId &id)
SPxDantzigPR()
default constructor
Definition: spxdantzigpr.h:59
Abstract pricer base class.Class SPxPricer is a pure virtual class defining the interface for pricer ...
Definition: spxpricer.h:46
Everything should be within this namespace.
Dantzig pricer.Class SPxDantzigPR is an implementation class of an SPxPricer implementing Dantzig&#39;s d...
Definition: spxdantzigpr.h:38
SPxDantzigPR(const SPxDantzigPR &old)
copy constructor
Definition: spxdantzigpr.h:63
virtual SPxPricer * clone() const
clone function for polymorphism
Definition: spxdantzigpr.h:80
SPxId selectEnterSparseCoDim(Real &best, SPxId &id)