33 nmc = ni * nj * np * 100
50 for i
in range(0, ni):
51 for j
in range(0, nj):
54 for k
in range(0, np):
56 p.set_name(
"P" + str(i) +
" " + str(j) +
" " + str(k))
60 d.set_coordinates_are_optimized(
True)
62 movers[-1].set_was_used(
True)
66 d.set_coordinates(base)
68 d.set_coordinates_are_optimized(
True)
81 restraints.append(bbr)
96 isf.add_close_pair_score(sps, 0, aps, filters)
101 nbl.set_pair_filters(filters)
105 mc.set_incremental_scoring_function(isf)
108 mc.set_scoring_function(sf)
115 cg.set_scoring_function(sf)
118 print r.get_name(), r.evaluate(
False)
121 for i
in range(1, nouter):
130 for j
in range(0, ninner):
132 mc.set_kt(100.0 / (3 * j + 1))
133 print "mc", mc.optimize((j + 1) * nmc), cg.optimize(nmc)
136 print r.get_name(), r.evaluate(
False)
Applies a SingletonScore to each Singleton in a list.
static FloatKey get_radius_key()
Get the key for the radius.
Various classes to hold sets of particles.
Upper bound harmonic function (non-zero when feature > mean)
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Simple conjugate gradients optimizer.
Modify a set of continuous variables by perturbing them within a ball.
Score particles based on how far outside a box they are.
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
static Colored setup_particle(kernel::Model *m, ParticleIndex pi, Color color)
Color get_display_color(unsigned int i)
Class to handle individual model particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
Prevent a set of particles and rigid bodies from inter-penetrating.
Write a CGO file with the geometry.
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
Output IMP model data in various file formats.
Applies a list of movers one at a time.
Applies a PairScore to each Pair in a list.
Class for storing model, its restraints, constraints, and particles.
Display an IMP::core::XYZR particle as a ball.
A decorator for a particle with x,y,z coordinates and a radius.