28 #include "CoinError.hpp"
74 inline void setDataFile(std::string infile) { dataFile_ = infile; }
81 throw CoinError(
"readInstance() is not defined.",
"readData",
86 virtual void readParameters(
const int argnum,
const char *
const * arglist);
103 throw CoinError(
"createRoot is not defined.",
"createRoot",
AlpsParams * AlpsPar()
Access Alps Parameters.
void setKnowledgeBroker(AlpsKnowledgeBroker *b)
Set knowledge broker.
virtual ~AlpsModel()
Destructor.
AlpsParams * AlpsPar_
The parameter set that is used in Alps.
virtual void nodeLog(AlpsTreeNode *node, bool force)
Node log.
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
The base class of knowledge broker class.
This class holds one node of the search tree.
virtual bool fathomAllNodes()
Return true if all nodes on this process can be fathomed.
virtual void sendGeneratedKnowledge()
Send generated knowledge.
void writeParameters(std::ostream &outstream) const
Write out parameters.
This data structure is to contain the packed form of an encodable knowledge.
std::string getDataFile() const
Get the input file.
AlpsReturnStatus encodeAlps(AlpsEncoded *encoded) const
Pack Alps portion of node into an encoded object.
virtual void registerKnowledge()
Register knowledge class.
virtual void modelLog()
Problem specific log.
void setDataFile(std::string infile)
Set the data file.
virtual void unpackSharedKnowledge(AlpsEncoded &)
Unpack and store shared knowledge from an encoded object.
virtual void readParameters(const int argnum, const char *const *arglist)
Read in Alps parameters.
virtual AlpsEncoded * packSharedKnowlege()
Pack knowledge to be shared with others into an encoded object.
std::string dataFile_
Data file.
AlpsKnowledgeBroker * getKnowledgeBroker()
Get knowledge broker.
AlpsModel()
Default construtor.
virtual void preprocess()
Preprocessing the model.
virtual AlpsTreeNode * createRoot()
Create the root node.
virtual void decodeToSelf(AlpsEncoded &encoded)
Decode model data from the encoded form and fill member data.
virtual void receiveGeneratedKnowledge()
Receive generated knowledge.
void setType(KnowledgeType t)
virtual void readInstance(const char *dateFile)
Read in the instance data.
virtual bool setupSelf()
Do necessary work to make model ready for use, such as classify variable and constraint types...
AlpsKnowledgeBroker * broker_
Knowledge broker.
virtual void postprocess()
Postprocessing results.
AlpsReturnStatus decodeAlps(AlpsEncoded &encoded)
Unpack Alps portion of node from an encoded object.