Diana  0.8.3
Public Member Functions | Protected Member Functions | Protected Attributes
DianaOptimizationPoint Class Reference

#include <DianaNLPParameter.hpp>

Inheritance diagram for DianaOptimizationPoint:
IDianaOptimizationPoint ICapeOptimizationPoint ICapeIdentification DianaNLPTaskParametersList

List of all members.

Public Member Functions

 DianaOptimizationPoint (const Common::Collection::ICapeCollection &collSoughtParamsVals)
virtual ~DianaOptimizationPoint ()
Common::Types::CapeLong Content () const
Common::Types::CapeBoolean Content (Numeric::Solvers::NLPTasks::eCapeOptPointEntry entryType) const
Common::Types::CapeValidationStatus ValStatus (Numeric::Solvers::NLPTasks::eCapeOptPointEntry entryType) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeNoImpl)
Common::Types::CapeLong ValStatus () const throw (Common::Error::ECapeUnknown, Common::Error::ECapeNoImpl)
Common::Types::CapeDouble GetObjFunction () const
virtual void Reinitialize () throw (Common::Error::ECapeUnknown)
virtual
Common::Types::CapeValidationStatus 
Update () throw (Common::Error::ECapeUnknown)
virtual
Common::Parameter::ICapeParameterSpec
GetParameterSpec (Common::Types::CapeLong _idx) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeNoImpl)
virtual Common::Types::CapeLong GetParametersCount () const
virtual Common::Types::CapeBoolean operator== (const Numeric::Solvers::NLPTasks::Parameters::ICapeOptimizationPoint &parVal) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeData)
virtual Common::Types::CapeBoolean operator!= (const Numeric::Solvers::NLPTasks::Parameters::ICapeOptimizationPoint &parVal) const throw (Common::Error::ECapeUnknown, Common::Error::ECapeData)
virtual Common::Types::CapeBoolean operator< (const Numeric::Solvers::NLPTasks::Parameters::ICapeOptimizationPoint &parVal) const
virtual std::ostream & operator<< (std::ostream &os) const
virtual void operator= (const Numeric::Solvers::NLPTasks::Parameters::ICapeOptimizationPoint &parList) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
const Common::Types::CapeStringGetComponentName () const throw (Common::Error::ECapeUnknown)
void SetComponentName (const Common::Types::CapeString &_name) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
const Common::Types::CapeStringGetComponentDescription () const throw (Common::Error::ECapeUnknown)
void SetComponentDescription (const Common::Types::CapeString &_description) throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument)
void SetObjFunction (Common::Types::CapeDouble _dblObjFunc, Common::Types::CapeValidationStatus _vsObjFunc=Common::Types::CAPE_VALID)
const
Common::Collection::ICapeCollection
GetTasksParameters () const
const
Common::Types::CapeArrayDouble
GetConstraintValues (Numeric::Solvers::NLPTasks::ConstraintType _type) const
void SetConstraintValues (Numeric::Solvers::NLPTasks::ConstraintType _type, Common::Types::CapeArrayDouble _arrConstr, Common::Types::CapeValidationStatus _vsConstr=Common::Types::CAPE_VALID)

Protected Member Functions

void MarkAsInvalid ()

Protected Attributes

const
Common::Collection::ICapeCollection
collParams
 Collection of task's parameters.
Common::Types::CapeValidationStatus vsObjFunc
Common::Types::CapeDouble dblObjFunc
 Objective function's value for the current set of unknowns.
Common::Types::CapeValidationStatus vsGxConstr
 Shows validness of Gx constaint's values for the current set of unknowns.
Common::Types::CapeArrayDouble arrGxConstr
 Gx constraint's values for the current set of unknowns.
Common::Types::CapeValidationStatus vsHxConstr
 Shows validness of Hx constaint's values for the current set of unknowns.
Common::Types::CapeArrayDouble arrHxConstr
 Hx constraint's values for the current set of unknowns.
Common::Types::CapeString strName
 Name of opt.point.
Common::Types::CapeString strDescription
 Description of opt.point.

Detailed Description

Represents Diana's interface for description of objective function's behaviour in the given point.


Constructor & Destructor Documentation

Constructor of DianaOptimizationPoint class.

virtual ~DianaOptimizationPoint ( ) [inline, virtual]

Destructor of DianaOptimizationPoint class. It was made as pure virtual to properly destroy all derived classes using base pointer. TODO: Solve conflict. Use for VC++: virtual ~ICapeOptimizationPoint () = 0 {};


Member Function Documentation

Common::Types::CapeLong Content ( ) const [inline, virtual]

Gets the set fo flags to indicate content of ICapeOptimizationPoint. It can contain objective function (CAPE_OBJFUNC), gredient (CAPE_GRADIENT), Jacobian of least squares (CAPE_LSJAC) and so on.

Implements ICapeOptimizationPoint.

References Numeric::Solvers::NLPTasks::CAPE_OBJFUNC.

