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.
17 m.set_log_level(IMP.base.SILENT)
26 chainr.set_name(
"The chain restraint")
27 m.add_restraint(chainr)
31 for p
in m.get_particles():
37 nbl.add_pair_filter(bpc)
45 tie.set_name(
"tie ends")
49 s.set_number_of_attempts(10)
50 m.set_maximum_score(1)
52 print "Found", confs.get_number_of_configurations(),
"configurations"
53 for i
in range(0, confs.get_number_of_configurations()):
54 confs.load_configuration(i)
56 for p
in chain.get_particles():