energy minimization with excluded DOF (atoms positions)?

Dear lammps-users,

I would like to do some energy minimization with
prescribed positions (degrees of freedom) for certain atoms.

it seems that there are only two ways to do it:
1) minimize energy via general MD run with viscous (dissipative) forces and a
    fix setforce
2) implement a fix, similar to fix drag, which would provide relatively large energy
to minimization routines so that these atoms end up in the prescribed place.

Before coding, is there something already implemented I might overlook that provides
this functionality?

Thank you in advance,

Best regards,
Denis Davydov

The fix setforce doc page describes
how to use it with minimization to have some
atoms not move due to their force being zeroed.

Steve

Thank you, i didn't notice it can be used both in statics and dynamics.

Kind regards,
Denis.