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