68 static constexpr double m_defaultPenaltyFactor = 1000;
This class represents an expression made up of names, binary operators and brackets.
An interface to a constraint.
virtual double checkDeriv()=0
Returns the derivative of the penalty for each active parameter.
virtual void initialize(IFunction *fun, const Expression &expr, bool isDefault=false)=0
Initialize the constraint from an expression.
virtual double getPenaltyFactor() const =0
get the penalty factor for the constraint
virtual std::string asString() const =0
Return the string that can be used in this->initialize() to recreate this constraint.
static double getDefaultPenaltyFactor()
Return the value for default fitting penalties.
virtual double checkDeriv2()=0
Returns the derivative of the penalty for each active parameter.
virtual double check()=0
Returns a penalty number which is bigger than or equal to zero If zero it means that the constraint i...
virtual void setPenaltyFactor(const double &c)=0
set the penalty factor for the constraint Set panelty factor.
virtual void setParamToSatisfyConstraint()=0
Set the parameters of IFitFunction to satisfy constraint.
This is an interface to a fitting function - a semi-abstarct class.
A reference to a parameter in a function.
Helper class which provides the Collimation Length for SANS instruments.