Class documentation of Concepts

Loading...
Searching...
No Matches

#include <extrema.hh>

Inheritance diagram for hp2D::Extrema< T >:
concepts::OutputOperator

Public Member Functions

 Extrema (const concepts::SpaceOnCells< Real > &spc, const concepts::ElementFormula< Real > &formula, const concepts::ElementFormula< Real2d > *formulaGrad=0, uint np=2, bool report=false)
 
Real get () const
 

Static Public Attributes

static Extrema< T > * pt2Object
 Inner static pointer to object, used by the wrapper.
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const override
 Returns information in an output stream.
 

Detailed Description

template<concepts::Optimize T>
class hp2D::Extrema< T >

An interface class that computes the maximum/minimum of a function represented as an ElementFormula on an space on hp2D::Quad<Real> only.

Author
Robert Gruhlke, 2015

Definition at line 42 of file extrema.hh.

Constructor & Destructor Documentation

◆ Extrema()

template<concepts::Optimize T>
hp2D::Extrema< T >::Extrema ( const concepts::SpaceOnCells< Real > &  spc,
const concepts::ElementFormula< Real > &  formula,
const concepts::ElementFormula< Real2d > *  formulaGrad = 0,
uint  np = 2,
bool  report = false 
)

http://www.alglib.net/translator/man/manual.cpp.html#unit_minbleic

There are two modi implemented. We apply an gradient approximation active set strategy, that is numerical unstable and expensive in the sense of function evaluations, if the gradient of the function is not given.

Therefore with $ mode = 1 $ the alternative uses the analytical gradient of local solution, that should be the choice.

The number $ np $ controls the number of startpoints that are equidistant distributed on the inner of $ [0,1]^2 $. For local solution where more that a local maximum is supposed this might be usefull.

Parameters
spcspace on which the formula is given
formulafunction
formulaGradgradient of the function (default = 0)
npnp^2 = number of equidistant start points in one direction (defualt np=2)
reportset 'true' for detailed report

Member Function Documentation

◆ info()

template<concepts::Optimize T>
virtual std::ostream & hp2D::Extrema< T >::info ( std::ostream &  os) const
overrideprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Member Data Documentation

◆ pt2Object

template<concepts::Optimize T>
Extrema<T>* hp2D::Extrema< T >::pt2Object
static

Inner static pointer to object, used by the wrapper.

Definition at line 76 of file extrema.hh.


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