[lammps-users] minimization with constrain

Dear LAMMPS users,

I want to minimize energy of the system with fixed z-coordinate of type 2 atoms
Is it correct procedure:

group NOMIN type 2

fix FNM NOMIN setforce NULL NULL 0.0

min_style cg
minimize 0.0 1.0e-7 200 1000

German Samolyuk

yes, that should do it