source: trunk/Clp/src/ClpPrimalColumnDantzig.hpp @ 2470

Last change on this file since 2470 was 2385, checked in by unxusr, 10 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/* $Id: ClpPrimalColumnDantzig.hpp 2385 2019-01-06 19:43:06Z stefan $ */
2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#ifndef ClpPrimalColumnDantzig_H
7#define ClpPrimalColumnDantzig_H
8
9#include "ClpPrimalColumnPivot.hpp"
10
11//#############################################################################
12
13/** Primal Column Pivot Dantzig Algorithm Class
14
15This is simplest choice - choose largest infeasibility
16
17*/
18
19class ClpPrimalColumnDantzig : public ClpPrimalColumnPivot {
20
21public:
22  ///@name Algorithmic methods
23  //@{
24
25  /** Returns pivot column, -1 if none.
26         Lumbers over all columns - slow
27         The Packed CoinIndexedVector updates has cost updates - for normal LP
28         that is just +-weight where a feasibility changed.  It also has
29         reduced cost from last iteration in pivot row
30         Can just do full price if you really want to be slow
31     */
32  virtual int pivotColumn(CoinIndexedVector *updates,
33    CoinIndexedVector *spareRow1,
34    CoinIndexedVector *spareRow2,
35    CoinIndexedVector *spareColumn1,
36    CoinIndexedVector *spareColumn2);
37
38  /// Just sets model
39  virtual void saveWeights(ClpSimplex *model, int)
40  {
41    model_ = model;
42  }
43  //@}
44
45  ///@name Constructors and destructors
46  //@{
47  /// Default Constructor
48  ClpPrimalColumnDantzig();
49
50  /// Copy constructor
51  ClpPrimalColumnDantzig(const ClpPrimalColumnDantzig &);
52
53  /// Assignment operator
54  ClpPrimalColumnDantzig &operator=(const ClpPrimalColumnDantzig &rhs);
55
56  /// Destructor
57  virtual ~ClpPrimalColumnDantzig();
58
59  /// Clone
60  virtual ClpPrimalColumnPivot *clone(bool copyData = true) const;
61
62  //@}
63
64  //---------------------------------------------------------------------------
65
66private:
67  ///@name Private member data
68  //@}
69};
70
71#endif
72
73/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
74*/
Note: See TracBrowser for help on using the repository browser.