Class FlatHarmonic#
Defined in File rosenbrock.hpp
Inheritance Relationships#
Base Type#
public pele::BasePotential(Class BasePotential)
Class Documentation#
-
class FlatHarmonic : public pele::BasePotential#
Flat Harmonic Potential.
Flat in one dimension so that the hessian is singular. Useful for testing optimizers where the singularity is handled. The Potential is flat in the x+y direction. and the origin is at 0, 0.
Public Functions
-
inline FlatHarmonic(double a = 1)#
-
inline virtual ~FlatHarmonic()#
-
inline virtual double get_energy(Array<double> const &x)#
Return the energy of configuration x.
This is the only function which must be overloaded
- inline virtual double get_energy_gradient( )#
compute the energy and gradient.
If not overloaded it will compute the numerical gradient
-
inline FlatHarmonic(double a = 1)#