5 #ifndef BPP_NUMERIC_FUNCTION_DIRECTIONFUNCTION_H 6 #define BPP_NUMERIC_FUNCTION_DIRECTIONFUNCTION_H 9 #include "../../App/ApplicationTools.h" 10 #include "../../Io/OutputStream.h" 11 #include "../AutoParameter.h" 12 #include "../Parametrizable.h" 23 std::vector<double>
xi_;
30 params_(), p_(), xt_(), xi_(),
31 function_(function), constraintPolicy_(
AutoParameter::CONSTRAINTS_KEEP),
36 function_(df.function_), constraintPolicy_(df.constraintPolicy_), messenger_(df.messenger_) {}
40 ParametrizableAdapter::operator=(df);
66 void setConstraintPolicy(
const std::string& constraintPolicy) { constraintPolicy_ = constraintPolicy; }
83 #endif // BPP_NUMERIC_FUNCTION_DIRECTIONFUNCTION_H
void setConstraintPolicy(const std::string &constraintPolicy)
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.
DirectionFunction(const DirectionFunction &df)
const ParameterList & getParameters() const override
Get all parameters available.
DirectionFunction & operator=(const DirectionFunction &df)
This is the function abstract class.
ParameterList getFunctionParameters() const
A low-level implementation of the Parametrizable interface with void functions.
DirectionFunction(std::shared_ptr< FunctionInterface > function=nullptr)
The parameter list object.
std::string getConstraintPolicy() const
std::shared_ptr< FunctionInterface > function_
ParameterList & getParameters_() override
Get all parameters available.
std::vector< double > xi_
virtual ~DirectionFunction()
void setMessageHandler(std::shared_ptr< OutputStream > messenger)
size_t getNumberOfParameters() const override
Get the number of parameters.
double getValue() const override
Get the value of the function at the current point.
std::shared_ptr< FunctionInterface > getFunction() const
std::shared_ptr< OutputStream > messenger_
std::string constraintPolicy_
DirectionFunction * clone() const override
Create a copy of this object and send a pointer to it.