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