This example shows how to set up an optimization involving several particles constrained to be connected in a loop. It uses non bonded lists and a variety of restraints.
20 m.set_log_level(IMP.base.SILENT)
29 chainr.set_name(
"The chain restraint")
30 m.add_restraint(chainr)
34 for p
in m.get_particles():
40 nbl.add_pair_filter(bpc)
48 tie.set_name(
"tie ends")
52 s.set_number_of_attempts(10)
53 m.set_maximum_score(1)
54 confs = s.get_sample()
55 print "Found", confs.get_number_of_configurations(),
"configurations"
56 for i
in range(0, confs.get_number_of_configurations()):
57 confs.load_configuration(i)
59 for p
in chain.get_particles():