36 for i
in range(0, ni):
37 for j
in range(0, nj):
40 for k
in range(0, np):
42 p.set_name(
"P" + str(i) +
" " + str(j) +
" " + str(k))
46 d.set_coordinates_are_optimized(
True)
48 movers[-1].set_was_used(
True)
52 d.set_coordinates(base)
54 d.set_coordinates_are_optimized(
True)
67 restraints.append(bbr)
82 isf.add_close_pair_score(sps, 0, aps, filters)
87 nbl.set_pair_filters(filters)
91 mc.set_incremental_scoring_function(isf)
94 mc.set_scoring_function(sf)
101 cg.set_scoring_function(sf)
104 print r.get_name(), r.evaluate(
False)
107 for i
in range(1, 11):
116 for j
in range(0, 5):
118 mc.set_kt(100.0 / (3 * j + 1))
119 print "mc", mc.optimize(ni * nj * np * (j + 1) * 100), cg.optimize(10)
122 print r.get_name(), r.evaluate(
False)
Applies a SingletonScore to each Singleton in a list.
static FloatKey get_radius_key()
See IMP.container for more information.
Upper bound harmonic function (non-zero when feature > mean)
void set_log_level(LogLevel l)
Set the current global log level.
See IMP.base for more information.
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.
See IMP.core for more information.
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)
See IMP.display for more information.
See IMP.rmf for more information.
Apply 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.