WarmStart information that is only a dual vector. More...
#include <CoinWarmStartDual.hpp>
Public Member Functions | |
int | size () const |
return the size of the dual vector | |
const double * | dual () const |
return a pointer to the array of duals | |
void | assignDual (int size, double *&dual) |
Assign the dual vector to be the warmstart information. | |
CoinWarmStartDual () | |
CoinWarmStartDual (int size, const double *dual) | |
CoinWarmStartDual (const CoinWarmStartDual &rhs) | |
CoinWarmStartDual & | operator= (const CoinWarmStartDual &rhs) |
virtual CoinWarmStart * | clone () const |
`Virtual constructor' | |
virtual | ~CoinWarmStartDual () |
Dual warm start `diff' methods | |
virtual CoinWarmStartDiff * | generateDiff (const CoinWarmStart *const oldCWS) const |
Generate a `diff' that can convert the warm start passed as a parameter to the warm start specified by this . | |
virtual void | applyDiff (const CoinWarmStartDiff *const cwsdDiff) |
Apply diff to this warm start. | |
Private Attributes | |
Private data members | |
CoinWarmStartVector< double > | dual_ |
WarmStart information that is only a dual vector.
Definition at line 16 of file CoinWarmStartDual.hpp.
CoinWarmStartDual::CoinWarmStartDual | ( | ) | [inline] |
Definition at line 29 of file CoinWarmStartDual.hpp.
CoinWarmStartDual::CoinWarmStartDual | ( | int | size, | |
const double * | dual | |||
) | [inline] |
Definition at line 31 of file CoinWarmStartDual.hpp.
CoinWarmStartDual::CoinWarmStartDual | ( | const CoinWarmStartDual & | rhs | ) | [inline] |
Definition at line 33 of file CoinWarmStartDual.hpp.
virtual CoinWarmStartDual::~CoinWarmStartDual | ( | ) | [inline, virtual] |
Definition at line 47 of file CoinWarmStartDual.hpp.
int CoinWarmStartDual::size | ( | ) | const [inline] |
return the size of the dual vector
Definition at line 19 of file CoinWarmStartDual.hpp.
const double* CoinWarmStartDual::dual | ( | ) | const [inline] |
return a pointer to the array of duals
Definition at line 21 of file CoinWarmStartDual.hpp.
void CoinWarmStartDual::assignDual | ( | int | size, | |
double *& | dual | |||
) | [inline] |
Assign the dual vector to be the warmstart information.
In this method the object assumes ownership of the pointer and upon return "dual" will be a NULL pointer. If copying is desirable use the constructor.
Definition at line 26 of file CoinWarmStartDual.hpp.
CoinWarmStartDual& CoinWarmStartDual::operator= | ( | const CoinWarmStartDual & | rhs | ) | [inline] |
Definition at line 35 of file CoinWarmStartDual.hpp.
virtual CoinWarmStart* CoinWarmStartDual::clone | ( | ) | const [inline, virtual] |
`Virtual constructor'
Implements CoinWarmStart.
Definition at line 43 of file CoinWarmStartDual.hpp.
virtual CoinWarmStartDiff* CoinWarmStartDual::generateDiff | ( | const CoinWarmStart *const | oldCWS | ) | const [virtual] |
Generate a `diff' that can convert the warm start passed as a parameter to the warm start specified by this
.
The capabilities are limited: the basis passed as a parameter can be no larger than the basis pointed to by this
.
virtual void CoinWarmStartDual::applyDiff | ( | const CoinWarmStartDiff *const | cwsdDiff | ) | [virtual] |
Apply diff
to this warm start.
Update this warm start by applying diff
. It's assumed that the allocated capacity of the warm start is sufficiently large.
Reimplemented from CoinWarmStart.
CoinWarmStartVector<double> CoinWarmStartDual::dual_ [private] |
Definition at line 79 of file CoinWarmStartDual.hpp.