Clp
1.17.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Clp
examples
myPdco.hpp
Go to the documentation of this file.
1
/* $Id$ */
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
18
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
38
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
51
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
ClpPdcoBase.hpp
ClpInterior
This solves LPs using interior point methods.
Definition
ClpInterior.hpp:72
ClpPdcoBase::ClpPdcoBase
ClpPdcoBase()
Default constructor.
myPdco::getGrad
virtual void getGrad(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &grad) const
myPdco::numlinks_
int numlinks_
Definition
myPdco.hpp:65
myPdco::myPdco
myPdco()
Default constructor.
myPdco::~myPdco
virtual ~myPdco()
Destructor.
myPdco::matPrecon
virtual void matPrecon(ClpInterior *model, double delta, double *x, double *y) const
myPdco::getHessian
virtual void getHessian(ClpInterior *model, CoinDenseVector< double > &x, CoinDenseVector< double > &H) const
myPdco::clone
virtual ClpPdcoBase * clone() const
Clone.
myPdco::myPdco
myPdco(ClpInterior &model, FILE *fpData, FILE *fpParam)
Also reads a model.
myPdco::numnodes_
int numnodes_
Definition
myPdco.hpp:66
myPdco::operator=
myPdco & operator=(const myPdco &)
myPdco::getObj
virtual double getObj(ClpInterior *model, CoinDenseVector< double > &x) const
myPdco::matVecMult
virtual void matVecMult(ClpInterior *model, int mode, double *x, double *y) const
myPdco::myPdco
myPdco(double d1, double d2, int numnodes, int numlinks)
Constructor from Stuff.
myPdco::rowIndex_
int * rowIndex_
Definition
myPdco.hpp:64
myPdco::myPdco
myPdco(const myPdco &)
The copy constructor.
Generated by
1.17.0