Gets the flag to indicate if given component (objective function (CAPE_OBJFUNC), gredient (CAPE_GRADIENT), Jacobian of least squares (CAPE_LSJAC) etc) belong to ICapeOptimizationPoint.

Implements ICapeOptimizationPoint.

References Numeric::Solvers::NLPTasks::CAPE_OBJFUNC.

gets the description of the component.

Implements ICapeIdentification.

References DianaOptimizationPoint::strDescription.

const Common::Types::CapeString& GetComponentName ( ) const throw (Common::Error::ECapeUnknown) [inline, virtual]

gets the name of the component.

Implements ICapeIdentification.

References DianaOptimizationPoint::strName.

Gets constrant's values of objactive fonction in point.

References DianaOptimizationPoint::arrGxConstr, DianaOptimizationPoint::arrHxConstr, and Numeric::Solvers::NLPTasks::ctGx.

Gets value of objactive fonction in point.

Implements ICapeOptimizationPoint.

virtual Common::Types::CapeLong GetParametersCount ( ) const [inline, virtual]

Gets count of parameters in the list.

Implements ICapeOptimizationPoint.

References DianaOptimizationPoint::collParams, and ICapeCollection::Count().

Gets parameter's specification.

Implements ICapeOptimizationPoint.

const Common::Collection::ICapeCollection* GetTasksParameters ( ) const [inline, virtual]

Gets pointer on collection of task's parameters.

Implements IDianaOptimizationPoint.

References DianaOptimizationPoint::collParams.

void MarkAsInvalid ( ) [inline, protected, virtual]

Compares this and given ICapeOptimizationPoint. For possibility of comparison classes ICapeOptimizationPoint have to base on the same collection of sought parameters. If there are compared values of NLP real parameetrs than precision of corresponding parameter keeps in mind.

Implements IDianaOptimizationPoint.

References DianaOptimizationPoint::operator==().

Compares this and given ICapeOptimizationPoint. For possibility of comparison classes ICapeOptimizationPoint have to base on the same collection of sought parameters.

Implements IDianaOptimizationPoint.

virtual std::ostream& operator<< ( std::ostream &  os) const [virtual]

Outputs parameter's data.

Implements IDianaOptimizationPoint.

Copying operator. Copies state of another parameter.

Implements IDianaOptimizationPoint.

Reimplemented in DianaNLPTaskParametersList.

Compares this and given ICapeOptimizationPoint. For possibility of comparison classes ICapeOptimizationPoint have to base on the same collection of sought parameters. If there are compared values of NLP real parameetrs than precision of corresponding parameter keeps in mind.

Implements IDianaOptimizationPoint.

Referenced by DianaOptimizationPoint::operator!=().

virtual void Reinitialize ( ) throw (Common::Error::ECapeUnknown) [virtual]

Replaces values of ICapeOptimizationPoint parameters by values of saved into task's sought parameters.

Implements ICapeOptimizationPoint.

sets the description of the component.

Parameters:
_descriptionthe description of the component

Implements ICapeIdentification.

References DianaOptimizationPoint::strDescription.

sets the name of the component.

Parameters:
_namethe name of the component

Implements ICapeIdentification.

References DianaOptimizationPoint::strName.

Sets constrant's values for the current parameter's list.

Sets objective function value for the current parameter's list.

Implements IDianaOptimizationPoint.

References DianaOptimizationPoint::dblObjFunc, and DianaOptimizationPoint::vsObjFunc.

Replaces values of task's sought parameters by values of saved into ICapeOptimizationPoint parameters.

Implements ICapeOptimizationPoint.

Gets the flag to indicate ICapeOptimizationPoint entry's validation status. It has three possible values:

  • notValidated(CAPE_NOT_VALIDATED): its validate() method has not been called after the last time that its value had been changed.
  • invalid(CAPE_INVALID): the last time that its validate() method was called it returned false.
  • valid(CAPE_VALID): the last time that its validate() method was called it returned true.

Implements ICapeOptimizationPoint.

References Numeric::Solvers::NLPTasks::CAPE_OBJFUNC, Common::Error::ECodeNone, and DianaOptimizationPoint::vsObjFunc.

Gets the set of flags to indicate ICapeOptimizationPoint entries' validation status. The value of bit that corresponds to ICapeOptimizationPoint entry indicates:

  • 0: 1. its validate() method has not been called after the last time that its value had been changed. 2. the last time that its validate() method was called it returned false.
  • 1: the last time that its validate() method was called it returned true.

Implements ICapeOptimizationPoint.

References Numeric::Solvers::NLPTasks::CAPE_OBJFUNC, Common::Types::CAPE_VALID, and DianaOptimizationPoint::vsObjFunc.


Member Data Documentation

Shows validness of objfunc value for the current set of unknowns. It is used to check the necessity of objective function's recalculation and also when task cannot calculate objfunc.

Referenced by DianaOptimizationPoint::MarkAsInvalid(), DianaOptimizationPoint::SetObjFunction(), and DianaOptimizationPoint::ValStatus().


The documentation for this class was generated from the following file: