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

Last change on this file since 1525 was 1525, checked in by mjs, 10 years ago

Formatted .cpp, .hpp, .c, .h files with "astyle -A4 -p". This matches the formatting used in the grand CBC reorganization.

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