25 for i
in range(0, num_balls):
30 d.set_coordinates_are_optimized(
True)
40 mc.set_incremental_scoring_function(isf)
46 print(
"initial", isf.evaluate(
False))
47 after = mc.optimize(num_mc_steps)
Applies a SingletonScore to each Singleton in a list.
Various classes to hold sets of particles.
Upper bound harmonic function (non-zero when feature > mean)
void set_log_level(LogLevel l)
Set the current global log level.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.
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)
Store a kernel::ParticleIndexes.
Class to handle individual model particles.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
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.
Class for storing model, its restraints, constraints, and particles.
Display an IMP::core::XYZR particle as a ball.