3 #ifndef _BCP_WARMSTART_PRIMALDUAL_H
4 #define _BCP_WARMSTART_PRIMALDUAL_H
48 const double* dfirst,
const double* dlast) :
79 return return_matrix[4*pst + dst];
102 const double detol)
const;
void pack(BCP_buffer &buf) const
Pack the warmstart info into a buffer.
BCP_warmstart_primaldual(const BCP_warmstart_primaldual &ws)
Copy constructor.
int storage_size() const
Return how much memory it'll take to pack this info.
BCP_warmstart_primaldual & operator=(const BCP_warmstart_primaldual &)
The assignment operator is declared but not defined to disable it.
Warmstarting information for the LP solver.
The data stored is an explicit listing of values.
virtual BCP_warmstart * as_change(const BCP_warmstart *const old_ws, const BCP_vec< int > &del_vars, const BCP_vec< int > &del_cuts, const double petol, const double detol) const
Return a pointer to a warmstart info describing the currently stored data as a change with respect to...
virtual int storage_size() const
Return how much memory it'll take to pack this warmstart info.
BCP_vec_change< double > _dual
The dual vector stored as a vector change.
BCP_warmstart_primaldual()
The default constructor creates an empty WrtParent warmstart info (i.e., no change wrt the parent)...
virtual BCP_warmstart * clone() const
Make a replica of the current warmstart information.
The data stored is with respect to the same kind of data in the parent of the search tree node...
BCP_warmstart_primaldual(BCP_buffer &buf)
Create the object by unpacking it from a buffer.
BCP_storage_t storage() const
Return the storage type of the vector.
virtual BCP_warmstart * empty_wrt_this() const
Create a warmstart info describing that no change should be done.
Abstract base class for warm start information.
This class describes the message buffer used for all processes of BCP.
BCP_warmstart_primaldual(const double *pfirst, const double *plast, const double *dfirst, const double *dlast)
Create an explicitly stored warmstart info by considering the double arrays [fpirst,plast) and [dpirst,dlast) as the primal and dual vectors.
virtual CoinWarmStart * convert_to_CoinWarmStart() const
Return an CoinWarmStart object that can be fed to the LP engine.
virtual ~BCP_warmstart_primaldual()
Create the object by unpacking it from a buffer.
virtual BCP_storage_t storage() const
Return how the warmstarting info is stored.
BCP_storage_t
This enumerative constant describes how to store certain data for a search tree node.
void pack(BCP_buffer &buf) const
Pack the data into a buffer.
BCP_vec_change< double > _primal
The primal vector stored as a vector change.
virtual void update(const BCP_warmstart *const change)
Update the current data with the one in the argument.
This class describes a warmstart information that consists solely of the dual vector.