8#ifndef IMPCORE_STEEPEST_DESCENT_H
9#define IMPCORE_STEEPEST_DESCENT_H
11#include <IMP/core/core_config.h>
15IMPCORE_BEGIN_NAMESPACE
23class IMPCOREEXPORT SteepestDescent :
public AttributeOptimizer {
25 SteepestDescent(Model *m, std::string name =
"SteepestDescent%1%");
Base class for optimizers that act on individual attributes.
void set_maximum_step_size(Float t)
The maximum step size.
void set_threshold(Float t)
Set the minimum gradient threshold.
virtual Float do_optimize(unsigned int max_steps) override
override this function to do actual optimization
Float get_threshold() const
Get the minimum gradient threshold.
Float get_step_size() const
Get the starting step size.
void set_step_size(Float t)
The starting step size.
Float get_maximum_step_size() const
Get the maximum step size.
double Float
Basic floating-point value (could be float, double...).
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.