- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# CoinWarmStartPrimalDual Class Reference

WarmStart information that is only a dual vector. More...

`#include <CoinWarmStartPrimalDual.hpp>`

Inheritance diagram for CoinWarmStartPrimalDual:

[legend]
Collaboration diagram for CoinWarmStartPrimalDual:

[legend]
List of all members.

## Public Member Functions
int | dualSize () const
| return the size of the dual vector
const double * | dual () const
| return a pointer to the array of duals
int | primalSize () const
| return the size of the primal vector
const double * | primal () const
| return a pointer to the array of primals
void | assign (int primalSize, int dualSize, double *&primal, double *&dual)
| Assign the primal/dual vectors to be the warmstart information.
| CoinWarmStartPrimalDual ()
| CoinWarmStartPrimalDual (int primalSize, int dualSize, const double *primal, const double *dual)
| CoinWarmStartPrimalDual (const CoinWarmStartPrimalDual &rhs)
CoinWarmStartPrimalDual & | operator= (const CoinWarmStartPrimalDual &rhs)
void | clear ()
| Clear the data.
void | swap (CoinWarmStartPrimalDual &rhs)
virtual CoinWarmStart * | clone () const
| `Virtual constructor'
virtual | ~CoinWarmStartPrimalDual ()
PrimalDual 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 > | primal_
CoinWarmStartVector< double > | dual_

## Detailed Description

WarmStart information that is only a dual vector.

Definition at line 17 of file CoinWarmStartPrimalDual.hpp.

## Constructor & Destructor Documentation

CoinWarmStartPrimalDual::CoinWarmStartPrimalDual | ( |  | ) | `[inline]`

Definition at line 43 of file CoinWarmStartPrimalDual.hpp.

Referenced by clone().

CoinWarmStartPrimalDual::CoinWarmStartPrimalDual | ( | int | primalSize,
|  | int | dualSize,
|  | const double * | primal,
|  | const double * | dual |
| ) |  |  | `[inline]`

Definition at line 45 of file CoinWarmStartPrimalDual.hpp.

CoinWarmStartPrimalDual::CoinWarmStartPrimalDual | ( | const CoinWarmStartPrimalDual & | rhs | ) | `[inline]`

Definition at line 49 of file CoinWarmStartPrimalDual.hpp.

virtual CoinWarmStartPrimalDual::~CoinWarmStartPrimalDual | ( |  | ) | `[inline, virtual]`

Definition at line 82 of file CoinWarmStartPrimalDual.hpp.

## Member Function Documentation

int CoinWarmStartPrimalDual::dualSize | ( |  | ) | const`[inline]`

return the size of the dual vector

Definition at line 20 of file CoinWarmStartPrimalDual.hpp.

References dual_, and CoinWarmStartVector< T >::size().

const double* CoinWarmStartPrimalDual::dual | ( |  | ) | const`[inline]`

return a pointer to the array of duals

Definition at line 22 of file CoinWarmStartPrimalDual.hpp.

References dual_, and CoinWarmStartVector< T >::values().

int CoinWarmStartPrimalDual::primalSize | ( |  | ) | const`[inline]`

return the size of the primal vector

Definition at line 25 of file CoinWarmStartPrimalDual.hpp.

References primal_, and CoinWarmStartVector< T >::size().

const double* CoinWarmStartPrimalDual::primal | ( |  | ) | const`[inline]`

return a pointer to the array of primals

Definition at line 27 of file CoinWarmStartPrimalDual.hpp.

References primal_, and CoinWarmStartVector< T >::values().

void CoinWarmStartPrimalDual::assign | ( | int | primalSize,
|  | int | dualSize,
|  | double *& | primal,
|  | double *& | dual |
| ) |  |  | `[inline]`

Assign the primal/dual vectors to be the warmstart information.

In this method the object assumes ownership of the pointers and upon return `primal` and `dual` will be a NULL pointers. If copying is desirable use the constructor.

NOTE: `primal` and `dual` must have been allocated by new double[], because they will be freed by delete[] upon the desructtion of this object...

Definition at line 38 of file CoinWarmStartPrimalDual.hpp.

References CoinWarmStartVector< T >::assignVector(), dual_, and primal_.

CoinWarmStartPrimalDual& CoinWarmStartPrimalDual::operator= | ( | const CoinWarmStartPrimalDual & | rhs | ) | `[inline]`

Definition at line 52 of file CoinWarmStartPrimalDual.hpp.

References dual_, and primal_.

void CoinWarmStartPrimalDual::clear | ( |  | ) | `[inline]`

Clear the data.

Make it appear as if the warmstart was just created using the default constructor.

Definition at line 65 of file CoinWarmStartPrimalDual.hpp.

References CoinWarmStartVector< T >::clear(), dual_, and primal_.

void CoinWarmStartPrimalDual::swap | ( | CoinWarmStartPrimalDual & | rhs | ) | `[inline]`

Definition at line 70 of file CoinWarmStartPrimalDual.hpp.

References dual_, primal_, and CoinWarmStartVector< T >::swap().

virtual CoinWarmStart* CoinWarmStartPrimalDual::clone | ( |  | ) | const`[inline, virtual]`

`Virtual constructor'

Implements CoinWarmStart.

Definition at line 78 of file CoinWarmStartPrimalDual.hpp.

References CoinWarmStartPrimalDual().

virtual CoinWarmStartDiff* CoinWarmStartPrimalDual::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`.

Reimplemented from CoinWarmStart.

virtual void CoinWarmStartPrimalDual::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.

## Member Data Documentation

CoinWarmStartVector<double> CoinWarmStartPrimalDual::primal_`[private]`

Definition at line 118 of file CoinWarmStartPrimalDual.hpp.

Referenced by assign(), clear(), operator=(), primal(), primalSize(), and swap().

CoinWarmStartVector<double> CoinWarmStartPrimalDual::dual_`[private]`

Definition at line 119 of file CoinWarmStartPrimalDual.hpp.

Referenced by assign(), clear(), dual(), dualSize(), operator=(), and swap().

The documentation for this class was generated from the following file:

- /home/coin/SVN-release/Cgl-0.55.0/CoinUtils/src/CoinWarmStartPrimalDual.hpp