source: trunk/Clp/src/AbcPrimalColumnDantzig.hpp @ 2385

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

formatting

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/* $Id: AbcPrimalColumnDantzig.hpp 2385 2019-01-06 19:43:06Z unxusr $ */
2// Copyright (C) 2002, International Business Machines
3// Corporation and others, Copyright (C) 2012, FasterCoin.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#ifndef AbcPrimalColumnDantzig_H
7#define AbcPrimalColumnDantzig_H
8
9#include "AbcPrimalColumnPivot.hpp"
10
11//#############################################################################
12
13/** Primal Column Pivot Dantzig Algorithm Class
14
15This is simplest choice - choose largest infeasibility
16
17*/
18
19class AbcPrimalColumnDantzig : public AbcPrimalColumnPivot {
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(CoinPartitionedVector *updates,
33    CoinPartitionedVector *spareRow2,
34    CoinPartitionedVector *spareColumn1);
35
36  /// Just sets model
37  virtual void saveWeights(AbcSimplex *model, int)
38  {
39    model_ = model;
40  }
41  //@}
42
43  ///@name Constructors and destructors
44  //@{
45  /// Default Constructor
46  AbcPrimalColumnDantzig();
47
48  /// Copy constructor
49  AbcPrimalColumnDantzig(const AbcPrimalColumnDantzig &);
50
51  /// Assignment operator
52  AbcPrimalColumnDantzig &operator=(const AbcPrimalColumnDantzig &rhs);
53
54  /// Destructor
55  virtual ~AbcPrimalColumnDantzig();
56
57  /// Clone
58  virtual AbcPrimalColumnPivot *clone(bool copyData = true) const;
59
60  //@}
61
62  //---------------------------------------------------------------------------
63
64private:
65  ///@name Private member data
66  //@}
67};
68
69#endif
70
71/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
72*/
Note: See TracBrowser for help on using the repository browser.