32 nmc = ni * nj * np * 100
50 for j
in range(0, nj):
53 for k
in range(0, np):
55 p.set_name(
"P" + str(i) +
" " + str(j) +
" " + str(k))
59 d.set_coordinates_are_optimized(
True)
61 movers[-1].set_was_used(
True)
65 d.set_coordinates(base)
67 d.set_coordinates_are_optimized(
True)
91nbl.set_pair_filters(filters)
94mc.set_scoring_function(sf)
98mc.set_score_moved(
True)
105cg.set_scoring_function(sf)
108 print(r.get_name(), r.evaluate(
False))
111for i
in range(1, nouter):
121 for j
in range(0, ninner):
123 mc.set_kt(100.0 / (3 * j + 1))
124 print(
"mc", mc.optimize((j + 1) * nmc), cg.optimize(nmc))
127 print(r.get_name(), r.evaluate(
False))
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Applies a PairScore to each Pair in a list.
Applies a SingletonScore to each Singleton in a list.
Move continuous particle variables by perturbing them within a ball.
Simple conjugate gradients optimizer.
Prevent a set of particles and rigid bodies from inter-penetrating.
Score distance between two particle centers using a harmonic function.
Upper bound harmonic function (non-zero when feature > mean).
Create a scoring function on a list of restraints.
Applies a list of movers one at a time.
Display an IMP::core::XYZR particle as a ball.
A decorator for a particle with x,y,z coordinates and a radius.
static XYZR setup_particle(Model *m, ParticleIndex pi)
static FloatKey get_radius_key()
Get the key for the radius.
static Colored setup_particle(Model *m, ParticleIndex pi, Color color)
Write a CGO file with the geometry.
VectorD< D > get_random_vector_in(const BoundingBoxD< D > &bb)
Generate a random vector in a box with uniform density.
Various classes to hold sets of particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
Output IMP model data in various file formats.
Color get_display_color(unsigned int i)
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.