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