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