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

Last change on this file since 2385 was 2385, checked in by unxusr, 4 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1/* $Id: ClpPrimalQuadraticDantzig.hpp 2385 2019-01-06 19:43:06Z unxusr $ */
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  ///@name Algorithmic methods
24  //@{
25
26  /** Returns pivot column, -1 if none.
27         Lumbers over all columns - slow
28         updateArray has cost updates (also use pivotRow_ from last iteration)
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 mode)
39  {
40    model_ = model;
41  }
42  //@}
43
44  ///@name Constructors and destructors
45  //@{
46  /// Default Constructor
47  ClpPrimalQuadraticDantzig();
48
49  /// Copy constructor
50  ClpPrimalQuadraticDantzig(const ClpPrimalQuadraticDantzig &);
51
52  /// Constructor from model
53  ClpPrimalQuadraticDantzig(ClpSimplexPrimalQuadratic *model,
54    ClpQuadraticInfo *info);
55
56  /// Assignment operator
57  ClpPrimalQuadraticDantzig &operator=(const ClpPrimalQuadraticDantzig &rhs);
58
59  /// Destructor
60  virtual ~ClpPrimalQuadraticDantzig();
61
62  /// Clone
63  virtual ClpPrimalColumnPivot *clone(bool copyData = true) const;
64
65  //@}
66
67  //---------------------------------------------------------------------------
68
69private:
70  ///@name Private member data
71  /// Pointer to info
72  ClpQuadraticInfo *quadraticInfo_;
73  //@}
74};
75
76#endif
77
78/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
79*/
Note: See TracBrowser for help on using the repository browser.