23#ifndef AlpsKnowledgeBrokerSerial_h_
24#define AlpsKnowledgeBrokerSerial_h_
61 bool showBanner =
true)
104 std::cout <<
"\nALPS did not find a solution."
108 if (outputFile != 0) {
110 std::ofstream os(outputFile);
111 os <<
"============================================" << std::endl;
113 os <<
"Optimal solution:" << std::endl;
116 os <<
"Best solution found:" << std::endl;
124 std::cout <<
"============================================" << std::endl;
126 std::cout <<
"Optimal solution:" << std::endl;
129 std::cout <<
"Best solution found:" << std::endl;
132 std::cout << std::endl;
135 std::cout <<
"============================================" << std::endl;
144 bool showBanner =
true);
@ AlpsKnowledgeTypeSolution
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.
virtual void searchLog()
Search log.
AlpsKnowledgeBrokerSerial(AlpsModel &model)
Useful constructor.
virtual void rootSearch(AlpsTreeNode *root)
Search for best solution.
AlpsKnowledgeBrokerSerial(const AlpsKnowledgeBrokerSerial &)
AlpsKnowledgeBrokerSerial & operator=(const AlpsKnowledgeBrokerSerial &)
virtual double getIncumbentValue() const
The process queries the quality of the incumbent that it stores.
virtual void initializeSearch(int argc, char *argv[], AlpsModel &model, bool showBanner=true)
Reading in Alps and user parameter sets, and read in model data.
virtual double getBestQuality() const
The process queries the quality of the best solution that it finds.
AlpsKnowledgeBrokerSerial()
Default constructor.
AlpsKnowledgeBrokerSerial(int argc, char *argv[], AlpsModel &model, bool showBanner=true)
Userful constructor.
virtual ~AlpsKnowledgeBrokerSerial()
Destructor.
virtual bool hasKnowledge(AlpsKnowledgeType kt) const
Query whether there are knowledges in the given type of knowledge pools.
virtual int getNumKnowledges(AlpsKnowledgeType kt) const
Query the number of knowledge in the given type of a knowledge pool.
AlpsExitStatus getSolStatus() const
Query search termination status.
AlpsKnowledgeBroker(const AlpsKnowledgeBroker &)
virtual std::pair< AlpsKnowledge *, double > getBestKnowledge(AlpsKnowledgeType kt) const
Get the best knowledge in the given type of knowledge pools.
int msgLevel_
The leve of printing message to screen of the master and general message.
This class holds one node of the search tree.