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