9#ifndef IMPCORE_MCCG_SAMPLER_H
10#define IMPCORE_MCCG_SAMPLER_H
12#include <IMP/core/core_config.h>
19#include <IMP/internal/StaticListContainer.h>
21IMPCORE_BEGIN_NAMESPACE
40class IMPCOREEXPORT MCCGSampler :
public Sampler {
42 unsigned int cg_steps_;
44 typedef std::map<FloatKey, double> BallSizes;
45 BallSizes ball_sizes_;
46 typedef std::map<FloatKey, std::pair<Float, Float>> Bounds;
48 unsigned int attempts_;
53 Parameters default_parameters_;
57 typedef IMP::internal::StaticListContainer<SingletonContainer>
60 Parameters fill_in_parameters()
const;
61 void randomize(
const Parameters &pms, Container *sc)
const;
62 Container *set_up_movers(
const Parameters &pms,
MonteCarlo *mc)
const;
65 MCCGSampler(
Model *m, std::string name =
"MCCG Sampler %1%");
A bounding box in D dimensions.
Base class for all optimizers.
Base class for all samplers.
A container for Singletons.
A class to store a set of configurations of a model.
Class for storing model, its restraints, constraints, and particles.
Shared optimizer state that is invoked upon commitment of new coordinates.
Base class for all optimizers.
An axis-aligned bounding box.
void set_number_of_monte_carlo_steps(unsigned int cg)
Set the number of MC steps to take in each optimization run.
void set_number_of_attempts(unsigned int att)
Set the maximum number of attempts to find a solution.
void set_is_refining(bool tf)
void set_number_of_conjugate_gradient_steps(unsigned int cg)
Set the number of CG steps to take after each MC step.
void set_max_monte_carlo_step_size(FloatKey k, double d)
Set the maximum size of the MC step for an attribute.
void set_max_monte_carlo_step_size(double d)
Set the maximum size of the MC step for all attributes.
void set_local_optimizer(Optimizer *opt)
Set a local optimizer to use instead of ConjugateGradients.
void set_save_rejected_configurations(bool tf)
Whether or not to save rejected conformations.
void set_bounding_box(const algebra::BoundingBoxD< 3 > &bb)
Set the bounding box for randomizing the Cartesian coordinates.
Macros to define containers of objects.
#define IMP_LIST(protection, Ucname, lcname, Data, PluralData)
A macro to provide a uniform interface for storing lists of objects.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
IMP::Vector< FloatKey > FloatKeys
IMP::Vector< IMP::Pointer< OptimizerState > > OptimizerStates
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
A smart pointer to a ref-counted Object that is a class member.
A smart pointer to a reference counted object.