energy minimization explaination

Can somebody tell me how exactly energy minimization via conjugate gradient is done in lammps ??..i mean the working procedure inside lammps i.e what lammps do internally in minimization??

why don't you just read the source code?

Forces in MD are the gradient of the energy.
So in CG, forces are used to minimize the

objective function (energy of the system).