Clp
1.17.8
|
This implements a simple network matrix as derived from ClpMatrixBase. More...
#include <myPdco.hpp>
Public Member Functions | |
Useful methods | |
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 |
virtual double | getObj (ClpInterior *model, CoinDenseVector< double > &x) const |
virtual void | matPrecon (ClpInterior *model, double delta, double *x, double *y) const |
Constructors, destructor | |
myPdco () | |
Default constructor. More... | |
myPdco (double d1, double d2, int numnodes, int numlinks) | |
Constructor from Stuff. More... | |
myPdco (ClpInterior &model, FILE *fpData, FILE *fpParam) | |
Also reads a model. More... | |
virtual | ~myPdco () |
Destructor. More... | |
Copy method | |
myPdco (const myPdco &) | |
The copy constructor. More... | |
myPdco & | operator= (const myPdco &) |
virtual ClpPdcoBase * | clone () const |
Clone. More... | |
Public Member Functions inherited from ClpPdcoBase | |
int | type () const |
Returns type. More... | |
void | setType (int type) |
Sets type. More... | |
int | sizeD1 () const |
Returns size of d1. More... | |
double | getD1 () const |
Returns d1 as scalar. More... | |
int | sizeD2 () const |
Returns size of d2. More... | |
double | getD2 () const |
Returns d2 as scalar. More... | |
virtual | ~ClpPdcoBase () |
Destructor (has to be public) More... | |
Protected Attributes | |
Data members | |
The data members are protected to allow access for derived classes. | |
int * | rowIndex_ |
int | numlinks_ |
int | numnodes_ |
Protected Attributes inherited from ClpPdcoBase | |
double | d1_ |
Should be dense vectors. More... | |
double | d2_ |
int | type_ |
type (may be useful) More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ClpPdcoBase | |
ClpPdcoBase () | |
Default constructor. More... | |
ClpPdcoBase (const ClpPdcoBase &) | |
ClpPdcoBase & | operator= (const ClpPdcoBase &) |
This implements a simple network matrix as derived from ClpMatrixBase.
If you want more sophisticated version then you could inherit from this. Also you might want to allow networks with gain
Definition at line 19 of file myPdco.hpp.
myPdco::myPdco | ( | ) |
Default constructor.
myPdco::myPdco | ( | double | d1, |
double | d2, | ||
int | numnodes, | ||
int | numlinks | ||
) |
Constructor from Stuff.
myPdco::myPdco | ( | ClpInterior & | model, |
FILE * | fpData, | ||
FILE * | fpParam | ||
) |
Also reads a model.
|
virtual |
Destructor.
myPdco::myPdco | ( | const myPdco & | ) |
The copy constructor.
|
virtual |
Implements ClpPdcoBase.
|
virtual |
Implements ClpPdcoBase.
|
virtual |
Implements ClpPdcoBase.
|
virtual |
Implements ClpPdcoBase.
|
virtual |
Implements ClpPdcoBase.
|
virtual |
Clone.
Implements ClpPdcoBase.
|
protected |
Definition at line 64 of file myPdco.hpp.
|
protected |
Definition at line 65 of file myPdco.hpp.
|
protected |
Definition at line 66 of file myPdco.hpp.