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

Last change on this file since 2030 was 1910, checked in by stefan, 7 years ago
  • add configure option --enable-aboca={1,2,3,4,yes,no}
  • compile Aboca source only if --enable-aboca set (instead of compiling empty source files)
  • fix svn properties
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1/* $Id: AbcPrimalColumnDantzig.hpp 1910 2013-01-27 02:00:13Z forrest $ */
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
23     ///@name Algorithmic methods
24     //@{
25
26     /** Returns pivot column, -1 if none.
27         Lumbers over all columns - slow
28         The Packed CoinIndexedVector updates has cost updates - for normal LP
29         that is just +-weight where a feasibility changed.  It also has
30         reduced cost from last iteration in pivot row
31         Can just do full price if you really want to be slow
32     */
33     virtual int pivotColumn(CoinPartitionedVector * updates,
34                             CoinPartitionedVector * spareRow2,
35                             CoinPartitionedVector * spareColumn1);
36
37     /// Just sets model
38     virtual void saveWeights(AbcSimplex * model, int) {
39          model_ = model;
40     }
41     //@}
42
43
44     ///@name Constructors and destructors
45     //@{
46     /// Default Constructor
47     AbcPrimalColumnDantzig();
48
49     /// Copy constructor
50     AbcPrimalColumnDantzig(const AbcPrimalColumnDantzig &);
51
52     /// Assignment operator
53     AbcPrimalColumnDantzig & operator=(const AbcPrimalColumnDantzig& rhs);
54
55     /// Destructor
56     virtual ~AbcPrimalColumnDantzig ();
57
58     /// Clone
59     virtual AbcPrimalColumnPivot * 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.