![]() |
FMT 1.2.0
Forest management tools for forest planning
|
Helper for the serialization of an OSI solver interface matrix. More...
#include <FMTSerializableMatrix.h>
Public Member Functions | |
| FMTSerializableMatrix () | |
| Default constructor for FMTSerializableMatrix. | |
| FMTSerializableMatrix (const FMTSerializableMatrix &rhs) | |
| Copy constructor for FMTSerializableMatrix. | |
| FMTSerializableMatrix & | operator= (const FMTSerializableMatrix &rhs) |
| Copy assignment operator for FMTSerializableMatrix. | |
| FMTSerializableMatrix (const std::shared_ptr< OsiSolverInterface > &solverinterface) | |
| Construct a serializable matrix from a solver interface, normally used during the saving part of serialization. | |
| void | setMatrix (std::shared_ptr< OsiSolverInterface > &solverinterface) const |
| Set the content of a solver interface matrix, used during the loading part of serialization. | |
| ~FMTSerializableMatrix () | |
| Destructor for FMTSerializableMatrix. | |
Friends | |
| class | boost::serialization::access |
| Serialize the matrix by extracting the OSI solver interface matrix into vectors, for multiprocessing across multiple cpus (pickle in Python). | |
Helper for the serialization of an OSI solver interface matrix.
Extracts the information from the OSI solver interface matrix into vectors (solutions, bounds, etc.) to allow synchronization, also useful when copying an OSI solver interface with the FMTSolverInterface type.
| Models::FMTSerializableMatrix::FMTSerializableMatrix | ( | ) |
Default constructor for FMTSerializableMatrix.
| Models::FMTSerializableMatrix::FMTSerializableMatrix | ( | const FMTSerializableMatrix & | rhs | ) |
Copy constructor for FMTSerializableMatrix.
| [in] | rhs | the FMTSerializableMatrix to copy. |
| Models::FMTSerializableMatrix::FMTSerializableMatrix | ( | const std::shared_ptr< OsiSolverInterface > & | solverinterface | ) |
Construct a serializable matrix from a solver interface, normally used during the saving part of serialization.
| [in] | solverinterface | the solver interface. |
| Models::FMTSerializableMatrix::~FMTSerializableMatrix | ( | ) |
Destructor for FMTSerializableMatrix.
Function used to build a shared pointer of a solverinterface passing the message handler to the pointer. Function used to copy a shared pointer of a solverinterface passing the message handler to the pointer to a other shared pointer.
| FMTSerializableMatrix & Models::FMTSerializableMatrix::operator= | ( | const FMTSerializableMatrix & | rhs | ) |
Copy assignment operator for FMTSerializableMatrix.
| [in] | rhs | the FMTSerializableMatrix to copy. |
| void Models::FMTSerializableMatrix::setMatrix | ( | std::shared_ptr< OsiSolverInterface > & | solverinterface | ) | const |
Set the content of a solver interface matrix, used during the loading part of serialization.
Setter of the solvertype of the serializable matrix.
| [in] | solverinterface | the solver interface. |
|
friend |
Serialize the matrix by extracting the OSI solver interface matrix into vectors, for multiprocessing across multiple cpus (pickle in Python).
| Archive | the archive type. |
| [in,out] | ar | the archive to serialize to or from. |
| [in] | version | the serialization version. |