8 #ifndef IMPGSL_SIMPLEX_H
9 #define IMPGSL_SIMPLEX_H
11 #include <IMP/gsl/gsl_config.h>
15 IMPGSL_BEGIN_NAMESPACE
51 void set_initial_length(
double length) {
53 "The initial length is relative to the rescaled attributes"
54 <<
" and so should not be much larger than 1.");
58 void set_minimum_size(
double d) {
60 "The minimum size is relative to the rescaled attributes"
61 <<
" and so should not be much larger than 1 "
62 <<
"(and must be non-zero).");
A base class for GSL-based optimizers.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Class for storing model, its restraints, constraints, and particles.
A simplex optimizer taken from GSL.
virtual double do_optimize(unsigned int ns)=0
override this function to do actual optimization
double Float
Basic floating-point value (could be float, double...)
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
A base class for GSL-based optimizers.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.