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

Last change on this file since 2030 was 1665, checked in by lou, 9 years ago

Add EPL license notice in src.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
RevLine 
[1370]1/* $Id: ClpPrimalColumnDantzig.hpp 1665 2011-01-04 17:55:54Z forrest $ */
[2]2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
[1665]4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
[2]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 {
[1502]20
[2]21public:
22
[1525]23     ///@name Algorithmic methods
24     //@{
[2]25
[1525]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(CoinIndexedVector * updates,
34                             CoinIndexedVector * spareRow1,
35                             CoinIndexedVector * spareRow2,
36                             CoinIndexedVector * spareColumn1,
37                             CoinIndexedVector * spareColumn2);
[2]38
[1525]39     /// Just sets model
40     virtual void saveWeights(ClpSimplex * model, int) {
41          model_ = model;
42     }
43     //@}
[1502]44
45
[1525]46     ///@name Constructors and destructors
47     //@{
48     /// Default Constructor
49     ClpPrimalColumnDantzig();
[1502]50
[1525]51     /// Copy constructor
52     ClpPrimalColumnDantzig(const ClpPrimalColumnDantzig &);
[1502]53
[1525]54     /// Assignment operator
55     ClpPrimalColumnDantzig & operator=(const ClpPrimalColumnDantzig& rhs);
[1502]56
[1525]57     /// Destructor
58     virtual ~ClpPrimalColumnDantzig ();
[1502]59
[1525]60     /// Clone
61     virtual ClpPrimalColumnPivot * clone(bool copyData = true) const;
[1502]62
[1525]63     //@}
[1502]64
[1525]65     //---------------------------------------------------------------------------
[1502]66
[2]67private:
[1525]68     ///@name Private member data
69     //@}
[2]70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.