def do_levmarq_particles(s, particles, damping=<NUM_LIT:1.0>, decrease_damp_factor=<NUM_LIT>,<EOL>run_length=<NUM_LIT:4>, collect_stats=False, max_iter=<NUM_LIT:2>, **kwargs):
lp = LMParticles(s, particles, damping=damping, run_length=run_length,<EOL>decrease_damp_factor=decrease_damp_factor, max_iter=max_iter,<EOL>**kwargs)<EOL>lp.do_run_2()<EOL>if collect_stats:<EOL><INDENT>return lp.get_termination_stats()<EOL><DEDENT>
Levenberg-Marquardt optimization on a set of particles.

Convenience wrapper for LMParticles. Same keyword args, but the
defaults have been set to useful values for optimizing particles.
See LMParticles and LMEngine for documentation.

See Also
--------
    do_levmarq_all_particle_groups : Levenberg-Marquardt optimization
        of all the particles in the state.

    do_levmarq : Levenberg-Marquardt optimization of the entire state;
        useful for optimizing global parameters.

    LMParticles : Optimizer object; the workhorse of do_levmarq_particles.

    LMEngine : Engine superclass for all the optimizers.