6 #ifndef CoinWarmStartPrimalDual_H
7 #define CoinWarmStartPrimalDual_H
CoinWarmStartPrimalDual & operator=(const CoinWarmStartPrimalDual &rhs)
void clear()
Clear the data.
int size() const
return the size of the vector
virtual ~CoinWarmStartPrimalDual()
CoinWarmStartPrimalDual(const CoinWarmStartPrimalDual &rhs)
const double * dual() const
return a pointer to the array of duals
WarmStart information that is only a dual vector.
const T * values() const
return a pointer to the array of vectors
Abstract base class for warm start `diff' objects.
void clear()
Clear the data.
virtual CoinWarmStartDiff * clone() const
`Virtual constructor'. To be used when retaining polymorphism is important
void swap(CoinWarmStartPrimalDual &rhs)
virtual ~CoinWarmStartPrimalDualDiff()
Destructor.
void swap(CoinWarmStartVector &rhs)
virtual CoinWarmStart * clone() const
`Virtual constructor'
CoinWarmStartVectorDiff< double > primalDiff_
These two differences describe the differences in the primal and in the dual vector.
int primalSize() const
return the size of the primal vector
CoinWarmStartPrimalDual()
Declaration of the generic simplex (basis-oriented) warm start class. Also contains a basis diff clas...
CoinWarmStartVector< double > dual_
void swap(CoinWarmStartVectorDiff &rhs)
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...
void assign(int primalSize, int dualSize, double *&primal, double *&dual)
Assign the primal/dual vectors to be the warmstart information.
void assignVector(int size, T *&vec)
Assign the vector to be the warmstart information.
CoinWarmStartPrimalDualDiff()
Default constructor.
CoinWarmStartVectorDiff< double > dualDiff_
int dualSize() const
return the size of the dual vector
CoinWarmStartPrimalDual(int primalSize, int dualSize, const double *primal, const double *dual)
void swap(CoinWarmStartPrimalDualDiff &rhs)
Abstract base class for warm start information.
CoinWarmStartPrimalDualDiff(const CoinWarmStartPrimalDualDiff &rhs)
Copy constructor.
const double * primal() const
return a pointer to the array of primals
virtual void applyDiff(const CoinWarmStartDiff *const cwsdDiff)
Apply diff to this warm start.
void clear()
Clear the data.
void clear()
Clear the data.
CoinWarmStartVector< double > primal_
A `diff' between two CoinWarmStartPrimalDual objects.