source: trunk/Clp/src/ClpDualRowDantzig.hpp @ 2470

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

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1/* $Id: ClpDualRowDantzig.hpp 2385 2019-01-06 19:43:06Z stefan $ */
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 ClpDualRowDantzig_H
7#define ClpDualRowDantzig_H
8
9#include "ClpDualRowPivot.hpp"
10
11//#############################################################################
12
13/** Dual Row Pivot Dantzig Algorithm Class
14
15This is simplest choice - choose largest infeasibility
16
17*/
18
19class ClpDualRowDantzig : public ClpDualRowPivot {
20
21public:
22  ///@name Algorithmic methods
23  //@{
24
25  /// Returns pivot row, -1 if none
26  virtual int pivotRow();
27
28  /** Updates weights and returns pivot alpha.
29         Also does FT update */
30  virtual double updateWeights(CoinIndexedVector *input,
31    CoinIndexedVector *spare,
32    CoinIndexedVector *spare2,
33    CoinIndexedVector *updatedColumn);
34  /** Updates primal solution (and maybe list of candidates)
35         Uses input vector which it deletes
36         Computes change in objective function
37     */
38  virtual void updatePrimalSolution(CoinIndexedVector *input,
39    double theta,
40    double &changeInObjective);
41  //@}
42
43  ///@name Constructors and destructors
44  //@{
45  /// Default Constructor
46  ClpDualRowDantzig();
47
48  /// Copy constructor
49  ClpDualRowDantzig(const ClpDualRowDantzig &);
50
51  /// Assignment operator
52  ClpDualRowDantzig &operator=(const ClpDualRowDantzig &rhs);
53
54  /// Destructor
55  virtual ~ClpDualRowDantzig();
56
57  /// Clone
58  virtual ClpDualRowPivot *clone(bool copyData = true) const;
59
60  //@}
61
62  //---------------------------------------------------------------------------
63
64private:
65  ///@name Private member data
66  //@}
67};
68
69#endif
70
71/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
72*/
Note: See TracBrowser for help on using the repository browser.