19 const real* lamArray ,
21 const fint *lwsArray ,
24 CoinWarmStartPrimalDual(xSize, lamSize, xArray, lamArray),
30 assert(lwsSize > 0 || !lwsArray);
36 for (
int i = 0 ; i < 14 ; i ++) {
44 CoinWarmStartPrimalDual(other),
45 CoinWarmStartBasis(other),
46 lwsSize_(other.lwsSize_),
56 for (
int i = 0 ; i < 14 ; i ++) {
73 CoinWarmStartDiff *
diff = CoinWarmStartPrimalDual::generateDiff(old);
75 CoinWarmStartPrimalDualDiff * pdDiff =
76 dynamic_cast<CoinWarmStartPrimalDualDiff*
>(
diff);
90 for (
int i = 0 ; i < 14 ; i++) {
103 CoinWarmStartPrimalDual::applyDiff(diffF);
106 for (
fint i = 0 ; i <
end ; i++) {
110 for (
int i = 0 ; i < 14 ; i++)
123 CoinWarmStartPrimalDualDiff()
125 CoinWarmStartPrimalDualDiff::swap(*diff);
132 CoinWarmStartPrimalDualDiff::clear();
137 FilterWarmStart::def_istat[14] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0};
static Bigint * diff(Bigint *a, Bigint *b)
fint lwsSize() const
Access to lws size.
std::pair< fint, fint > OneDiff
One difference is two integers (indice and difference).
virtual ~FilterWarmStart()
Destructor.
Warm start for filter interface.
FilterWarmStart(const fint xSize=0, const real *xArray=NULL, const fint lamSize=0, const real *lamArray=NULL, const fint lwsSize=0, const fint *lwsArray=NULL, const fint istat[14]=def_istat)
Constructor.
fint istat_[14]
Filter's istat (AW: I think we only need first entry)
std::vector< OneDiff > differences
Vector of all the differences.
void fint fint fint fint fint fint fint fint fint fint real real real real real real real real real fint real fint real char real fint fint fint * istat
FORTRAN_INTEGER_TYPE fint
Fortran type for integer used in filter.
virtual CoinWarmStartDiff * generateDiff(const CoinWarmStart *const other) const
Generate differences.
FilterWarmStartDiff(CoinWarmStartPrimalDualDiff *diff, fint capacity)
fint lwsSize_
Size of fint lws array store.
static fint def_istat[14]
Default values for istat.
virtual void applyDiff(const CoinWarmStartDiff *const cswDiff)
Apply differences.
void flushPoint()
flush the starting point
fint * lwsArray_
fint lws array to store