6#ifndef CoinWarmStartPrimalDual_H
7#define CoinWarmStartPrimalDual_H
\legal Copyright (C) 2000 – 2003, International Business Machines Corporation and others.
Abstract base class for warm start ‘diff’ objects.
A ‘diff’ between two CoinWarmStartPrimalDual objects.
CoinWarmStartVectorDiff< double > primalDiff_
These two differences describe the differences in the primal and in the dual vector.
CoinWarmStartPrimalDualDiff(const CoinWarmStartPrimalDualDiff &rhs)
Copy constructor.
virtual CoinWarmStartDiff * clone() const
‘Virtual constructor’.
void swap(CoinWarmStartPrimalDualDiff &rhs)
CoinWarmStartPrimalDualDiff()
Default constructor.
CoinWarmStartVectorDiff< double > dualDiff_
void clear()
Clear the data.
virtual ~CoinWarmStartPrimalDualDiff()
Destructor.
WarmStart information that is only a dual vector.
void assign(int primalSize, int dualSize, double *&primal, double *&dual)
Assign the primal/dual vectors to be the warmstart information.
CoinWarmStartPrimalDual & operator=(const CoinWarmStartPrimalDual &rhs)
int dualSize() const
return the size of the dual vector
virtual void applyDiff(const CoinWarmStartDiff *const cwsdDiff)
Apply diff to this warm start.
const double * dual() const
return a pointer to the array of duals
void clear()
Clear the data.
virtual CoinWarmStart * clone() const
‘Virtual constructor’
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 b...
CoinWarmStartPrimalDual(const CoinWarmStartPrimalDual &rhs)
CoinWarmStartVector< double > dual_
void swap(CoinWarmStartPrimalDual &rhs)
CoinWarmStartPrimalDual(int primalSize, int dualSize, const double *primal, const double *dual)
const double * primal() const
return a pointer to the array of primals
virtual ~CoinWarmStartPrimalDual()
CoinWarmStartPrimalDual()
CoinWarmStartVector< double > primal_
int primalSize() const
return the size of the primal vector
void clear()
Clear the data.
void swap(CoinWarmStartVectorDiff &rhs)
WarmStart information that is only a vector.
void assignVector(int size, T *&vec)
Assign the vector to be the warmstart information.
void swap(CoinWarmStartVector &rhs)
const T * values() const
return a pointer to the array of vectors
void clear()
Clear the data.
int size() const
return the size of the vector
Abstract base class for warm start information.