spvincent Lv 1
This script is not intended to improve the score, although it may indeed have that happy side effect.
Rather the aim is to improve a specific component of the score like hiding or bonding at the likely expense of the total score: subsequent scripts like Quakes or Rebuilders can then be used to tidy up or you can adjust things manually. The default component to improve is hiding (other styles of script generally seem to have a problem with this component) but this can readily be changed (see component_to_optimize at start). It's probably best to confine the scripts effects to a specific region of the protein like a large loop: see min_residue and max_residue at start.
This script runs for a specific time: the default is one hour. If you stop it before then you may have to step back through the undo graph to find the end product of the script.
It looks for the "best" score after multiple rebuild/shakes: rejecting rebuild results that have unduly kinked backbones. It then takes that structure, wiggles, shakes, wiggles at lower CI, ands wiggles again.