25for i
in range(0, num_balls):
30 d.set_coordinates_are_optimized(
True)
40mc.set_scoring_function(sf)
46mc.set_score_moved(
True)
52print(
"initial", sf.evaluate(
False))
53after = mc.optimize(num_mc_steps)
Class for storing model, its restraints, constraints, and particles.
Class to handle individual particles of a Model object.
Store a list of ParticleIndexes.
Applies a SingletonScore to each Singleton in a list.
Move continuous particle variables by perturbing them within a ball.
Prevent a set of particles and rigid bodies from inter-penetrating.
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.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Write a CGO file with the geometry.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
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.
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.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.