Go to the documentation of this file.
32 #include "CoinError.hpp"
175 throw CoinError(
"readInstance() is not defined.",
"readData",
179 virtual void readParameters(
const int argnum,
const char *
const * arglist);
virtual void readInstance(const char *dateFile)
Read in the instance data.
AlpsModel()
Default construtor.
AlpsModel is a base class for user application problem data.
AlpsModel & operator=(const AlpsModel &)
virtual void preprocess()
Preprocessing the model.
virtual void sendGeneratedKnowledge()
Send generated knowledge.
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Decode the given AlpsEncoded object into this.
virtual ~AlpsModel()
Destructor.
virtual void readParameters(const int argnum, const char *const *arglist)
Read in Alps parameters.
virtual AlpsTreeNode * createRoot()=0
Create the root node.
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.
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 Alps knowledges generated during the search.
The base class of knowledge broker class.
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
virtual bool setupSelf()
Do necessary work to make model ready for use, such as classify variable and constraint types.
AlpsParams * AlpsPar()
Access Alps Parameters.
std::string getDataFile() const
Get the input file.
virtual void nodeLog(AlpsTreeNode *node, bool force)
Node log.
virtual void registerKnowledge()
Register knowledge class.
virtual void unpackSharedKnowledge(AlpsEncoded &)
Unpack and store shared knowledge from an encoded object.
void setDataFile(std::string infile)
Set the data file.
virtual void postprocess()
Postprocessing results.