Go to the documentation of this file.
27 #ifndef AlpsKnowledgeBrokerSerial_h_
28 #define AlpsKnowledgeBrokerSerial_h_
65 bool showBanner =
true)
108 std::cout <<
"\nALPS did not find a solution."
112 if (outputFile != 0) {
114 std::ofstream os(outputFile);
115 os <<
"============================================" << std::endl;
117 os <<
"Optimal solution:" << std::endl;
120 os <<
"Best solution found:" << std::endl;
128 std::cout <<
"============================================" << std::endl;
130 std::cout <<
"Optimal solution:" << std::endl;
133 std::cout <<
"Best solution found:" << std::endl;
136 std::cout << std::endl;
139 std::cout <<
"============================================" << std::endl;
148 bool showBanner =
true);
virtual void rootSearch(AlpsTreeNode *root)
Search for best solution.
AlpsModel is a base class for user application problem data.
virtual void printBestSolution(char *outputFile=0) const
The process outputs the best solution and the quality that it finds to a file or std::out.
AlpsExitStatus getSolStatus() const
Query search termination status.
virtual int getNumKnowledges(AlpsKnowledgeType kt) const
Query the number of knowledge in the given type of a knowledge pool.
int msgLevel_
The leve of printing message to screen of the master and general message.
This class holds one node of the search tree.
AlpsKnowledgeBrokerSerial(AlpsModel &model)
Useful constructor.
virtual void initializeSearch(int argc, char *argv[], AlpsModel &model, bool showBanner=true)
Reading in Alps and user parameter sets, and read in model data.
AlpsKnowledgeBrokerSerial()
Default constructor.
The base class of knowledge broker class.
virtual double getIncumbentValue() const
The process queries the quality of the incumbent that it stores.
virtual ~AlpsKnowledgeBrokerSerial()
Destructor.
AlpsKnowledgeBrokerSerial(int argc, char *argv[], AlpsModel &model, bool showBanner=true)
Userful constructor.
AlpsKnowledgeBrokerSerial & operator=(const AlpsKnowledgeBrokerSerial &)
virtual bool hasKnowledge(AlpsKnowledgeType kt) const
Query whether there are knowledges in the given type of knowledge pools.
virtual void searchLog()
Search log.
virtual double getBestQuality() const
The process queries the quality of the best solution that it finds.
@ AlpsKnowledgeTypeSolution
virtual std::pair< AlpsKnowledge *, double > getBestKnowledge(AlpsKnowledgeType kt) const
Get the best knowledge in the given type of knowledge pools.