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