15 double x = params_[0].getValue();
16 for (
unsigned int j = 0; j < p_.size(); j++)
19 xt_[j].setValue((p_[j].getValue()) + x * xi_[j]);
28 return function_->getValue();
60 for (
unsigned int i = 0; i < p_.size(); ++i)
64 p_.setParameter(i, ap);
72 for (
unsigned int i = 0; i < p_.size(); i++)
74 p_[i].removeConstraint();
static std::string CONSTRAINTS_IGNORE
void init(const ParameterList &p, const std::vector< double > &xi)
void setParameters(const ParameterList ¶meters) override
Set the point where the function must be computed.
const ParameterList & getParameters() const override
Get all parameters available.
The parameter list object.
virtual void setMessageHandler(std::shared_ptr< OutputStream > mh)
Set the message handler for this AutoParameter.
ParameterList & getParameters_() override
Get all parameters available.
virtual void setParameters(const ParameterList ¶ms)
Update the parameters from params.
static std::string CONSTRAINTS_AUTO
double getValue() const override
Get the value of the function at the current point.