source: trunk/Clp/src/ClpPrimalQuadraticDantzig.hpp @ 1502

Last change on this file since 1502 was 1502, checked in by forrest, 10 years ago

moving sandbox stuff to trunk

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