sc::MCSearch(3)
π NAME π
okay bestie, welcome to the sc::MCSearch(3) glow-up π
β sc::MCSearch is the one that performs line searches with cubic steps. That's the whole main-character job, no cap β¨.
β¨ SYNOPSIS β¨
#include <mcsearch.h>
Inherits sc::LineOpt. π«Ά
π Public Member Functions π
MCSearch (const Ref< KeyVal > &)β The MCSearch KeyVal CTOR does not read any input. πint update ()β Take a step. π«void init (RefSCVector &direction)β Initializes the line search object. πΈvoid init (RefSCVector &direction, Ref< Function > function)β Initializes the line search object. π¦
π§ Protected Member Functions π§
Bestie, these are the protected helper signatures, kept exact so nobody comes for me π:
void mcstep (double *stx, double *fx, double *dx, double *sty, double
*fy, double *dy, double *stp, double *fp, double *dp, bool *brackt,
double *stpmin, double *stpmax, int *info)
void mcsrch (int *n, double *x, double *f, double *g, double *s, double
*stp, double *ftol, double *xtol, int *maxfev, int *info, int *nfev,
double *wa)
void mcinit ()β protected member function, listed right here with no extra description on the page. π
π Protected Attributes π
okay so this is the full protected-attribute stash β every single one, exactly as the page lists them:
double gtol_double stpmin_double stpmax_double dgdouble fmdouble fxdouble fydouble dgmdouble dgxdouble dgydouble fxmdouble fymdouble stxdouble stydouble dgxmdouble dgymint infocdouble finitdouble widthdouble stmindouble stmaxbool stage1double width1double ftest1bool bracktdouble dginitdouble dgtestdouble pdouble qdouble r__double sdouble sgnddouble stpcdouble stpfdouble stpqdouble gammadouble thetabool boundint info_auto_vec< double > wa_
π Additional Inherited Members π
There are additional inherited members too β the page just has this heading for them and doesn't spell out the list here. π«Ά
π¦ Detailed Description π¦
This performs line searches with cubic steps. π
It is based on the Fortran MCSRCH and MCSTEP routines produced by:
Argonne National Laboratory. MINPACK Project. June 1983 Jorge J. More', David J. Thuente. πβ¨
πΈ Constructor & Destructor Documentation πΈ
sc::MCSearch::MCSearch (const Ref< KeyVal > &)
The MCSearch KeyVal CTOR does not read any input. See the LineOpt KeyVal CTOR for parameters that it takes. ππ
π« Member Function Documentation π«
void sc::MCSearch::init (RefSCVector & direction) [virtual]
Initializes the line search object. Argument is a search direction. Use of this method assumes the Optimize base class already has a function object (got it from a keyval or elsewhere). π
Reimplemented from sc::LineOpt. β¨
void sc::MCSearch::init (RefSCVector & direction, Ref< Function > function) [virtual]
Initializes the line search object. First argument is a search direction, second argument is a function object to optimize. Use this method when a function must be passed to the Optimize base class. π¦
Reimplemented from sc::LineOpt. π
int sc::MCSearch::update () [virtual]
Take a step. Returns 1 if the optimization has converged, otherwise 0. π₯
Implements sc::Optimize. π
π Author π
Generated automatically by Doxygen for MPQC from the source code. π«Ά
mwah π β Version 2.3.1, Sun Oct 4 2020, with the manual tag sc::MCSearch(3), that's the footer tea, bestie πβ¨
π¦ where this page comes from
- ubuntu jammy: libsc-doc 2.3.1-21
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms