25 #ifndef _POSTERIOR_FIXED_HPP_ 26 #define _POSTERIOR_FIXED_HPP_ 28 #include <boost/scoped_ptr.hpp> 59 void updateHyperParameters();
60 void fitSurrogateModel();
61 void updateSurrogateModel();
63 double evaluateCriteria(
const vectord& query);
64 void updateCriteria(
const vectord& query);
66 bool criteriaRequiresComparison();
67 void setFirstCriterium();
68 bool setNextCriterium(
const vectord& prevResult);
69 std::string getBestCriteria(vectord& best);
76 void setSurrogateModel(randEngine& eng);
77 void setCriteria(randEngine& eng);
80 boost::scoped_ptr<NonParametricProcess>
mGP;
81 boost::scoped_ptr<Criteria>
mCrit;
86 inline void PosteriorFixed::updateHyperParameters()
89 inline void PosteriorFixed::fitSurrogateModel()
90 {
mGP->fitSurrogateModel(); };
92 inline void PosteriorFixed::updateSurrogateModel()
93 {
mGP->updateSurrogateModel(); };
95 inline double PosteriorFixed::evaluateCriteria(
const vectord& query)
96 {
return (*
mCrit)(query); };
98 inline void PosteriorFixed::updateCriteria(
const vectord& query)
99 {
return mCrit->update(query); };
101 inline bool PosteriorFixed::criteriaRequiresComparison()
102 {
return mCrit->requireComparison(); };
104 inline void PosteriorFixed::setFirstCriterium()
105 {
mCrit->initialCriteria(); };
107 inline bool PosteriorFixed::setNextCriterium(
const vectord& prevResult)
109 mCrit->pushResult(prevResult);
110 return mCrit->rotateCriteria();
113 inline std::string PosteriorFixed::getBestCriteria(vectord& best)
114 {
return mCrit->getBestCriteria(best); };
117 {
return mGP->prediction(query); };
Namespace of the library interface.
boost::scoped_ptr< Criteria > mCrit
Metacriteria model.
Abstract interface for posterior model/criteria.
Abstract and factory modules for criteria.
boost::scoped_ptr< NonParametricProcess > mGP
Pointer to surrogate model.
Bayesian optimization using different non-parametric processes as distributions over surrogate functi...
C++ wrapper of the NLOPT library.
virtual ~PosteriorFixed()
Default destructor.
Bayesian optimization using different non-parametric processes as distributions over surrogate functi...