MOOCHO (Single Doxygen Collection) Version of the Day
Public Types | Private Member Functions | Private Attributes
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.

Public Types

typedef const Vectorconst_VectorWithOp_ptr

Private Member Functions

 MeritFuncCalc1DQuadratic ()
MeritFuncCalc1DQuadraticoperator= (const MeritFuncCalc1DQuadratic &)

Private Attributes

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


 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().

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 55 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.hpp.

Member Typedef Documentation

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.


  • 1 <= p <= 3
  • d[k]->space().is_compatible(x->space()), for k = 0...p-1

Definition at line 50 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 67 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

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

Returns phi.deriv()

Implements ConstrainedOptPack::MeritFuncCalc1D.

Definition at line 78 of file ConstrainedOptPack_MeritFuncCalc1DQuadratic.cpp.

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

Member Data Documentation

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines