Dip 0.95.0
|
Derivation of AlpsModel for DECOMP. More...
#include <AlpsDecompModel.h>
Public Member Functions | |
Constructors and destructor. | |
AlpsDecompModel () | |
Default constructors. More... | |
AlpsDecompModel (UtilParameters &utilParam, DecompAlgo *decompAlgo) | |
virtual | ~AlpsDecompModel () |
Destructor. More... | |
Virtual functions from AlpsModel. | |
virtual AlpsTreeNode * | createRoot () |
Create the root node of the search tree. More... | |
virtual bool | fathomAllNodes () |
Return true, if all nodes can be fathomed. More... | |
Helper functions. | |
AlpsExitStatus | solve () |
Solve with ALPS and DECOMP. More... | |
void | setAlpsSettings () |
Set the ALPS parameters. More... | |
void | setDecompAlgo (DecompAlgo *decompAlgo) |
Solve with ALPS and DECOMP. More... | |
Set/get methods. | |
DecompAlgo * | getDecompAlgo () |
Get a ptr to the decomp algorithm vector. More... | |
AlpsDecompParam & | getParam () |
const int | getNumCoreRows () const |
Get number of rows in core decomp model. More... | |
const int | getNumCoreCols () const |
Get number of cols in core decomp model. More... | |
const std::vector< std::string > & | getColNames () const |
Get the column names in core decomp model. More... | |
const std::vector< std::string > & | getRowNames () const |
Get the row names in core decomp model. More... | |
const DecompSolution * | getBestSolution () const |
Get the best solution found. More... | |
const double | getGlobalLB () const |
const double | getGlobalUB () const |
const int | getSolStatus () const |
const int | getNumNodesProcessed () const |
![]() | |
AlpsModel () | |
virtual | ~AlpsModel () |
AlpsKnowledgeBroker * | getKnowledgeBroker () |
void | setKnowledgeBroker (AlpsKnowledgeBroker *b) |
std::string | getDataFile () const |
void | setDataFile (std::string infile) |
AlpsParams * | AlpsPar () |
virtual void | readInstance (const char *dateFile) |
virtual void | readParameters (const int argnum, const char *const *arglist) |
void | writeParameters (std::ostream &outstream) const |
virtual bool | setupSelf () |
virtual void | preprocess () |
virtual void | postprocess () |
virtual AlpsTreeNode * | createRoot () |
virtual void | modelLog () |
virtual void | nodeLog (AlpsTreeNode *node, bool force) |
virtual bool | fathomAllNodes () |
AlpsReturnStatus | encodeAlps (AlpsEncoded *encoded) const |
AlpsReturnStatus | decodeAlps (AlpsEncoded &encoded) |
virtual void | decodeToSelf (AlpsEncoded &encoded) |
virtual void | registerKnowledge () |
virtual void | sendGeneratedKnowledge () |
virtual void | receiveGeneratedKnowledge () |
virtual AlpsEncoded * | packSharedKnowlege () |
virtual void | unpackSharedKnowledge (AlpsEncoded &) |
![]() | |
AlpsKnowledge () | |
virtual | ~AlpsKnowledge () |
KnowledgeType | getType () |
void | setType (KnowledgeType t) |
virtual AlpsEncoded * | encode () const |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
AlpsEncoded * | getEncoded () const |
void | setEncoded (AlpsEncoded *e) |
Additional Inherited Members | |
![]() | |
AlpsKnowledgeBroker * | broker_ |
std::string | dataFile_ |
AlpsParams * | AlpsPar_ |
![]() | |
KnowledgeType | type_ |
Derivation of AlpsModel for DECOMP.
An object derived from AlpsModel. It interfaces with DECOMP methods through a pointer to the active DecompAlgo.
Virtual methods that should be derived here:
Clone a monkey.
Arm wrestle Ted.
Allow use of Alps writeParameters.
Use message handler.
Use differencing scheme.
Setup for parallel.
Definition at line 64 of file AlpsDecompModel.h.
|
inline |
Default constructors.
Definition at line 112 of file AlpsDecompModel.h.
|
inline |
Definition at line 119 of file AlpsDecompModel.h.
|
inlinevirtual |
Destructor.
Definition at line 135 of file AlpsDecompModel.h.
|
virtual |
Create the root node of the search tree.
Reimplemented from AlpsModel.
|
virtual |
Return true, if all nodes can be fathomed.
Reimplemented from AlpsModel.
AlpsExitStatus AlpsDecompModel::solve | ( | ) |
Solve with ALPS and DECOMP.
void AlpsDecompModel::setAlpsSettings | ( | ) |
Set the ALPS parameters.
|
inline |
Solve with ALPS and DECOMP.
Definition at line 177 of file AlpsDecompModel.h.
|
inline |
Get a ptr to the decomp algorithm vector.
Definition at line 194 of file AlpsDecompModel.h.
|
inline |
Definition at line 198 of file AlpsDecompModel.h.
|
inline |
Get number of rows in core decomp model.
Definition at line 206 of file AlpsDecompModel.h.
|
inline |
Get number of cols in core decomp model.
Definition at line 213 of file AlpsDecompModel.h.
|
inline |
Get the column names in core decomp model.
Definition at line 220 of file AlpsDecompModel.h.
|
inline |
Get the row names in core decomp model.
Definition at line 227 of file AlpsDecompModel.h.
|
inline |
Get the best solution found.
Definition at line 234 of file AlpsDecompModel.h.
|
inline |
Definition at line 238 of file AlpsDecompModel.h.
|
inline |
Definition at line 241 of file AlpsDecompModel.h.
|
inline |
Definition at line 244 of file AlpsDecompModel.h.
|
inline |
Definition at line 247 of file AlpsDecompModel.h.