#include <extrema.hh>
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. | |
An interface class that computes the maximum/minimum of a function represented as an ElementFormula on an space on hp2D::Quad<Real>
only.
Definition at line 42 of file extrema.hh.
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 the alternative uses the analytical gradient of local solution, that should be the choice.
The number controls the number of startpoints that are equidistant distributed on the inner of . For local solution where more that a local maximum is supposed this might be usefull.
spc | space on which the formula is given |
formula | function |
formulaGrad | gradient of the function (default = 0) |
np | np^2 = number of equidistant start points in one direction (defualt np=2) |
report | set 'true' for detailed report |
|
overrideprotectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
|
static |
Inner static pointer to object, used by the wrapper.
Definition at line 76 of file extrema.hh.