How to set the bound when use boost::scoped_ptr

30 views
Skip to first unread message

Zhaozhong Chen

unread,
Dec 10, 2017, 1:20:54 AM12/10/17
to BayesOpt discussion
Hi

I am trying to figure out how the set the lower and upper bound in the example bo_display.cpp
I know the standard way like

      MyOptimization optimizer(params);
      boost::numeric::ublas::vector<double> lowerBound(dim);
      boost::numeric::ublas::vector<double> upperBound(dim);
      optimizer.setBoundingBox(lowerBounds,upperBounds);

But seems in display example it uses
     boost::scoped_ptr<ExampleOneD> opt(new ExampleOneD(parameters_class));
to define the optimization object. I don't know how to set lower and upper bound in this example.

Thanks for your answer!
Reply all
Reply to author
Forward
0 new messages