ConstrainedOptPack::MeritFuncCalc1DQuadratic Class Reference

Adds the ability to compute phi(alpha) at alpha of a given set of vectors. More...

#include <ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp>

Inheritance diagram for ConstrainedOptPack::MeritFuncCalc1DQuadratic:

Inheritance graph
List of all members.


 MeritFuncCalc1DQuadratic (const MeritFuncCalc &phi, size_type p, const_VectorWithOp_ptr d[], VectorMutable *x)
 The only constructor.

Overridden from MeritFuncCalc1D

value_type operator() (value_type alpha) const
 Returns phi( x = sum( alpha^k * d[k], k = 0...p-1 ) ).
value_type deriv () const
 Returns phi.deriv().
void print_merit_func (std::ostream &out, const std::string &leading_str) const
 Calls phi->print_merit_func().

Public Types

typedef const Vector * const_VectorWithOp_ptr

Private Member Functions

 MeritFuncCalc1DQuadratic ()
MeritFuncCalc1DQuadraticoperator= (const MeritFuncCalc1DQuadratic &)

Private Attributes

const MeritFuncCalcphi_
size_type p_
const_VectorWithOp_ptr d_ [3]
VectorMutable * x_

Detailed Description

Adds the ability to compute phi(alpha) at alpha of a given set of vectors.

Computes phi( x = sum( alpha^k * d[k], k = 0...p-1 ) ) where 1 <= p <= 2.

Definition at line 42 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

Member Typedef Documentation

typedef const Vector* ConstrainedOptPack::MeritFuncCalc1DQuadratic::const_VectorWithOp_ptr

Definition at line 46 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

Constructor & Destructor Documentation

ConstrainedOptPack::MeritFuncCalc1DQuadratic::MeritFuncCalc1DQuadratic ( const MeritFuncCalc phi,
size_type  p,
const_VectorWithOp_ptr  d[],
VectorMutable *  x 

The only constructor.

Note that *x and *d gets updated as operator()(alpha) is called.

The client must ensure that the memory pointed to by the vectors in d must not be desturbed while this object is in use. To do so may have bad side effects.

phi [in] The merit function to use.
p [in] The number of vectors in d[].
d [in] Array (length p) of pointers to the rhs d[] vectors.
x [out] The vector that gets updated.

Definition at line 37 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

ConstrainedOptPack::MeritFuncCalc1DQuadratic::MeritFuncCalc1DQuadratic (  )  [private]

Member Function Documentation

value_type ConstrainedOptPack::MeritFuncCalc1DQuadratic::operator() ( value_type  alpha  )  const [virtual]

Returns phi( x = sum( alpha^k * d[k], k = 0...p-1 ) ).

Implements ConstrainedOptPack::MeritFuncCalc1D.

Definition at line 54 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

value_type ConstrainedOptPack::MeritFuncCalc1DQuadratic::deriv (  )  const [virtual]

Returns phi.deriv().

Implements ConstrainedOptPack::MeritFuncCalc1D.

Definition at line 65 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

void ConstrainedOptPack::MeritFuncCalc1DQuadratic::print_merit_func ( std::ostream &  out,
const std::string &  leading_str 
) const [virtual]

Calls phi->print_merit_func().

Implements ConstrainedOptPack::MeritFuncCalc1D.

Definition at line 70 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

MeritFuncCalc1DQuadratic& ConstrainedOptPack::MeritFuncCalc1DQuadratic::operator= ( const MeritFuncCalc1DQuadratic  )  [private]

Member Data Documentation

const MeritFuncCalc& ConstrainedOptPack::MeritFuncCalc1DQuadratic::phi_ [private]

Definition at line 93 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

size_type ConstrainedOptPack::MeritFuncCalc1DQuadratic::p_ [private]

Definition at line 94 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

const_VectorWithOp_ptr ConstrainedOptPack::MeritFuncCalc1DQuadratic::d_[3] [private]

Definition at line 95 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

VectorMutable* ConstrainedOptPack::MeritFuncCalc1DQuadratic::x_ [private]

Definition at line 96 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

The documentation for this class was generated from the following files:
Generated on Tue Jul 13 09:35:46 2010 for MOOCHO (Single Doxygen Collection) by  doxygen 1.4.7