myPdco.hpp
Go to the documentation of this file.
1 /* $Id: myPdco.hpp 1552 2010-05-25 01:03:59Z mjs $ */
2 // Copyright (C) 2003, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 #ifndef myPdco_H
5 #define myPdco_H
6 
7 
8 #include "CoinPragma.hpp"
9 
10 #include "ClpPdcoBase.hpp"
11 
17 class myPdco : public ClpPdcoBase {
18 
19 public:
22  virtual void matVecMult(ClpInterior * model, int mode, double * x, double * y) const;
23 
24  virtual void getGrad(ClpInterior * model, CoinDenseVector<double> &x, CoinDenseVector<double> &grad) const;
25 
26  virtual void getHessian(ClpInterior * model, CoinDenseVector<double> &x, CoinDenseVector<double> &H) const;
27 
28  virtual double getObj(ClpInterior * model, CoinDenseVector<double> &x) const;
29 
30  virtual void matPrecon(ClpInterior * model, double delta, double * x, double * y) const ;
32 
33 
37  myPdco();
39  myPdco(double d1, double d2,
40  int numnodes, int numlinks);
42  myPdco(ClpInterior & model, FILE * fpData, FILE * fpParam);
44  virtual ~myPdco();
46 
50  myPdco(const myPdco&);
51 
52  myPdco& operator=(const myPdco&);
54  virtual ClpPdcoBase * clone() const ;
56 
57 
58 protected:
62  int * rowIndex_;
63  int numlinks_;
64  int numnodes_;
65 
67 };
68 
69 #endif
virtual ~myPdco()
Destructor.
This solves LPs using interior point methods.
Definition: ClpInterior.hpp:72
This implements a simple network matrix as derived from ClpMatrixBase.
Definition: myPdco.hpp:17
virtual void matPrecon(ClpInterior *model, double delta, double *x, double *y) const
myPdco()
Default constructor.
Abstract base class for tailoring everything for Pcdo.
Definition: ClpPdcoBase.hpp:23
int numlinks_
Definition: myPdco.hpp:63
virtual double getObj(ClpInterior *model, CoinDenseVector< double > &x) const
virtual void matVecMult(ClpInterior *model, int mode, double *x, double *y) const
virtual void getGrad(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &grad) const
virtual void getHessian(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &H) const
int numnodes_
Definition: myPdco.hpp:64
myPdco & operator=(const myPdco &)
The copy constructor.
virtual ClpPdcoBase * clone() const
Clone.
int * rowIndex_
Definition: myPdco.hpp:62