sc::Optimize(3)
π NAME π
Bestie, welcome to the sc::Optimize(3) page from the MPQC manual. The whole point: The Optimize class is an abstract base class for classes that find the extreme points of Function's. Thatβs the name, thatβs the vibe, no notes.
β¨ SYNOPSIS β¨
#include <opt.h>
- Inherits
sc::SavableState. - Inherited by
sc::EFCOpt,sc::GDIISOpt,sc::LineOpt,sc::NewtonOpt,sc::QNewtonOpt, andsc::SteepestDescentOpt.
π«Ά Public Member Functions π«Ά
Optimize (StateIn &)β restore the state of aFunctionobject.Optimize (const Ref< KeyVal > &)β theKeyValconstructor reads the following information: all the option deets live in the constructor section below, bestie.void save_data_state (StateOut &)β save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.virtual int optimize ()β do the optimization.void set_checkpoint ()β set up for checkpointing.void set_checkpoint_file (const char *)β no separate description on the page, just the signature.void set_function (const Ref< Function > &)β set the function to be optimized.void set_max_iterations (int)β set the iteration limit.virtual void init ()β initialize the optimizer.virtual int update ()=0β take a step.virtual void apply_transform (const Ref< NonlinearTransform > &)β no separate description on the page, just the signature.Ref< Function > function () constβ returns information about theFunctionbeing optimized.Ref< SCMatrixKit > matrixkit () constβ no separate description on the page, just the signature.RefSCDimension dimension () constβ no separate description on the page, just the signature.
π‘οΈ Protected Attributes π‘οΈ
int max_iterations_int n_iterations_int ckpt_int print_timings_double max_stepsize_char * ckpt_fileRef< Function > function_Ref< Convergence > conv_
𧬠Additional Inherited Members π§¬
The page has this heading, but it doesnβt list extra details here. Thatβs all we get, bestie. π«Ά
πΈ DETAILED DESCRIPTION πΈ
The Optimize class is an abstract base class for classes that find the extreme points of Function's. Sheβs abstract, sheβs a base class, sheβs iconic. π
π CONSTRUCTOR & DESTRUCTOR DOCUMENTATION π
Only the constructor is listed here.
sc::Optimize::Optimize (const Ref< KeyVal > &)
The KeyVal constructor reads the following information:
checkpointβ if true, the optimization will be checkpointed. The default isfalse.checkpoint_fileβ the name of the checkpoint file. The name defaults toopt_ckpt.dat.max_iterationsβ the maximum number of interations. The default is10. (Yes, βinterationsβ is what the page says, not me. π)max_stepsizeβ the maximum stepsize. The default is0.6.functionβ aFunctionobject. There is no default.convergenceβ this can be either a floating point number or aConvergenceobject. If it is a floating point number then it is the convergence criterion. See the descriptionConvergenceclass for the default.
β MEMBER FUNCTION DOCUMENTATION β
virtual int sc::Optimize::optimize () [virtual]
Do the optimization. Returns nonzero if the optimization is complete. Slay. β¨
void sc::Optimize::save_data_state (StateOut &) [virtual]
Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them. This must be implemented by the derived class if the class has data.
Reimplemented from sc::SavableState.
Reimplemented in sc::LineOpt, sc::QNewtonOpt, and sc::SteepestDescentOpt.
virtual int sc::Optimize::update () [pure virtual]
Take a step. Returns 1 if the optimization has converged, otherwise 0.
Implemented in sc::Backtrack, sc::QNewtonOpt, sc::EFCOpt, sc::GDIISOpt, sc::MCSearch, sc::NewtonOpt, and sc::SteepestDescentOpt.
π AUTHOR π
Generated automatically by Doxygen for MPQC from the source code.
ok bye bestie β this was MPQC version 2.3.1, dated Sun Oct 4 2020, page sc::Optimize(3) πβ¨
π¦ 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