source: trunk/Clp/src/ClpCholeskyWssmpKKT.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: ClpCholeskyWssmpKKT.hpp 2385 2019-01-06 19:43:06Z unxusr $ */
2// Copyright (C) 2004, 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 ClpCholeskyWssmpKKT_H
7#define ClpCholeskyWssmpKKT_H
8
9#include "ClpCholeskyBase.hpp"
10class ClpMatrixBase;
11class ClpCholeskyDense;
12
13/** WssmpKKT class for Clp Cholesky factorization
14
15*/
16class ClpCholeskyWssmpKKT : public ClpCholeskyBase {
17
18public:
19  /**@name Virtual methods that the derived classes provides  */
20  //@{
21  /** Orders rows and saves pointer to matrix.and model.
22      Returns non-zero if not enough memory */
23  virtual int order(ClpInterior *model);
24  /** Does Symbolic factorization given permutation.
25         This is called immediately after order.  If user provides this then
26         user must provide factorize and solve.  Otherwise the default factorization is used
27         returns non-zero if not enough memory */
28  virtual int symbolic();
29  /** Factorize - filling in rowsDropped and returning number dropped.
30         If return code negative then out of memory */
31  virtual int factorize(const double *diagonal, int *rowsDropped);
32  /** Uses factorization to solve. */
33  virtual void solve(double *region);
34  /** Uses factorization to solve. - given as if KKT.
35      region1 is rows+columns, region2 is rows */
36  virtual void solveKKT(double *region1, double *region2, const double *diagonal,
37    double diagonalScaleFactor);
38  //@}
39
40  /**@name Constructors, destructor */
41  //@{
42  /** Constructor which has dense columns activated.
43         Default is off. */
44  ClpCholeskyWssmpKKT(int denseThreshold = -1);
45  /** Destructor  */
46  virtual ~ClpCholeskyWssmpKKT();
47  // Copy
48  ClpCholeskyWssmpKKT(const ClpCholeskyWssmpKKT &);
49  // Assignment
50  ClpCholeskyWssmpKKT &operator=(const ClpCholeskyWssmpKKT &);
51  /// Clone
52  virtual ClpCholeskyBase *clone() const;
53  //@}
54
55private:
56  /**@name Data members */
57  //@{
58  //@}
59};
60
61#endif
62
63/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
64*/
Note: See TracBrowser for help on using the repository browser.