Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
myPdco.hpp
Go to the documentation of this file.
1 /* $Id: myPdco.hpp 1662 2011-01-04 17:52:40Z lou $ */
2 // Copyright (C) 2003, 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 myPdco_H
7 #define myPdco_H
8 
9 
10 #include "CoinPragma.hpp"
11 
12 #include "ClpPdcoBase.hpp"
13 
19 class myPdco : public ClpPdcoBase {
20 
21 public:
24  virtual void matVecMult(ClpInterior * model, int mode, double * x, double * y) const;
25 
26  virtual void getGrad(ClpInterior * model, CoinDenseVector<double> &x, CoinDenseVector<double> &grad) const;
27 
28  virtual void getHessian(ClpInterior * model, CoinDenseVector<double> &x, CoinDenseVector<double> &H) const;
29 
30  virtual double getObj(ClpInterior * model, CoinDenseVector<double> &x) const;
31 
32  virtual void matPrecon(ClpInterior * model, double delta, double * x, double * y) const ;
34 
35 
39  myPdco();
41  myPdco(double d1, double d2,
42  int numnodes, int numlinks);
44  myPdco(ClpInterior & model, FILE * fpData, FILE * fpParam);
46  virtual ~myPdco();
48 
52  myPdco(const myPdco&);
53 
54  myPdco& operator=(const myPdco&);
56  virtual ClpPdcoBase * clone() const ;
58 
59 
60 protected:
64  int * rowIndex_;
65  int numlinks_;
66  int numnodes_;
67 
69 };
70 
71 #endif
myPdco()
Default constructor.
int numlinks_
Definition: myPdco.hpp:65
virtual ClpPdcoBase * clone() const
Clone.
virtual void getGrad(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &grad) const
This solves LPs using interior point methods.
Definition: ClpInterior.hpp:72
virtual ~myPdco()
Destructor.
virtual double getObj(ClpInterior *model, CoinDenseVector< double > &x) const
myPdco & operator=(const myPdco &)
virtual void getHessian(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &H) const
Abstract base class for tailoring everything for Pcdo.
Definition: ClpPdcoBase.hpp:25
Dense Vector.
This implements a simple network matrix as derived from ClpMatrixBase.
Definition: myPdco.hpp:19
int * rowIndex_
Definition: myPdco.hpp:64
int numnodes_
Definition: myPdco.hpp:66
virtual void matVecMult(ClpInterior *model, int mode, double *x, double *y) const
virtual void matPrecon(ClpInterior *model, double delta, double *x, double *y) const