sc::LineOpt(3)

πŸ“¦
version 2.3.1 Β· 5 versions
, in ubuntu jammy

πŸ’… sc::LineOpt(3) β€” MPQC manual, bestie πŸ’…

Okay so this is the sc::LineOpt(3) page from the MPQC manual, and it’s giving abstract-base-class energy in the best way. Let’s get into it. ✨

πŸŽ€ NAME πŸŽ€

sc::LineOpt β€” the LineOpt abstract class is used to perform one dimensional optimizations. Periodt. πŸ’–

✨ SYNOPSIS ✨

#include <opt.h>
  • Inherits sc::Optimize.
  • Inherited by sc::Backtrack, and sc::MCSearch.

πŸ’– Public Member Functions πŸ’–

  • LineOpt (StateIn &) β€” constructor, no extra description on the page.
  • LineOpt (const Ref< KeyVal > &) β€” constructor, no extra description on the page.
  • void save_data_state (StateOut &) β€” Save the base classes (with save_data_state) and the members in the same order that the StateIn CTOR initializes them.
  • virtual void init (RefSCVector &direction) β€” Initializes the line search object.
  • virtual void init (RefSCVector &direction, Ref< Function > function) β€” Initializes the line search object.
  • void apply_transform (const Ref< NonlinearTransform > &) β€” Applies a nonlinear transform.
  • double decrease_factor () β€” Returns factor for sufficient decrease test.
  • double set_decrease_factor (double factor) β€” Sets factor for sufficient decrease test.

πŸ¦‹ Protected Member Functions πŸ¦‹

  • int sufficient_decrease (RefSCVector &step) β€” protected member function; the page doesn’t add a separate description for it.

🌸 Protected Attributes 🌸

  • double decrease_factor_
  • RefSCVector initial_x_
  • double initial_value_
  • RefSCVector initial_grad_
  • RefSCVector search_direction_
  • Ref< Function > function_

🌈 Additional Inherited Members 🌈

The original page has this section right here; it says there are additional inherited members, but it doesn’t list extra details under it. 🫢

πŸ¦‹ Detailed Description πŸ¦‹

The LineOpt abstract class is used to perform one dimensional optimizations. That’s the whole vibe of the class, bestie. πŸ’…

πŸ”₯ Member Function Documentation πŸ”₯

🌸 virtual void sc::LineOpt::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 in sc::MCSearch.

🌺 virtual void sc::LineOpt::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 in sc::MCSearch.

πŸŽ€ void sc::LineOpt::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.

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code. I know, iconique. 🫢


That’s the sc::LineOpt(3) MPQC page, bestie. Version 2.3.1, dated Sun Oct 4 2020. Bye and slay responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from