source: trunk/Clp/src/ClpPrimalQuadraticDantzig.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.1 KB
Line 
1/* $Id: ClpPrimalQuadraticDantzig.hpp 1665 2011-01-04 17:55:54Z forrest $ */
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 ClpPrimalQuadraticDantzig_H
7#define ClpPrimalQuadraticDantzig_H
8
9#include "ClpPrimalColumnPivot.hpp"
10class ClpSimplexPrimalQuadratic;
11class ClpQuadraticInfo;
12//#############################################################################
13
14/** Primal Column Pivot Dantzig Algorithm Class
15
16This is simplest choice - choose largest infeasibility
17
18*/
19
20class ClpPrimalQuadraticDantzig : public ClpPrimalColumnPivot {
21
22public:
23
24     ///@name Algorithmic methods
25     //@{
26
27     /** Returns pivot column, -1 if none.
28         Lumbers over all columns - slow
29         updateArray has cost updates (also use pivotRow_ from last iteration)
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 mode) {
40          model_ = model;
41     }
42     //@}
43
44
45     ///@name Constructors and destructors
46     //@{
47     /// Default Constructor
48     ClpPrimalQuadraticDantzig();
49
50     /// Copy constructor
51     ClpPrimalQuadraticDantzig(const ClpPrimalQuadraticDantzig &);
52
53     /// Constructor from model
54     ClpPrimalQuadraticDantzig(ClpSimplexPrimalQuadratic * model,
55                               ClpQuadraticInfo * info);
56
57     /// Assignment operator
58     ClpPrimalQuadraticDantzig & operator=(const ClpPrimalQuadraticDantzig& rhs);
59
60     /// Destructor
61     virtual ~ClpPrimalQuadraticDantzig ();
62
63     /// Clone
64     virtual ClpPrimalColumnPivot * clone(bool copyData = true) const;
65
66     //@}
67
68     //---------------------------------------------------------------------------
69
70private:
71     ///@name Private member data
72     /// Pointer to info
73     ClpQuadraticInfo * quadraticInfo_;
74     //@}
75};
76
77#endif
Note: See TracBrowser for help on using the repository browser.