|
EllAlgo 1.6.13
|
Ellipsoid Method for special 1D case. More...
#include <ell1d.hpp>
Public Types | |
| using | ArrayType = double |
Public Member Functions | |
| ~ell1d ()=default | |
| ell1d & | operator= (const ell1d &)=default |
| ell1d (ell1d &&) noexcept=default | |
| ell1d & | operator= (ell1d &&) noexcept=default |
| ell1d (const double l, const double u) noexcept | |
| Construct a new ell1d object. | |
| ell1d (const ell1d &E)=default | |
| Construct a new ell1d object. | |
| auto | xc () const noexcept -> double |
| Get the center of the ellipsoid. | |
| auto | set_xc (const double xc) noexcept -> void |
| Set the xc object. | |
| constexpr auto | tsq () const -> double |
| Get the squared radius of the ellipsoid. | |
| auto | update (const std::pair< double, double > &cut) noexcept -> CutStatus |
| Update the 1D ellipsoid using a deep cut. | |
| auto | update_central_cut (const std::pair< double, double > &cut) noexcept -> CutStatus |
| Update the 1D ellipsoid using a central cut. | |
Ellipsoid Method for special 1D case.
|
default |
|
defaultnoexcept |
Construct a new ell1d object.
| [in] | l | |
| [in] | u |
Get the squared radius of the ellipsoid.
Update the 1D ellipsoid using a deep cut.
\[ g (x - x_c) + \beta \le 0 \]
| [in] | cut | A pair containing (gradient, beta) representing the cut |
Update the 1D ellipsoid using a central cut.
\[ g (x - x_c) \le 0 \]
| [in] | cut | A pair containing (gradient, beta) representing the cut |
Get the center of the ellipsoid.