sc::QNewtonOpt(3)
π¦ sc::QNewtonOpt(3) β MPQC manual, bestie π¦
okay so welcome to the MPQC manual page for sc::QNewtonOpt, and yes we are keeping every single detail intact. It's giving "quasi-Newton optimization scheme" main character energy, and I'm obsessed. π
β¨ NAME β¨
sc::QNewtonOpt β The QNewtonOpt implements a quasi-Newton optimization scheme.
πΈ SYNOPSIS πΈ
#include <qnewton.h>
Inherits sc::Optimize.
π Public Member Functions π
QNewtonOpt (const Ref< KeyVal > &)β theKeyValconstructor.QNewtonOpt (StateIn &)β listed here; the page doesn't add a separate description for this one.void save_data_state (StateOut &)β Save the base classes (withsave_data_state) and the members in the same order that theStateInCTOR initializes them.void apply_transform (const Ref< NonlinearTransform > &)β listed with no extra description on this page.void init ()β Initialize the optimizer.int update ()β Take a step.
π§ Protected Attributes π§
these are the protected attributes, names exactly as given, with no extra notes on this page:
double maxabs_gradientdouble accuracy_RefSymmSCMatrix ihessian_Ref< HessianUpdate > update_Ref< LineOpt > lineopt_int take_newton_step_int print_hessian_int print_x_int print_gradient_int linear_int restrict_int dynamic_grad_acc_int force_search_int restart_
π Additional Inherited Members π
This heading is here too: the extra inherited members live under it, and this page doesn't list more detail for that section. π«Ά
π Detailed Description π
The QNewtonOpt implements a quasi-Newton optimization scheme.
π Constructor & Destructor Documentation π
π«Ά sc::QNewtonOpt::QNewtonOpt (const Ref< KeyVal > &) π«Ά
The KeyVal constructor. It reads these keywords:
updateβ This gives aHessianUpdateobject. The default is to not update the hessian.hessianβ By default, the guess hessian is obtained from theFunctionobject. This keyword specifies an lower triangle array (the second index must be less than or equal to than the first) that replaces the guess hessian. If some of the elements are not given, elements from the guess hessian will be used.lineoptβ This gives aLineOptobject for doing line optimizations in the Newton direction. The default is to skip the line optimizations.accuracyβ The accuracy with which the first gradient will be computed. If this is too large, it may be necessary to evaluate the first gradient point twice. If it is too small, it may take longer to evaluate the first point. The default is0.0001.print_xβ If true, print the coordinates each iteration. The default is false.print_gradientβ If true, print the gradient each iteration. The default is false.print_hessianβ If true, print the approximate hessian each iteration. The default is false.restrictβ Use step size restriction when not using a line search. The default is true.
π₯ Member Function Documentation π₯
π void sc::QNewtonOpt::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::Optimize.
β int sc::QNewtonOpt::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.
okay that's the whole page, bestie β no details left behind, periodt. π
This was MPQC's sc::QNewtonOpt(3) page, Version 2.3.1, dated Sun Oct 4 2020. xoxo, your fave manual glow-up π«Άπ
π¦ 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